Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Change swizzle visual confirm reference pipe

[Why]
To change the swizzle visual confirm reference pipe from top pipe to
bottom pipe due to bottom pipe information would be more important
for multiple overlay case.

Signed-off-by: Po-Ting Chen <robin.chen@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Po-Ting Chen and committed by
Alex Deucher
231f1625 8a58e25b

+5 -5
+5 -5
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
··· 409 409 struct tg_color *color) 410 410 { 411 411 uint32_t color_value = MAX_TG_COLOR_VALUE; 412 - /* Determine the overscan color based on the top-most (desktop) plane's context */ 413 - struct pipe_ctx *top_pipe_ctx = pipe_ctx; 412 + /* Determine the overscan color based on the bottom-most plane's context */ 413 + struct pipe_ctx *bottom_pipe_ctx = pipe_ctx; 414 414 415 - while (top_pipe_ctx->top_pipe != NULL) 416 - top_pipe_ctx = top_pipe_ctx->top_pipe; 415 + while (bottom_pipe_ctx->bottom_pipe != NULL) 416 + bottom_pipe_ctx = bottom_pipe_ctx->bottom_pipe; 417 417 418 - switch (top_pipe_ctx->plane_state->tiling_info.gfx9.swizzle) { 418 + switch (bottom_pipe_ctx->plane_state->tiling_info.gfx9.swizzle) { 419 419 case DC_SW_LINEAR: 420 420 /* LINEAR Surface - set border color to red */ 421 421 color->color_r_cr = color_value;