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
@ -721,7 +721,8 @@ static void false_optc_underflow_wa(
|
|||||||
dc->hwss.wait_for_mpcc_disconnect(dc, dc->res_pool, old_pipe_ctx);
|
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)
|
if (tg->funcs->is_optc_underflow_occurred(tg) && !underflow)
|
||||||
tg->funcs->clear_optc_underflow(tg);
|
tg->funcs->clear_optc_underflow(tg);
|
||||||
|
Loading…
Reference in New Issue
Block a user