drm/i915: Bail out once we've found the context object
Subsystems (2)
PATCH 1/1 drm/i915: Bail out once we've found the context object
Once we've found the the context object programmed in CCID, there's no need to look the other objects in the list.
Signed-off-by Damien Lespiau <[email protected]>
--- drivers/gpu/drm/i915/i915_irq.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/i915/i915_irq.c +1 -0
@@ -1801,6 +1801,7 @@ static void i915_gem_record_active_context(struct intel_ring_buffer *ring,if ((error->ccid &PAGE_MASK ) == obj->gtt_offset) { ering->ctx =i915_error_object_create_sized (dev_priv, obj,1 ); +break ; } } }
Signature · 1 line
1.8.1.4
Daniel Vetter
AppliedQuoted 4 lines · Damien Lespiau
Once we've found the the context object programmed in CCID, there's no need to look the other objects in the list.
Signed-off-by Damien Lespiau <[email protected]>
Queued for -next, thanks for the patch.
-Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch