mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
radv: Do not read from the disk cache with RADV_DEBUG=nocache.
Otherwise the flag is borderline useless. Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
2cccc74f56
commit
fa226e9933
1 changed files with 2 additions and 1 deletions
|
|
@ -183,7 +183,8 @@ radv_create_shader_variants_from_pipeline_cache(struct radv_device *device,
|
|||
entry = radv_pipeline_cache_search(device->mem_cache, sha1);
|
||||
|
||||
if (!entry) {
|
||||
if (!device->physical_device->disk_cache)
|
||||
if (!device->physical_device->disk_cache ||
|
||||
(device->instance->debug_flags & RADV_DEBUG_NO_CACHE))
|
||||
return false;
|
||||
|
||||
uint8_t disk_sha1[20];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue