]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amd/display: Use stream opp_id instead of hubp
authorWesley Chalmers <Wesley.Chalmers@amd.com>
Wed, 29 May 2019 18:38:53 +0000 (14:38 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Jun 2019 17:51:05 +0000 (12:51 -0500)
[WHY]
By the time output csc matrix is being programmed, stream connection to
OPP has been established, but this information has not been relayed back
to HUBP.

Signed-off-by: Wesley Chalmers <Wesley.Chalmers@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Acked-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c

index 45b542b5d9204751a3b0d00b94c6eb3df1754f66..bf64a73f148261ef41c80f3f7bb06fb9833b077d 100644 (file)
@@ -457,7 +457,7 @@ bool dc_stream_program_csc_matrix(struct dc *dc, struct dc_stream_state *stream)
                                        pipes,
                                        stream->output_color_space,
                                        stream->csc_color_matrix.matrix,
-                                       pipes->plane_res.hubp ? pipes->plane_res.hubp->opp_id : 0);
+                                       pipes->stream_res.opp->inst);
                        ret = true;
                }
        }
index f334756c1ce35abfa1a0e5741c777420b6da5f24..d2352949c06ea8123f6677eeb3ceb76fd147e097 100644 (file)
@@ -2169,7 +2169,7 @@ void update_dchubp_dpp(
                                pipe_ctx,
                                pipe_ctx->stream->output_color_space,
                                pipe_ctx->stream->csc_color_matrix.matrix,
-                               hubp->opp_id);
+                               pipe_ctx->stream_res.opp->inst);
        }
 
        if (plane_state->update_flags.bits.full_update ||