radv: do not use a different disk cache key for LLVM

The driver already adds a pipeline hash for LLVM which is redundant.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12938>
This commit is contained in:
Samuel Pitoiset 2021-09-20 17:33:52 +02:00 committed by Marge Bot
parent 99f9075063
commit f6d5cb2339

View file

@ -663,15 +663,12 @@ radv_physical_device_try_create(struct radv_instance *instance, drmDevicePtr drm
goto fail_wsi;
}
/* These flags affect shader compilation. */
uint64_t shader_env_flags = (device->use_llvm ? 0 : 0x2);
/* The gpu id is already embedded in the uuid so we just pass "radv"
* when creating the cache.
*/
char buf[VK_UUID_SIZE * 2 + 1];
disk_cache_format_hex_id(buf, device->cache_uuid, VK_UUID_SIZE * 2);
device->disk_cache = disk_cache_create(device->name, buf, shader_env_flags);
device->disk_cache = disk_cache_create(device->name, buf, 0);
#endif
if (device->rad_info.chip_class < GFX8 || device->rad_info.chip_class > GFX10)