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)
commita007138e89dce8d880c0ea41324e0a75e5bbb7de
tree7c2aad4fc77c6f4acd6a04fcf1beef0060c9bccc
parent79148ce4b25d418327feca8abb2f7392d49f5259
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