diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-10-25 03:43:00 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-10-25 09:50:05 +0200 |
commit | 5bfbab2fdcc5b1fcb3a0d0b8cce19c5492c7de68 (patch) | |
tree | c2410a5264af4acbd571538827ca850098a45f82 /src/amd/vulkan | |
parent | 767ca5bdf18e1590d97728144f13223db26782da (diff) |
radv: Fix truncation issue hexifying the cache uuid for the disk cache.
Going from binary to hex has a 2x blowup.
Fixes: 14216252923 'radv: create on-disk shader cache'
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index ebc74fbadef..19ff8fec647 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -170,8 +170,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(device->name, buf, shader_env_flags); fprintf(stderr, "WARNING: radv is not a conformant vulkan implementation, testing use only.\n"); |