From 053d4c5666d187b3392c16d0d4bd55555577b007 Mon Sep 17 00:00:00 2001 From: Mary Guillemard Date: Wed, 9 Oct 2024 14:36:27 -0400 Subject: [PATCH] hk: Fill deviceUUID Before this the device UUID was never filled. Fixes: 5bc82848163 ("hk: add Vulkan driver for Apple GPUs") Signed-off-by: Mary Guillemard Part-of: --- src/asahi/vulkan/hk_physical_device.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/asahi/vulkan/hk_physical_device.c b/src/asahi/vulkan/hk_physical_device.c index 58fb898edac..7d64d913289 100644 --- a/src/asahi/vulkan/hk_physical_device.c +++ b/src/asahi/vulkan/hk_physical_device.c @@ -926,14 +926,8 @@ hk_get_device_properties(const struct agx_device *dev, vk_shaderModuleIdentifierAlgorithmUUID, sizeof(properties->shaderModuleIdentifierAlgorithmUUID)); - const struct { - uint16_t vendor_id; - uint16_t device_id; - uint8_t pad[12]; - } dev_uuid = { - .vendor_id = 0, - .device_id = 0, - }; + uint8_t dev_uuid[VK_UUID_SIZE]; + agx_get_device_uuid(dev, &dev_uuid); static_assert(sizeof(dev_uuid) == VK_UUID_SIZE); memcpy(properties->deviceUUID, &dev_uuid, VK_UUID_SIZE); static_assert(sizeof(instance->driver_build_sha) >= VK_UUID_SIZE);