mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
drm/amd/display: Add override for visual confirm
[WHY] We want to allow the display manager to override the visual confirm color in DC when required. [HOW] Add new visual confirm mode VISUAL_CONFIRM_EXPLICIT, check mode before setting visual confirm color. Reviewed-by: Aric Cyr <aric.cyr@amd.com> Signed-off-by: Leo Zeng <Leo.Zeng@amd.com> Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
f5e7fabd1f
commit
9cdd9c4d03
|
|
@ -1192,6 +1192,12 @@ static void apply_ctx_interdependent_lock(struct dc *dc,
|
|||
|
||||
static void dc_update_visual_confirm_color(struct dc *dc, struct dc_state *context, struct pipe_ctx *pipe_ctx)
|
||||
{
|
||||
if (dc->debug.visual_confirm & VISUAL_CONFIRM_EXPLICIT) {
|
||||
memcpy(&pipe_ctx->visual_confirm_color, &pipe_ctx->plane_state->visual_confirm_color,
|
||||
sizeof(pipe_ctx->visual_confirm_color));
|
||||
return;
|
||||
}
|
||||
|
||||
if (dc->ctx->dce_version >= DCN_VERSION_1_0) {
|
||||
memset(&pipe_ctx->visual_confirm_color, 0, sizeof(struct tg_color));
|
||||
|
||||
|
|
|
|||
|
|
@ -496,6 +496,7 @@ enum visual_confirm {
|
|||
VISUAL_CONFIRM_HW_CURSOR = 20,
|
||||
VISUAL_CONFIRM_VABC = 21,
|
||||
VISUAL_CONFIRM_DCC = 22,
|
||||
VISUAL_CONFIRM_EXPLICIT = 0x80000000,
|
||||
};
|
||||
|
||||
enum dc_psr_power_opts {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user