anv: fix assert to build with shader cache disabled
authorsjfricke <spencerfricke@gmail.com>
Mon, 22 Aug 2022 11:36:53 +0000 (20:36 +0900)
committerMarge Bot <emma+marge@anholt.net>
Tue, 23 Aug 2022 13:35:46 +0000 (13:35 +0000)
When setting -Dshader-cache=disabled the build fails due
no member named 'disk_cache' in 'struct anv_physical_device'

Signed-off-by: sjfricke <spencerfricke@gmail.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Fixes: 7f1e8230 ("anv: Switch to the new common pipeline cache")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18181>

src/intel/vulkan/anv_device.c

index eda3e9b..99393dc 100644 (file)
@@ -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
 }