projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b38b1c
)
zink: explicitly check for VK_NULL_HANDLE
author
Erik Faye-Lund
<erik.faye-lund@collabora.com>
Fri, 5 Feb 2021 11:49:50 +0000
(12:49 +0100)
committer
Marge Bot
<eric+marge@anholt.net>
Fri, 5 Feb 2021 16:45:43 +0000
(16:45 +0000)
This seems a bit less like magic to me.
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7881>
src/gallium/drivers/zink/zink_screen.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/zink/zink_screen.c
b/src/gallium/drivers/zink/zink_screen.c
index
d1b37ae
..
1693b83
100644
(file)
--- a/
src/gallium/drivers/zink/zink_screen.c
+++ b/
src/gallium/drivers/zink/zink_screen.c
@@
-1098,7
+1098,7
@@
zink_internal_create_screen(const struct pipe_screen_config *config)
debug_printf("ZINK: failed to setup debug utils\n");
screen->pdev = choose_pdev(screen->instance);
- if (
!screen->pdev
)
+ if (
screen->pdev == VK_NULL_HANDLE
)
goto fail;
update_queue_props(screen);