Going from binary to hex has a 2x blowup.

Fixes: 14216252923 'radv: create on-disk shader cache'
---
 src/amd/vulkan/radv_device.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index c4e25222eaf..6cc793654c7 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -168,8 +168,8 @@ radv_physical_device_init(struct radv_physical_device 
*device,
        /* The gpu id is already embeded in the uuid so we just pass "radv"
         * when creating the cache.
         */
-       char buf[VK_UUID_SIZE + 1];
-       disk_cache_format_hex_id(buf, device->cache_uuid, VK_UUID_SIZE);
+       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("radv", buf, shader_env_flags);
 
        fprintf(stderr, "WARNING: radv is not a conformant vulkan 
implementation, testing use only.\n");
-- 
2.14.2

_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to