mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
hk: Fill deviceUUID
Before this the device UUID was never filled.
Fixes: 5bc8284816 ("hk: add Vulkan driver for Apple GPUs")
Signed-off-by: Mary Guillemard <mary@mary.zone>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31908>
This commit is contained in:
parent
167744dce9
commit
053d4c5666
1 changed files with 2 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue