drm/amd/display: Call hwss.set_cursor_sdr_white_level, if available
authorSivapiriyanKumarasamy <sivapiriyan.kumarasamy@amd.com>
Mon, 25 Mar 2019 18:04:30 +0000 (14:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2019 18:53:28 +0000 (13:53 -0500)
[Why]
In HDR configurations, the cursor - in SDR - needs to have it's white
level boosted.

[How]
Program the cursor boost in update_dchubp_dpp like the other cursor
attributes.

Signed-off-by: SivapiriyanKumarasamy <sivapiriyan.kumarasamy@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Acked-by: Reza Amini <Reza.Amini@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c

index 976812ae4edeb4508ab7e8b60e068af72c3f2301..afa8648d88e123c93ef6abdde24f3819fc1d2fb4 100644 (file)
@@ -2138,6 +2138,9 @@ void update_dchubp_dpp(
        if (pipe_ctx->stream->cursor_attributes.address.quad_part != 0) {
                dc->hwss.set_cursor_position(pipe_ctx);
                dc->hwss.set_cursor_attribute(pipe_ctx);
+
+               if (dc->hwss.set_cursor_sdr_white_level)
+                       dc->hwss.set_cursor_sdr_white_level(pipe_ctx);
        }
 
        if (plane_state->update_flags.bits.full_update) {