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:
Bas Nieuwenhuizen 2017-10-16 13:54:02 +02:00
parent 2cccc74f56
commit fa226e9933

View file

@ -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];