OSDN Git Service

drm/amd/display: Fix pipe check condition for manual trigger
authorAlvin Lee <alvin.lee2@amd.com>
Wed, 7 Jun 2023 20:30:28 +0000 (16:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 23 Jun 2023 19:41:04 +0000 (15:41 -0400)
Condition for programming manually trigger used the wrong pipe (always
used top pipe instead of the one we are iterating through).

Fixes: 0baae6246307 ("drm/amd/display: Refactor fast update to use new HWSS build sequence")
Reviewed-by: Samson Tam <samson.tam@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c

index d7d00fe..cb2bf9a 100644 (file)
@@ -610,7 +610,7 @@ void hwss_build_fast_sequence(struct dc *dc,
                current_mpc_pipe = current_pipe;
 
                while (current_mpc_pipe) {
-                       if (!current_mpc_pipe->bottom_pipe && !pipe_ctx->next_odm_pipe &&
+                       if (!current_mpc_pipe->bottom_pipe && !current_mpc_pipe->next_odm_pipe &&
                                        current_mpc_pipe->stream && current_mpc_pipe->plane_state &&
                                        current_mpc_pipe->plane_state->update_flags.bits.addr_update &&
                                        !current_mpc_pipe->plane_state->skip_manual_trigger) {