Mesa (master): radv: Create shader cache if ENABLE_SHADER_CACHE
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Dec 2 11:36:38 UTC 2020
Module: Mesa
Branch: master
Commit: 60c362c4906afa7968eb1862c25d4fa44cc5355a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=60c362c4906afa7968eb1862c25d4fa44cc5355a
Author: James Park <jpark37 at lagfreegames.com>
Date: Thu Nov 26 19:16:51 2020 -0800
radv: Create shader cache if ENABLE_SHADER_CACHE
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7866>
---
src/amd/vulkan/radv_device.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 9b1807ddd06..bb12574473e 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -385,6 +385,7 @@ radv_physical_device_try_create(struct radv_instance *instance,
"AMD RADV %s (%s)",
device->rad_info.name, radv_get_compiler_string(device));
+#ifdef ENABLE_SHADER_CACHE
if (radv_device_get_cache_uuid(device->rad_info.family, device->cache_uuid)) {
result = vk_errorf(instance, VK_ERROR_INITIALIZATION_FAILED,
"cannot generate UUID");
@@ -400,6 +401,7 @@ radv_physical_device_try_create(struct radv_instance *instance,
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);
+#endif
if (device->rad_info.chip_class < GFX8)
fprintf(stderr, "WARNING: radv is not a conformant vulkan implementation, testing use only.\n");
More information about the mesa-commit
mailing list