]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amd/display: Trigger full update on plane change
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>
Thu, 9 Nov 2017 20:33:43 +0000 (15:33 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:48:11 +0000 (12:48 -0500)
With the optimized DCN10 frontend programming code, things are
programmed only when requested. For now, trigger a full update on all
plane changes.

Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 41e829ac2a57356fffe210e256c203b6bf01725f..c12331e6381657ec47705c86686d6d780de6f9ae 100644 (file)
@@ -4703,6 +4703,11 @@ static int dm_update_planes_state(struct dc *dc,
                                return ret;
                        }
 
+                       /* Tell DC to do a full surface update every time there
+                        * is a plane change. Inefficient, but works for now.
+                        */
+                       dm_new_plane_state->dc_state->update_flags.bits.full_update = 1;
+
                        *lock_and_validation_needed = true;
                }
        }