drm/amd/display: Fix DAL surface change test
authorEric Bernstein <eric.bernstein@amd.com>
Fri, 16 Feb 2018 22:46:54 +0000 (17:46 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Mar 2018 20:34:52 +0000 (15:34 -0500)
Signed-off-by: Eric Bernstein <eric.bernstein@amd.com>
Reviewed-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c

index 759e925..b4a6b67 100644 (file)
@@ -1943,7 +1943,7 @@ static void dcn10_apply_ctx_for_surface(
                        if (old_pipe_ctx->stream_res.tg == tg &&
                                old_pipe_ctx->plane_res.hubp &&
                                old_pipe_ctx->plane_res.hubp->opp_id != 0xf) {
-                               dcn10_disable_plane(dc, pipe_ctx);
+                               dcn10_disable_plane(dc, old_pipe_ctx);
                                /*
                                 * power down fe will unlock when calling reset, need
                                 * to lock it back here. Messy, need rework.