OSDN Git Service

drm/i915/gem: Take DBG_FORCE_RELOC into account prior to using reloc_gpu
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Apr 2020 12:36:16 +0000 (13:36 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Apr 2020 14:58:33 +0000 (15:58 +0100)
commit39d571d172312c7f76570ba86c4074f170aaf442
tree18467e58168e4197a4a58aa6ad824051e43feb32
parent30c88a47f1abd5744908d3681f54dcf823fe2a12
drm/i915/gem: Take DBG_FORCE_RELOC into account prior to using reloc_gpu

If we set the debug flag to force ourselves not to relocate via the gpu,
do not relocate via the gpu.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200406123616.7334-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c