mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
lavapipe: clamp cache uuid size
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25232>
(cherry picked from commit dd6a7a8e61)
This commit is contained in:
parent
d5a1314114
commit
d569334f80
2 changed files with 3 additions and 3 deletions
|
|
@ -1048,7 +1048,7 @@
|
|||
"description": "lavapipe: clamp cache uuid size",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1079,10 +1079,10 @@ lvp_device_get_cache_uuid(void *uuid)
|
|||
memset(uuid, 'a', VK_UUID_SIZE);
|
||||
if (MESA_GIT_SHA1[0])
|
||||
/* debug build */
|
||||
memcpy(uuid, &MESA_GIT_SHA1[4], strlen(MESA_GIT_SHA1) - 4);
|
||||
memcpy(uuid, &MESA_GIT_SHA1[4], MIN2(strlen(MESA_GIT_SHA1) - 4, VK_UUID_SIZE));
|
||||
else
|
||||
/* release build */
|
||||
memcpy(uuid, PACKAGE_VERSION, strlen(PACKAGE_VERSION));
|
||||
memcpy(uuid, PACKAGE_VERSION, MIN2(strlen(PACKAGE_VERSION), VK_UUID_SIZE));
|
||||
}
|
||||
|
||||
VKAPI_ATTR void VKAPI_CALL lvp_GetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue