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

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd/display: do not skip ODM minimal transition based on new state

[why]
During 8k video plane resizing we could transition from MPC combine mode
back to ODM combine 2:1 + 8k video plane. In this transition minimal
transition state is based on new state with ODM combine enabled.
We are skipping this and it causes corruption because we have to reassign
a current DPP pipe to a different MPC blending tree which is not supported
seamlessly.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Acked-by: Stylon Wang <stylon.wang@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Wenjing Liu and committed by
Alex Deucher
18aa989a 3a2c0ecc

+3 -3
+3 -3
drivers/gpu/drm/amd/display/dc/core/dc.c
··· 4048 4048 * pipe, we must use the minimal transition. 4049 4049 */ 4050 4050 for (i = 0; i < dc->res_pool->pipe_count; i++) { 4051 - struct pipe_ctx *pipe = &dc->current_state->res_ctx.pipe_ctx[i]; 4051 + struct pipe_ctx *pipe = &transition_base_context->res_ctx.pipe_ctx[i]; 4052 4052 4053 - if (pipe->stream && pipe->next_odm_pipe) { 4054 - odm_in_use = true; 4053 + if (resource_is_pipe_type(pipe, OTG_MASTER)) { 4054 + odm_in_use = resource_get_odm_slice_count(pipe) > 1; 4055 4055 break; 4056 4056 } 4057 4057 }