Module: Mesa
Branch: main
Commit: 9d30d82a9afa132d85fa32c5796708464572e36d
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9d30d82a9afa132d85fa32c5796708464572e36d

Author: Mike Blumenkrantz <[email protected]>
Date:   Mon May 16 13:02:11 2022 -0400

zink: fix init with MESA_SHADER_CACHE_DISABLE enabled

Fixes: ba2f5cb20aa ("zink: check for error when initializing util_queue")

Reviewed-by: Dave Airlie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16533>

---

 src/gallium/drivers/zink/zink_screen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/zink/zink_screen.c 
b/src/gallium/drivers/zink/zink_screen.c
index c1dc074a617..4ddb8c91e97 100644
--- a/src/gallium/drivers/zink/zink_screen.c
+++ b/src/gallium/drivers/zink/zink_screen.c
@@ -186,7 +186,7 @@ disk_cache_init(struct zink_screen *screen)
 
    screen->disk_cache = disk_cache_create(buf, screen->info.props.deviceName, 
0);
    if (!screen->disk_cache)
-      return false;
+      return true;
 
    if (!util_queue_init(&screen->cache_put_thread, "zcq", 8, 1, 
UTIL_QUEUE_INIT_RESIZE_IF_FULL, screen) ||
       !util_queue_init(&screen->cache_get_thread, "zcfq", 8, 4,

Reply via email to