Skip to content

Commit 679fc89

Browse files
Bhawanpreet Lakhaalexdeucher
authored andcommitted
drm/amd/display: Add dirty rect support for Replay
Dirty rect can be used with replay, so enable them to allow for more powersaving. Reviewed-by: Sun peng Li <sunpeng.li@amd.com> Acked-by: Stylon Wang <stylon.wang@amd.com> Signed-off-by: Bhawanpreet Lakha <bhawanpreet.lakha@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 169ed4e commit 679fc89

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8078,7 +8078,8 @@ static void amdgpu_dm_commit_planes(struct drm_atomic_state *state,
80788078
bundle->surface_updates[planes_count].plane_info =
80798079
&bundle->plane_infos[planes_count];
80808080

8081-
if (acrtc_state->stream->link->psr_settings.psr_feature_enabled) {
8081+
if (acrtc_state->stream->link->psr_settings.psr_feature_enabled ||
8082+
acrtc_state->stream->link->replay_settings.replay_feature_enabled) {
80828083
fill_dc_dirty_rects(plane, old_plane_state,
80838084
new_plane_state, new_crtc_state,
80848085
&bundle->flip_addrs[planes_count],

0 commit comments

Comments
 (0)