mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-13 17:20:09 +00:00
st/oxr: Grab LUID from Vulkan if possible
This commit is contained in:
parent
49c45bf16a
commit
32a893fd2b
|
@ -461,6 +461,10 @@ oxr_vk_get_physical_device(struct oxr_logger *log,
|
||||||
if (log_level <= U_LOGGING_DEBUG) {
|
if (log_level <= U_LOGGING_DEBUG) {
|
||||||
snprint_uuid(uuid_str, ARRAY_SIZE(uuid_str), (xrt_uuid_t *)pdidp.deviceUUID);
|
snprint_uuid(uuid_str, ARRAY_SIZE(uuid_str), (xrt_uuid_t *)pdidp.deviceUUID);
|
||||||
oxr_log(log, "GPU: #%d, uuid: %s", i, uuid_str);
|
oxr_log(log, "GPU: #%d, uuid: %s", i, uuid_str);
|
||||||
|
if (pdidp.deviceLUIDValid == VK_TRUE) {
|
||||||
|
snprint_uuid(uuid_str, ARRAY_SIZE(uuid_str), (xrt_uuid_t *)pdidp.deviceLUID);
|
||||||
|
oxr_log(log, " LUID: %s", uuid_str);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (memcmp(pdidp.deviceUUID, sys->xsysc->info.client_vk_deviceUUID.data, XRT_UUID_SIZE) == 0) {
|
if (memcmp(pdidp.deviceUUID, sys->xsysc->info.client_vk_deviceUUID.data, XRT_UUID_SIZE) == 0) {
|
||||||
|
|
Loading…
Reference in a new issue