]> Git Repo - linux.git/commitdiff
drm/amd/display: Allow dirty rects to be sent to dmub when abm is active
authorJosip Pavic <[email protected]>
Fri, 9 Feb 2024 21:05:18 +0000 (16:05 -0500)
committerAlex Deucher <[email protected]>
Wed, 20 Mar 2024 17:12:58 +0000 (13:12 -0400)
[WHY]
It's beneficial for ABM to know when new frame data are available.

[HOW]
Add new condition to allow dirty rects to be sent to DMUB when ABM is
active. ABM will use this as a signal that a new frame has arrived.

Cc: Mario Limonciello <[email protected]>
Cc: Alex Deucher <[email protected]>
Cc: [email protected]
Reviewed-by: Anthony Koo <[email protected]>
Acked-by: Alex Hung <[email protected]>
Signed-off-by: Josip Pavic <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/display/dc/core/dc.c

index 5211c1c0f3c0cf0968cae6c168750dc34d7a0e9a..613d09c42f3b95b1c9096894d47da6e27f124568 100644 (file)
@@ -3270,6 +3270,9 @@ static bool dc_dmub_should_send_dirty_rect_cmd(struct dc *dc, struct dc_stream_s
        if (stream->link->replay_settings.config.replay_supported)
                return true;
 
+       if (stream->ctx->dce_version >= DCN_VERSION_3_5 && stream->abm_level)
+               return true;
+
        return false;
 }
 
This page took 0.066641 seconds and 4 git commands to generate.