]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Replace magic 1<<22 with MI_USE_GGTT/MI_MEM_VIRTUAL
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Jul 2018 14:23:22 +0000 (15:23 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Jul 2018 16:13:17 +0000 (17:13 +0100)
commitf31260d29e5f5f90a5275337165caf4b1ee635b3
treecbd0129f3bebe918e70fb7d7158d8cb670039280
parent8cd4a3d4c4a5600e64830071a077d3a73060510d
drm/i915/selftests: Replace magic 1<<22 with MI_USE_GGTT/MI_MEM_VIRTUAL

Replace the magic bit with the proper symbolic name for instructing
MI_STORE_DWORD_IMM to use a virtual address (on gen3) or the global GTT
address (still virtual!) on gen4+.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180706142323.25699-1-chris@chris-wilson.co.uk
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/i915/selftests/huge_pages.c
drivers/gpu/drm/i915/selftests/i915_gem_coherency.c
drivers/gpu/drm/i915/selftests/i915_gem_context.c
drivers/gpu/drm/i915/selftests/intel_hangcheck.c