monado/src
Antonio Ospite 2b456da531 c/client: make sure layer_commit passes complete frames in comp_gl_client
Make sure `layer_commit` passes on complete frames in `comp_gl_client.c`
even when EGL_ANDROID_native_fence_sync is not available.

The `insert_fence` function defined in `comp_egl_client.c` and passed as
argument to `comp_egl_client::client_gl_compositor_init` is only setting
up a proper fence when EGL_ANDROID_native_fence_sync is available,
resulting in a no-op otherwise.

However the fact that the insert_fence function is still valid results
in the `glFlush` workaround from
`comp_gl_client::client_gl_compositor_layer_commit` not kicking in.

To fix this define a NULL `insert_fence` function when
EGL_ANDROID_native_fence_sync is not available, and while at it turn the
`glFlush` workaround into a `glFinish` for extra safety.

This ensures that frames are always complete after
`client_gl_compositor_layer_commit` has been called.
2022-01-06 14:54:55 +00:00
..
external ext/openxr: Update headers to 1.0.20 2022-01-04 18:12:55 +00:00
xrt c/client: make sure layer_commit passes complete frames in comp_gl_client 2022-01-06 14:54:55 +00:00
CMakeLists.txt xrt: Re-arrange build to avoid unnecessary includes. 2020-04-28 21:36:46 +00:00
meson.build build: Refactor how config defines are handled 2020-03-03 10:33:14 +00:00