projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1934f5d
)
drm/i915: Check intel_contexts to avoid one extra pointer chase
author
Chris Wilson
<chris@chris-wilson.co.uk>
Fri, 1 Jun 2018 09:40:02 +0000
(10:40 +0100)
committer
Chris Wilson
<chris@chris-wilson.co.uk>
Fri, 1 Jun 2018 12:38:43 +0000
(13:38 +0100)
As we store the intel_context on the request (rq->hw_context), we can
simply compare that against the local intel_context for the
i915->kernel_context rather than using the rq->gem_context.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20180601094002.13329-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_context.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_gem_context.c
b/drivers/gpu/drm/i915/i915_gem_context.c
index 81f086397d10b8499ae4b7fab29fb585b6f25ab1..94e4db1870aa35f83b9eeddba1e5f467ea300c03 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_gem_context.c
+++ b/
drivers/gpu/drm/i915/i915_gem_context.c
@@
-610,7
+610,7
@@
static bool engine_has_kernel_context_barrier(struct intel_engine_cs *engine)
any_active = true;
- if (rq->
gem_context == i915->kernel_context
)
+ if (rq->
hw_context == ce
)
continue;
/*