mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
drm/amd/display: Check if set_blank_data_double_buffer exists before call
Not all ASIC types have this function implemented - check before calling. Signed-off-by: Vitaly Prosyak <vitaly.prosyak@amd.com> Reviewed-by: Julian Parkin <jparkin@amd.com> Acked-by: Leo Li <sunpeng.li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
92a3701c43
commit
90830e840e
1 changed files with 2 additions and 1 deletions
|
@ -721,7 +721,8 @@ static void false_optc_underflow_wa(
|
|||
dc->hwss.wait_for_mpcc_disconnect(dc, dc->res_pool, old_pipe_ctx);
|
||||
}
|
||||
|
||||
tg->funcs->set_blank_data_double_buffer(tg, true);
|
||||
if (tg->funcs->set_blank_data_double_buffer)
|
||||
tg->funcs->set_blank_data_double_buffer(tg, true);
|
||||
|
||||
if (tg->funcs->is_optc_underflow_occurred(tg) && !underflow)
|
||||
tg->funcs->clear_optc_underflow(tg);
|
||||
|
|
Loading…
Add table
Reference in a new issue