OSDN Git Service

drm/i915: Emit await(batch) before MI_BB_START
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 10 May 2020 10:24:29 +0000 (11:24 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 11 May 2020 15:50:04 +0000 (16:50 +0100)
commitb0a997ae5248b293b6f6d1996ea49c57f7b94227
treea4293b24a20a44bf52fda298a980c99ce2d3e66a
parentc7e8a3d674fbaa5b12ddc681bdf46c34a27e55d5
drm/i915: Emit await(batch) before MI_BB_START

Be consistent and ensure that we always emit the asynchronous waits
prior to issuing instructions that use the address. This ensures that if
we do emit GPU commands to do the await, they are before our use!

Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200510102431.21959-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c
drivers/gpu/drm/i915/gem/selftests/igt_gem_utils.c
drivers/gpu/drm/i915/gt/intel_renderstate.c
drivers/gpu/drm/i915/selftests/i915_request.c