diff options
author | Jason Ekstrand <[email protected]> | 2017-02-24 16:29:26 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-03-01 15:31:44 -0800 |
commit | e647c4fbd9a186d9df9d5b0e50507f33180214a8 (patch) | |
tree | 2ce033265c97e149d4fa289d90e88e76ae658ea8 /src/intel/vulkan | |
parent | e3d33a23e6cbe2b73b412a56bb4fc4aa6852d081 (diff) |
util/build-id: Return a pointer rather than copying the data
We're about to use the build-id as the starting point for another SHA1
hash in the Intel Vulkan driver, and returning a pointer is far more
convenient.
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r-- | src/intel/vulkan/anv_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 238e149a3d1..9b9355c2ff0 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -63,7 +63,7 @@ anv_device_get_cache_uuid(void *uuid) if (len < VK_UUID_SIZE) return false; - build_id_read(note, uuid, VK_UUID_SIZE); + memcpy(uuid, build_id_data(note), VK_UUID_SIZE); return true; } |