From: Harry Wentland Date: Tue, 8 Aug 2017 15:35:10 +0000 (-0400) Subject: drm/amd/display: Fix regression in dce110_apply_ctx_for_surfaces X-Git-Tag: v5.15~9960^2~23^2~195 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2607aef3d0210859d4e9cae6bba7e134ec720d8;p=platform%2Fkernel%2Flinux-starfive.git drm/amd/display: Fix regression in dce110_apply_ctx_for_surfaces Caused by "add programming for 0 plane case" which was tested on DCN but not on DCE. Signed-off-by: Harry Wentland Reviewed-by: Andrey Grodzovsky Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c index c29e514..5b46e776 100644 --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c @@ -2639,7 +2639,7 @@ static void dce110_apply_ctx_for_surface( for (i = 0; i < dc->res_pool->pipe_count; i++) { struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[i]; - if (pipe_ctx->stream == stream) + if (pipe_ctx->stream != stream) continue; dce110_program_front_end_for_pipe(dc, pipe_ctx);