Mesa (main): zink: enable pipe cap for win32 external memory and fences

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun May 15 20:23:01 UTC 2022


Module: Mesa
Branch: main
Commit: 5fda0a996adffbd70d7c2a619edb30093f614251
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5fda0a996adffbd70d7c2a619edb30093f614251

Author: Sidney Just <justsid at x-plane.com>
Date:   Tue Mar 22 23:00:31 2022 -0700

zink: enable pipe cap for win32 external memory and fences

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15504>

---

 src/gallium/drivers/zink/zink_screen.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c
index 2b565de7802..c1dc074a617 100644
--- a/src/gallium/drivers/zink/zink_screen.c
+++ b/src/gallium/drivers/zink/zink_screen.c
@@ -400,9 +400,9 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
       return 1;
 
    case PIPE_CAP_MEMOBJ:
-      return screen->instance_info.have_KHR_external_memory_capabilities && screen->info.have_KHR_external_memory_fd;
+      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;
+      return screen->info.have_KHR_external_semaphore_fd || screen->info.have_KHR_external_semaphore_win32;
 
    case PIPE_CAP_DEVICE_RESET_STATUS_QUERY:
    case PIPE_CAP_QUERY_MEMORY_INFO:



More information about the mesa-commit mailing list