drm/amd/display: unblock mcm_luts
authorMartin Leung <Martin.Leung@amd.com>
Mon, 23 May 2022 18:57:30 +0000 (14:57 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Oct 2022 16:04:05 +0000 (12:04 -0400)
why and how:
needed to fix bad assumption for enable mcm_luts

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Martin Leung <Martin.Leung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c

index 218927d..33bdf56 100644 (file)
@@ -630,10 +630,9 @@ bool dcn32_set_input_transfer_func(struct dc *dc,
                        params = &dpp_base->degamma_params;
        }
 
-       result = dpp_base->funcs->dpp_program_gamcor_lut(dpp_base, params);
+       dpp_base->funcs->dpp_program_gamcor_lut(dpp_base, params);
 
-       if (result &&
-                       pipe_ctx->stream_res.opp &&
+       if (pipe_ctx->stream_res.opp &&
                        pipe_ctx->stream_res.opp->ctx &&
                        hws->funcs.set_mcm_luts)
                result = hws->funcs.set_mcm_luts(pipe_ctx, plane_state);