From: Charlene Liu Date: Fri, 30 Jun 2017 00:25:23 +0000 (-0400) Subject: drm/amd/display: Enabling VSR on 4K display causes black screen X-Git-Tag: v4.15-rc1~56^2~23^2~371 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=46239f739aa64c797938e9a14b03fd2c1b8ce0e6;p=linux.git drm/amd/display: Enabling VSR on 4K display causes black screen Signed-off-by: Charlene Liu Reviewed-by: Anthony Koo Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c index f404e4e5e4ea..cc67707b56d0 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c @@ -1819,7 +1819,7 @@ static void program_all_pipe_in_tree( pipe_ctx->tg->funcs->set_blank(pipe_ctx->tg, !is_pipe_tree_visible(pipe_ctx)); } - if (pipe_ctx->surface->public.visible) { + if (pipe_ctx->surface != NULL) { dcn10_power_on_fe(dc, pipe_ctx, context); update_dchubp_dpp(dc, pipe_ctx, context); }