From c49e328e4f41d4a2503045a0bb8bfaf65d4cde61 Mon Sep 17 00:00:00 2001 From: sjfricke Date: Mon, 22 Aug 2022 20:36:53 +0900 Subject: [PATCH] anv: fix assert to build with shader cache disabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When setting -Dshader-cache=disabled the build fails due no member named 'disk_cache' in 'struct anv_physical_device' Signed-off-by: sjfricke Reviewed-by: Tapani Pälli Fixes: 7f1e8230 ("anv: Switch to the new common pipeline cache") Part-of: --- src/intel/vulkan/anv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index eda3e9bdc21..99393dc7ebd 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -606,7 +606,7 @@ anv_physical_device_free_disk_cache(struct anv_physical_device *device) device->vk.disk_cache = NULL; } #else - assert(device->disk_cache == NULL); + assert(device->vk.disk_cache == NULL); #endif }