OSDN Git Service

drm/i915: Clear old hw.fb & co. from slave plane's state
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 10 Jan 2020 18:32:24 +0000 (20:32 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 22 Jan 2020 18:22:04 +0000 (20:22 +0200)
commit7d8d2cbce5af5ed5a80d5857f0d01d03aaacef71
treebf3801852eb14bc619cb96652a02f397dc1ad95b
parent5dbd2b7be61e6de5740bab221bb1358c7c127762
drm/i915: Clear old hw.fb & co. from slave plane's state

Let's do the intel_plane_copy_uapi_to_hw_state() before we bail out
due to both old and new uapi.crtc being NULL. This will drop the
reference to the old hw.fb for planes that are transitioning from
being a slave plane to simply being disabled.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200110183228.8199-2-ville.syrjala@linux.intel.com
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
drivers/gpu/drm/i915/display/intel_atomic_plane.c
drivers/gpu/drm/i915/display/intel_display.c