mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-08 07:38:10 +00:00
drm/amd/display: unit show garbage when do OPTC blank
[Why] Unit enter to S4, garbage show on screen when do OPTC blank. [How] Wait for vblank then do OPTC blank Signed-off-by: Paul Hsieh <paul.hsieh@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
245a022163
commit
0976ef315d
1 changed files with 3 additions and 1 deletions
|
@ -2581,8 +2581,10 @@ void dcn10_blank_pixel_data(
|
||||||
}
|
}
|
||||||
} else if (blank) {
|
} else if (blank) {
|
||||||
dc->hwss.set_abm_immediate_disable(pipe_ctx);
|
dc->hwss.set_abm_immediate_disable(pipe_ctx);
|
||||||
if (stream_res->tg->funcs->set_blank)
|
if (stream_res->tg->funcs->set_blank) {
|
||||||
|
stream_res->tg->funcs->wait_for_state(stream_res->tg, CRTC_STATE_VBLANK);
|
||||||
stream_res->tg->funcs->set_blank(stream_res->tg, blank);
|
stream_res->tg->funcs->set_blank(stream_res->tg, blank);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue