Skip to content

anv: Fix build without shader cache

Philipp Zabel requested to merge pH5/mesa:anv-no-shader-cache-fix into main

Fix a build error with -Dshader-cache=disabled:

In file included from src/intel/genxml/gen7_pack.h:36,
                 from ../Mesa-22.2.0-rc3/src/intel/vulkan/anv_device.c:62:
../Mesa-22.2.0-rc3/src/intel/vulkan/anv_device.c: In function 'anv_physical_device_free_disk_cache':
../Mesa-22.2.0-rc3/src/intel/vulkan/anv_device.c:604:17: error: 'struct anv_physical_device' has no member named 'disk_cache'

Fixes: 7f1e8230 ("anv: Switch to the new common pipeline cache")

Edited by Philipp Zabel

Merge request reports