From: Mike Blumenkrantz Date: Sat, 11 Jul 2020 13:46:23 +0000 (-0400) Subject: zink: print error when getprocaddr fails for extension functions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=37872edf6fc678f90b1b2c8354a91007089f43b8;p=mesa.git zink: print error when getprocaddr fails for extension functions make this more visible on errors Reviewed-by: Erik Faye-Lund Part-of: --- diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index bad18fc6967..acf8e9e0bc3 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -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 { \