]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amd/display: Do not copy bottom pipe when map resource.
authorYongqiang Sun <yongqiang.sun@amd.com>
Mon, 6 Mar 2017 19:58:59 +0000 (14:58 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:18:32 +0000 (17:18 -0400)
Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c

index f1b1dae5399eb08a4b5c7c8c41ec64ec8a04cbe9..c38f71e4538177a6123e9374d5a805c3bb30276c 100644 (file)
@@ -1134,6 +1134,9 @@ enum dc_status resource_map_pool_resources(
                        if (!are_stream_backends_same(old_pipe_ctx->stream, stream))
                                continue;
 
+                       if (old_pipe_ctx->top_pipe)
+                               continue;
+
                        pipe_ctx->stream = stream;
                        copy_pipe_ctx(old_pipe_ctx, pipe_ctx);