The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ipc/client: Check device_type for HMD instead of device name

Not all HMDs are `GENERIC_HMD`, and some HMD drivers are now starting to
use non-`GENERIC_HMD` device names, so this makes them initialize as
HMDs correctly.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2610>

+1 -1
+1 -1
src/xrt/ipc/client/ipc_client_instance.c
··· 323 323 struct ipc_shared_device *isdev = &ism->isdevs[i]; 324 324 xtrack = ii->xtracks[isdev->tracking_origin_index]; 325 325 326 - if (isdev->name == XRT_DEVICE_GENERIC_HMD) { 326 + if (isdev->device_type == XRT_DEVICE_TYPE_HMD) { 327 327 ii->xdevs[count++] = ipc_client_hmd_create(&ii->ipc_c, xtrack, i); 328 328 } else { 329 329 ii->xdevs[count++] = ipc_client_device_create(&ii->ipc_c, xtrack, i);