Commit a17aca22 authored by Michel Dänzer's avatar Michel Dänzer Committed by Michel Dänzer

sync: Check if miSyncShmScreenInit symbol is resolved at runtime

It may be disabled in the Xorg build, either explicitly or because the
xshmfence library isn't available.
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 1d0b0c17)
parent ff99645f
......@@ -87,6 +87,13 @@ amdgpu_sync_init(ScreenPtr screen)
AMDGPUInfoPtr info = AMDGPUPTR(scrn);
SyncScreenFuncsPtr screen_funcs;
if (!xf86LoaderCheckSymbol("miSyncShmScreenInit")) {
xf86DrvMsg(scrn->scrnIndex, X_WARNING,
"SYNC extension fences disabled because "
"miSyncShmScreenInit symbol unresolved\n");
return FALSE;
}
if (!miSyncShmScreenInit(screen)) {
xf86DrvMsg(scrn->scrnIndex, X_WARNING,
"SYNC extension fences disabled because "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment