]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Always write both TILEOFF and LINOFF plane registers
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 8 Nov 2018 15:09:55 +0000 (17:09 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 13 Nov 2018 14:52:12 +0000 (16:52 +0200)
commit03eef9b1fe0844f36e0a3374d06ac135bfc9ba86
tree3aca9f62fd1fdb25170d3dda54d82134737f003d
parent6b0f8d820e5707814094f814da14a41bbc0d0dca
drm/i915: Always write both TILEOFF and LINOFF plane registers

Reduce the clutter in the sprite update functions by writing
both TILEOFF and LINOFF registers unconditionally. We already
did this for primary planes so might as well do it for the
sprites too.

There is no harm in writing both registers. Which one gets
used depends on the tilimg mode selected in the plane control
registers.

It might even make sense to clear the register that won't
get used. That could make register dumps a little easier to
parse. But I'm not sure it's worth the extra hassle.

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181108150955.23948-1-ville.syrjala@linux.intel.com
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> #irc
drivers/gpu/drm/i915/intel_sprite.c