Commit 1d0b0c17 authored by Michel Dänzer's avatar Michel Dänzer Committed by Michel Dänzer
Browse files

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>
parent f4107f67
...@@ -87,6 +87,13 @@ amdgpu_sync_init(ScreenPtr screen) ...@@ -87,6 +87,13 @@ amdgpu_sync_init(ScreenPtr screen)
AMDGPUInfoPtr info = AMDGPUPTR(scrn); AMDGPUInfoPtr info = AMDGPUPTR(scrn);
SyncScreenFuncsPtr screen_funcs; 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)) { if (!miSyncShmScreenInit(screen)) {
xf86DrvMsg(scrn->scrnIndex, X_WARNING, xf86DrvMsg(scrn->scrnIndex, X_WARNING,
"SYNC extension fences disabled because " "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