From: "Leo (Sunpeng) Li" <[email protected]>

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 <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Acked-by: Harry Wentland <[email protected]>
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 
b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 8638f1c6764d..d10f8c09469b 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -4741,6 +4741,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;
                }
        }
-- 
2.14.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to