]> 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)
commit21258880ee507ca0a61f03712dc05ffe24b10dfa
tree2926215ad6e8cbbfbd1e7029a9bc415ca8c90c07
parent09a4fdf8d1855433d1770a21fab88a7be6d4ed63
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