mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
lavapipe: set non-zero device/driver uuid
Closes #5875 Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15230>
This commit is contained in:
parent
2e878293f4
commit
bf7777a5d4
2 changed files with 4 additions and 2 deletions
|
|
@ -572,12 +572,14 @@ static void
|
|||
llvmpipe_get_driver_uuid(struct pipe_screen *pscreen, char *uuid)
|
||||
{
|
||||
memset(uuid, 0, PIPE_UUID_SIZE);
|
||||
snprintf(uuid, PIPE_UUID_SIZE, "llvmpipeUUID");
|
||||
}
|
||||
|
||||
static void
|
||||
llvmpipe_get_device_uuid(struct pipe_screen *pscreen, char *uuid)
|
||||
{
|
||||
memset(uuid, 0, PIPE_UUID_SIZE);
|
||||
snprintf(uuid, PIPE_UUID_SIZE, "mesa" PACKAGE_VERSION);
|
||||
}
|
||||
|
||||
static const struct nir_shader_compiler_options gallivm_nir_options = {
|
||||
|
|
|
|||
|
|
@ -851,8 +851,8 @@ lvp_get_physical_device_properties_1_1(struct lvp_physical_device *pdevice,
|
|||
{
|
||||
assert(p->sType == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_PROPERTIES);
|
||||
|
||||
memset(p->deviceUUID, 0, VK_UUID_SIZE);
|
||||
memset(p->driverUUID, 0, VK_UUID_SIZE);
|
||||
pdevice->pscreen->get_device_uuid(pdevice->pscreen, (char*)(p->deviceUUID));
|
||||
pdevice->pscreen->get_driver_uuid(pdevice->pscreen, (char*)(p->driverUUID));
|
||||
memset(p->deviceLUID, 0, VK_LUID_SIZE);
|
||||
/* The LUID is for Windows. */
|
||||
p->deviceLUIDValid = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue