st/oxr: Now that layers are supported up the max layers to what the spec requires

This commit is contained in:
Jakob Bornecrantz 2020-05-28 21:44:26 +01:00
parent 6b0831466e
commit dd04379209
2 changed files with 5 additions and 5 deletions
doc/changes/state_trackers
src/xrt/state_trackers/oxr

View file

@ -0,0 +1 @@
OpenXR: Report a spec following amount of maximum layers supported.

View file

@ -216,11 +216,10 @@ oxr_system_get_properties(struct oxr_logger *log,
snprintf(properties->systemName, XR_MAX_SYSTEM_NAME_SIZE, snprintf(properties->systemName, XR_MAX_SYSTEM_NAME_SIZE,
"Monado: %.*s", 247, sys->head->str); "Monado: %.*s", 247, sys->head->str);
/*! //! Get from compositor.
* @todo conforming implementations must support at uint32_t max = XR_MIN_COMPOSITION_LAYERS_SUPPORTED;
* leastXR_MIN_COMPOSITION_LAYERS_SUPPORTED layers.
*/ properties->graphicsProperties.maxLayerCount = max;
properties->graphicsProperties.maxLayerCount = 1;
properties->graphicsProperties.maxSwapchainImageWidth = 1024 * 16; properties->graphicsProperties.maxSwapchainImageWidth = 1024 * 16;
properties->graphicsProperties.maxSwapchainImageHeight = 1024 * 16; properties->graphicsProperties.maxSwapchainImageHeight = 1024 * 16;
properties->trackingProperties.orientationTracking = XR_TRUE; properties->trackingProperties.orientationTracking = XR_TRUE;