Commit 49f08598 authored by Chris Wilson's avatar Chris Wilson

drm/i915: Switch the global i915.semaphores check to a local predicate

Rather than use a global modparam, we can just check to see if the
engine has semaphores configured upon it.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170503093924.5320-7-chris@chris-wilson.co.uk
parent fc9d4d2b
...@@ -711,13 +711,15 @@ i915_gem_request_await_request(struct drm_i915_gem_request *to, ...@@ -711,13 +711,15 @@ i915_gem_request_await_request(struct drm_i915_gem_request *to,
if (!seqno) if (!seqno)
goto await_dma_fence; goto await_dma_fence;
if (!i915.semaphores) { if (!to->engine->semaphore.sync_to) {
if (!__i915_gem_request_started(from, seqno)) if (!__i915_gem_request_started(from, seqno))
goto await_dma_fence; goto await_dma_fence;
if (!__i915_spin_request(from, seqno, TASK_INTERRUPTIBLE, 2)) if (!__i915_spin_request(from, seqno, TASK_INTERRUPTIBLE, 2))
goto await_dma_fence; goto await_dma_fence;
} else { } else {
GEM_BUG_ON(!from->engine->semaphore.signal);
if (seqno <= to->timeline->global_sync[from->engine->id]) if (seqno <= to->timeline->global_sync[from->engine->id])
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment