st/oxr: Grab LUID from Vulkan if possible

This commit is contained in:
Ryan Pavlik 2022-05-02 17:07:07 -05:00 committed by Jakob Bornecrantz
parent 49c45bf16a
commit 32a893fd2b

View file

@ -461,6 +461,10 @@ oxr_vk_get_physical_device(struct oxr_logger *log,
if (log_level <= U_LOGGING_DEBUG) {
snprint_uuid(uuid_str, ARRAY_SIZE(uuid_str), (xrt_uuid_t *)pdidp.deviceUUID);
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) {