From: "Leung, Martin" <martin.le...@amd.com>

why and how:
needed to fix bad assumption for enable mcm_luts

Reviewed-by: Rodrigo Siqueira <rodrigo.sique...@amd.com>
Signed-off-by: Martin Leung <martin.le...@amd.com>
---
 drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c 
b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c
index 8012a48859b5..5213f4443531 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c
@@ -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);
-- 
2.37.2

Reply via email to