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>
This commit is contained in:
committed by
Alex Deucher
parent
169ed4ece8
commit
679fc891bf
@@ -8078,7 +8078,8 @@ static void amdgpu_dm_commit_planes(struct drm_atomic_state *state,
|
|||||||
bundle->surface_updates[planes_count].plane_info =
|
bundle->surface_updates[planes_count].plane_info =
|
||||||
&bundle->plane_infos[planes_count];
|
&bundle->plane_infos[planes_count];
|
||||||
|
|
||||||
if (acrtc_state->stream->link->psr_settings.psr_feature_enabled) {
|
if (acrtc_state->stream->link->psr_settings.psr_feature_enabled ||
|
||||||
|
acrtc_state->stream->link->replay_settings.replay_feature_enabled) {
|
||||||
fill_dc_dirty_rects(plane, old_plane_state,
|
fill_dc_dirty_rects(plane, old_plane_state,
|
||||||
new_plane_state, new_crtc_state,
|
new_plane_state, new_crtc_state,
|
||||||
&bundle->flip_addrs[planes_count],
|
&bundle->flip_addrs[planes_count],
|
||||||
|
Reference in New Issue
Block a user