]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Wrap context LRI init in a macro
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 4 Nov 2015 21:20:11 +0000 (23:20 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 18 Nov 2015 12:35:39 +0000 (14:35 +0200)
commit22a0165892a899f6efc9b36254984da734064b24
tree2926215ad6e8cbbfbd1e7029a9bc415ca8c90c07
parent2a09fa348de8a3386eb2082e8c4b87c6fd0f98fa
drm/i915: Wrap context LRI init in a macro

We set up a load of LRIs in the logical ring context. Wrap that stuff
in a macro to avoid typos with position of each reg/value pair in the
context. This also makes it easier to make the register defines type
safe.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1446672017-24497-24-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_lrc.c