<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, "EmojiFont", "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Do other DCE blocks need this fix as well?  Or is this code shared with say DCE8 and DCE10?<br>
</p>
<br>
Alex<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Harry Wentland <harry.wentland@amd.com><br>
<b>Sent:</b> Tuesday, April 3, 2018 9:27 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org<br>
<b>Cc:</b> Li, Sun peng (Leo)<br>
<b>Subject:</b> [PATCH 32/32] drm/amd/display: Fix dim display on DCE11</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">From: "Leo (Sunpeng) Li" <sunpeng.li@amd.com><br>
<br>
Before programming the input gamma, check that we're not using the<br>
identity correction.<br>
<br>
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com><br>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com><br>
Acked-by: Harry Wentland <harry.wentland@amd.com><br>
---<br>
 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 4 +++-<br>
 1 file changed, 3 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c<br>
index 99d192200797..f385b18d5c2e 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c<br>
@@ -280,7 +280,9 @@ dce110_set_input_transfer_func(struct pipe_ctx *pipe_ctx,<br>
         build_prescale_params(&prescale_params, plane_state);<br>
         ipp->funcs->ipp_program_prescale(ipp, &prescale_params);<br>
 <br>
-       if (plane_state->gamma_correction && dce_use_lut(plane_state->format))<br>
+       if (plane_state->gamma_correction &&<br>
+                       !plane_state->gamma_correction->is_identity &&<br>
+                       dce_use_lut(plane_state->format))<br>
                 ipp->funcs->ipp_program_input_lut(ipp, plane_state->gamma_correction);<br>
 <br>
         if (tf == NULL) {<br>
-- <br>
2.15.1<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
amd-gfx@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx" id="LPlnk30396" previewremoved="true">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a><br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>