The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

c/client: Comments in the EGL insert fence function

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2433>

+3 -1
+3 -1
src/xrt/compositor/client/comp_egl_client.c
··· 390 390 EGLDisplay dpy = ceglc->current.dpy; 391 391 392 392 #ifdef XRT_GRAPHICS_SYNC_HANDLE_IS_FD 393 - 393 + // https://registry.khronos.org/EGL/extensions/ANDROID/EGL_ANDROID_native_fence_sync.txt 394 + // create also inserts the fence in the command stream 394 395 EGLSyncKHR sync = eglCreateSyncKHR(dpy, EGL_SYNC_NATIVE_FENCE_ANDROID, NULL); 395 396 if (sync == EGL_NO_SYNC_KHR) { 396 397 EGL_ERROR("Failed to insert fence!"); 397 398 return XRT_ERROR_FENCE_CREATE_FAILED; 398 399 } 399 400 401 + // Flush needed to create native FD 400 402 glFlush(); 401 403 402 404 int fence_fd = eglDupNativeFenceFDANDROID(dpy, sync);