diff options
author | 2017-11-09 15:33:43 -0500 | |
---|---|---|
committer | 2017-12-06 12:48:11 -0500 | |
commit | 000b59ea9f8360a3e82efe1f4adef4d215ba18c8 (patch) | |
tree | cb760653fbca9a20d73ad003e901ee32f5b843b6 | |
parent | drm/amd/display: Rename output_bpc to opp_input_bpc (diff) | |
download | wireguard-linux-000b59ea9f8360a3e82efe1f4adef4d215ba18c8.tar.xz wireguard-linux-000b59ea9f8360a3e82efe1f4adef4d215ba18c8.zip |
drm/amd/display: Trigger full update on plane change
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>
-rw-r--r-- | drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 41e829ac2a57..c12331e63816 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -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; } } |