]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Skip aux plane stuff when there is no aux plane
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 9 Oct 2020 12:00:28 +0000 (15:00 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 9 Oct 2020 18:12:13 +0000 (21:12 +0300)
commit00d3de17b13118d69c01cae8bfc6c8b9e85e6c21
tree7c2aad4fc77c6f4acd6a04fcf1beef0060c9bccc
parentca377a98782988222c5880c50c703ba8d0844441
drm/i915: Skip aux plane stuff when there is no aux plane

when the hardware isn't going to use the aux plane there's no
real point in dealing with the relevant hardware restrictions.
So let's just skip all that when not necessary.

We can now also remove the offset=~0xfff behaviour for unused
color planes. Let's just zero out everyting so as to not leave
stale garbage behind to confuse people debugging the code.

v2: Explicitly set AUX_DIST to zero when there is no aux plane

Reviewed-by: Imre Deak <imre.deak@intel.com> #v1
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201009120028.32422-1-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_sprite.c