The open source OpenXR runtime
0
fork

Configure Feed

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

st/oxr: fix CTS warning about unsupported view configs

Fixes the following CTS warning messages:

"On receiving a 'valid' but not supported enum value 1000037000,
the runtime returned as XR_ERROR_VALIDATION_FAILURE instead of
XR_ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED, which may make it
harder for apps to reason about the error.
viewType := XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO_WITH_FOVEATED_INSET"

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

authored by

Korcan Hussein and committed by
Marge Bot
f27c0287 507aa7e6

+6
+6
src/xrt/state_trackers/oxr/oxr_verify.c
··· 444 444 return XR_SUCCESS; 445 445 } 446 446 447 + if (OXR_API_VERSION_AT_LEAST(inst, 1, 1)) { 448 + if (view_conf == XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO_WITH_FOVEATED_INSET) { 449 + return XR_ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED; 450 + } 451 + } 452 + 447 453 return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, "(%s == 0x%08x) invalid view configuration type", 448 454 view_conf_name, view_conf); 449 455 }