zink: Advertise PIPE_CAP_NATIVE_FENCE_FD

Enables EGL_ANDROID_native_fence_sync

Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17478>
This commit is contained in:
Julia Tatz 2022-07-11 18:44:16 -04:00 committed by Marge Bot
parent 86e4fcd9a9
commit 4e2f6e5b4c
2 changed files with 3 additions and 0 deletions

View file

@ -38,6 +38,7 @@ EXTENSIONS = [
Extension("VK_EXT_debug_utils"),
Extension("VK_KHR_get_physical_device_properties2"),
Extension("VK_KHR_external_memory_capabilities"),
Extension("VK_KHR_external_semaphore_capabilities"),
Extension("VK_MVK_moltenvk",
nonstandard=True),
Extension("VK_KHR_surface"),

View file

@ -410,6 +410,8 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
return screen->instance_info.have_KHR_external_memory_capabilities && (screen->info.have_KHR_external_memory_fd || screen->info.have_KHR_external_memory_win32);
case PIPE_CAP_FENCE_SIGNAL:
return screen->info.have_KHR_external_semaphore_fd || screen->info.have_KHR_external_semaphore_win32;
case PIPE_CAP_NATIVE_FENCE_FD:
return screen->instance_info.have_KHR_external_semaphore_capabilities && screen->info.have_KHR_external_semaphore_fd;
case PIPE_CAP_DEVICE_RESET_STATUS_QUERY:
case PIPE_CAP_QUERY_MEMORY_INFO: