zink: print error when getprocaddr fails for extension functions
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Sat, 11 Jul 2020 13:46:23 +0000 (09:46 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 12 Aug 2020 13:19:23 +0000 (13:19 +0000)
make this more visible on errors

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6271>

src/gallium/drivers/zink/zink_screen.c

index bad18fc6967b2eb25e738031753e06abb3d497a6..acf8e9e0bc3a280b161cab51b893006cfd6ce11c 100644 (file)
@@ -733,8 +733,10 @@ load_device_extensions(struct zink_screen *screen)
 {
 #define GET_PROC_ADDR(x) do {                                               \
       screen->vk_##x = (PFN_vk##x)vkGetDeviceProcAddr(screen->dev, "vk"#x); \
-      if (!screen->vk_##x)                                                  \
+      if (!screen->vk_##x) {                                                \
+         debug_printf("vkGetDeviceProcAddr failed: vk"#x"\n");              \
          return false;                                                      \
+      } \
    } while (0)
 
 #define GET_PROC_ADDR_INSTANCE(x) do {                                          \