]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/i915: Skip redundant NV12 plane unlinking
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 16 Mar 2026 16:39:53 +0000 (18:39 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Sat, 21 Mar 2026 08:15:32 +0000 (10:15 +0200)
plane_atomic_check() will already have unlinked the
old NV12 planes by the time icl_check_nv12_planes()
gets called. Drop the redundant second unlinking.

Cc: Khaled Almahallawy <khaled.almahallawy@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260316163953.12905-4-ville.syrjala@linux.intel.com
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
drivers/gpu/drm/i915/display/intel_plane.c

index bc1c801a06d7892ad8647c88ac7484159e0d5729..5390ceb21ca42fe5dc64f1458fc0e31653422731 100644 (file)
@@ -1547,17 +1547,6 @@ static int icl_check_nv12_planes(struct intel_atomic_state *state,
        if (DISPLAY_VER(display) < 11)
                return 0;
 
-       /*
-        * Destroy all old plane links and make the Y plane invisible
-        * in the crtc_state->active_planes mask.
-        */
-       for_each_new_intel_plane_in_state(state, plane, plane_state, i) {
-               if (plane->pipe != crtc->pipe)
-                       continue;
-
-               unlink_nv12_plane(crtc_state, plane_state);
-       }
-
        if (!crtc_state->nv12_planes)
                return 0;