mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
anv/pipeline: honor the pipeline_cache_enabled run-time flag
v2: merge both conditions to reduce the diff (Lionel) Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
parent
817efd8968
commit
449c22004c
1 changed files with 1 additions and 1 deletions
|
|
@ -571,7 +571,7 @@ anv_device_search_for_kernel(struct anv_device *device,
|
|||
|
||||
#ifdef ENABLE_SHADER_CACHE
|
||||
struct disk_cache *disk_cache = device->instance->physicalDevice.disk_cache;
|
||||
if (disk_cache) {
|
||||
if (disk_cache && device->instance->pipeline_cache_enabled) {
|
||||
cache_key cache_key;
|
||||
disk_cache_compute_key(disk_cache, key_data, key_size, cache_key);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue