radv: Enable weak reference cache for device->mem_cache.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23878>
This commit is contained in:
Tatsuyuki Ishi
2023-06-27 21:59:58 +09:00
committed by Marge Bot
parent 3bd72eec1e
commit 94b92718d9
+1 -1
View File
@@ -1049,7 +1049,7 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr
if (!(device->instance->debug_flags & RADV_DEBUG_NO_IBS))
radv_create_gfx_config(device);
struct vk_pipeline_cache_create_info info = {0};
struct vk_pipeline_cache_create_info info = {.weak_ref = true};
device->mem_cache = vk_pipeline_cache_create(&device->vk, &info, NULL);
if (!device->mem_cache)
goto fail_meta;