linux/drivers/gpu/drm/amd/display/dc/dce110
Nicholas Kazlauskas 033baeeefb drm/amd/display: Make cursor source translation adjustment optional
[Why]
In some usecases, like tiled display, the stream and plane configuration
can be setup in a way where the caller expects DAL to perform the
clipping, eg:

P0:
src_rect(0, 0, w, h)
dst_rect(0, 0, w, h)

P1:
src_rect(w, 0, w, h)
dst_rect(0, 0, w, h)

Cursor is enabled on both streams with the same position.

This can result in double cursor on tiled display, even though this
behavior is technically correct from the DC interface point of view.

We need a mechanism to control this dynamically.

[How]
This is something that should live in the DM layer based on detection
of the specified configuration but it's not something that we really
have enough information to deal with today.

Add a flag to the cursor position state that specifies whether we
want DC to do the translation or not and make it opt-in and let
the DM decide when to do it.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-04-09 10:43:17 -04:00
..
dce110_compressor.c drm/amd: drop use of drmp.h in os_types.h 2019-06-10 22:59:45 +02:00
dce110_compressor.h amdgpu/dc: another round of dce/dcn construct cleanups. 2017-09-29 13:02:34 -04:00
dce110_hw_sequencer.c drm/amd/display: Make cursor source translation adjustment optional 2020-04-09 10:43:17 -04:00
dce110_hw_sequencer.h drm/amd/display: Add function pointers for panel related hw functions 2020-02-25 11:05:35 -05:00
dce110_mem_input_v.c drm/amd/display: add dcc programming for dual plane 2019-07-18 14:27:26 -05:00
dce110_mem_input_v.h drm/amd/display: dce 8 - 12 mem_input refactor to new style 2017-09-26 18:07:12 -04:00
dce110_opp_csc_v.c amdgpu/dc: Fix enum mismatch in calls to program_color_matrix() 2018-02-19 14:19:44 -05:00
dce110_opp_regamma_v.c drm/amd: drop dependencies on drm_os_linux.h 2019-06-10 22:59:32 +02:00
dce110_opp_v.c amdgpu/dc: another round of dce/dcn construct cleanups. 2017-09-29 13:02:34 -04:00
dce110_opp_v.h amdgpu/dc: another round of dce/dcn construct cleanups. 2017-09-29 13:02:34 -04:00
dce110_resource.c drm/amd/display: add separate of private hwss functions 2019-12-05 16:26:46 -05:00
dce110_resource.h drm/amd/display: Engine-specific encoder allocation 2019-05-24 12:21:00 -05:00
dce110_timing_generator_v.c drm/amd/display: stop external access to internal optc sync params 2019-05-24 12:20:49 -05:00
dce110_timing_generator_v.h amdgpu/dc: another round of dce/dcn construct cleanups. 2017-09-29 13:02:34 -04:00
dce110_timing_generator.c drm/amd/display: make PSR static screen entry within 30 ms 2020-01-16 14:16:08 -05:00
dce110_timing_generator.h drm/amd/display: make PSR static screen entry within 30 ms 2020-01-16 14:16:08 -05:00
dce110_transform_v.c drm/amd: drop dependencies on drm_os_linux.h 2019-06-10 22:59:32 +02:00
dce110_transform_v.h amdgpu/dc: make program_regamma_pwl return void 2017-09-29 13:02:08 -04:00
Makefile drm/amdgpu: add license to Makefiles 2017-12-07 11:51:10 -05:00