drm/i915: Simplify enabling user-interrupts with L3-remapping
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Jul 2016 16:23:28 +0000 (17:23 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Jul 2016 20:04:17 +0000 (21:04 +0100)
commit61ff75ac20ffa6d0039f643234d0c5244070fb15
tree6eb92084b0f89ed9ffa676d8e34670f6fc858c54
parent31bb59cc01fda94e55eca7304e0e745908c3bec6
drm/i915: Simplify enabling user-interrupts with L3-remapping

Borrow the idea from intel_lrc.c to precompute the mask of interrupts we
wish to always enable to avoid having lots of conditionals inside the
interrupt enabling.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1467390209-3576-19-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h