zink: Use mesa_loge() for should-never-be-reached initialization errors.
dEQP in CI was hitting these, and debug_printf is not enabled on non-debug (such as debugoptimized or release) builds. Besides, mesa_loge() gets you logging on Android, should someone ever do zink for that. Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8891>
This commit is contained in:
parent
d53fa9d9ff
commit
c43e8da535
|
@ -31,6 +31,7 @@
|
|||
#include "util/slab.h"
|
||||
#include "compiler/nir/nir.h"
|
||||
#include "util/disk_cache.h"
|
||||
#include "util/log.h"
|
||||
|
||||
#include <vulkan/vulkan.h>
|
||||
|
||||
|
@ -136,7 +137,7 @@ zink_is_depth_format_supported(struct zink_screen *screen, VkFormat format);
|
|||
#define GET_PROC_ADDR(x) do { \
|
||||
screen->vk_##x = (PFN_vk##x)vkGetDeviceProcAddr(screen->dev, "vk"#x); \
|
||||
if (!screen->vk_##x) { \
|
||||
debug_printf("vkGetDeviceProcAddr failed: vk"#x"\n"); \
|
||||
mesa_loge("ZINK: vkGetDeviceProcAddr failed: vk"#x"\n"); \
|
||||
return false; \
|
||||
} \
|
||||
} while (0)
|
||||
|
@ -144,7 +145,7 @@ zink_is_depth_format_supported(struct zink_screen *screen, VkFormat format);
|
|||
#define GET_PROC_ADDR_INSTANCE(x) do { \
|
||||
screen->vk_##x = (PFN_vk##x)vkGetInstanceProcAddr(screen->instance, "vk"#x); \
|
||||
if (!screen->vk_##x) { \
|
||||
debug_printf("GetInstanceProcAddr failed: vk"#x"\n"); \
|
||||
mesa_loge("ZINK: GetInstanceProcAddr failed: vk"#x"\n"); \
|
||||
return false; \
|
||||
} \
|
||||
} while (0)
|
||||
|
|
Loading…
Reference in New Issue