egl: don't check for create_fence_fd method when importing a fence
this is always supported Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30494>
This commit is contained in:

committed by
Marge Bot

parent
50b4be8d48
commit
a19839e25d
@@ -3143,10 +3143,8 @@ dri2_create_sync(_EGLDisplay *disp, EGLenum type, const EGLAttrib *attrib_list)
|
||||
break;
|
||||
|
||||
case EGL_SYNC_NATIVE_FENCE_ANDROID:
|
||||
if (dri2_dpy->fence->create_fence_fd) {
|
||||
dri2_sync->fence = dri2_dpy->fence->create_fence_fd(
|
||||
dri2_sync->fence = dri2_dpy->fence->create_fence_fd(
|
||||
dri2_ctx->dri_context, dri2_sync->base.SyncFd);
|
||||
}
|
||||
if (!dri2_sync->fence) {
|
||||
_eglError(EGL_BAD_ATTRIBUTE, "eglCreateSyncKHR");
|
||||
goto fail;
|
||||
|
Reference in New Issue
Block a user