diff options
| author | Krunoslav Kovac <[email protected]> | 2018-06-27 22:23:37 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2018-07-16 21:11:49 +0000 |
| commit | 6d92b5c2d5bea1b1d0859bd8f3080344e5e3960e (patch) | |
| tree | 722ba60881647c18f611c9bbaf2c072fba4f0b6f /drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h | |
| parent | drm/amd/display: Add headers for hardcoded 1d luts. (diff) | |
| download | kernel-6d92b5c2d5bea1b1d0859bd8f3080344e5e3960e.tar.gz kernel-6d92b5c2d5bea1b1d0859bd8f3080344e5e3960e.zip | |
drm/amd/display: Refactor SDR cursor boosting in HDR mode
[Why]
Cursor boosting is done via CNVC_CUR register which is DPP, not HUBP
Previous commit was implementing it in HUBP functions,
and also breaking diags tests.
[How]
1. Undo original commit as well as Eric's diags test fix, almost completely
2. Move programming to DPP and call via new dc_stream function
3. Also removing cur_rom_en from dpp_cursor_attributes and programming
as part of normal cursor attributes as it depends on cursor color format
Signed-off-by: Krunoslav Kovac <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Acked-by: Leo Li <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h')
| -rw-r--r-- | drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h b/drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h index 582458f028f8..74ad94b0e4f0 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h +++ b/drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h @@ -151,6 +151,9 @@ struct dpp_funcs { void (*dpp_set_hdr_multiplier)( struct dpp *dpp_base, uint32_t multiplier); + void (*set_optional_cursor_attributes)( + struct dpp *dpp_base, + struct dpp_cursor_attributes *attr); void (*dpp_dppclk_control)( struct dpp *dpp_base, |
