summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2021-02-18 22:11:20 -0800
committerMarge Bot <eric+marge@anholt.net>2021-02-23 18:01:47 +0000
commitc80ddf9d7401f2e91c0bc0c755cd27f67b6f22af (patch)
tree84bdf5c5e6505476e8c155d2f709f8f74c19dd0d
parentc43e8da5350a1103c7b0bb71e4c6dec6b9ef8d61 (diff)
zink: Remove NULL checks after GET_PROC_ADDR_INSTANCE().
They're already done inside GET_PROC_ADDR*(). Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8891>
-rw-r--r--src/gallium/drivers/zink/zink_screen.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c
index 3d78a4f3cad..f7b01a0a4a3 100644
--- a/src/gallium/drivers/zink/zink_screen.c
+++ b/src/gallium/drivers/zink/zink_screen.c
@@ -1074,9 +1074,6 @@ create_debug(struct zink_screen *screen)
GET_PROC_ADDR_INSTANCE(CreateDebugUtilsMessengerEXT);
GET_PROC_ADDR_INSTANCE(DestroyDebugUtilsMessengerEXT);
- if (!screen->vk_CreateDebugUtilsMessengerEXT || !screen->vk_DestroyDebugUtilsMessengerEXT)
- return false;
-
VkDebugUtilsMessengerCreateInfoEXT vkDebugUtilsMessengerCreateInfoEXT = {
VK_STRUCTURE_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT,
NULL,