mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 18:08:29 +00:00
st/oxr: Get maximum layers from the compositor info
This commit is contained in:
parent
1eaf4baf91
commit
cac588bbf2
|
@ -220,10 +220,10 @@ oxr_system_get_properties(struct oxr_logger *log,
|
|||
snprintf(properties->systemName, XR_MAX_SYSTEM_NAME_SIZE,
|
||||
"Monado: %.*s", 247, xdev->str);
|
||||
|
||||
//! Get from compositor.
|
||||
uint32_t max = XR_MIN_COMPOSITION_LAYERS_SUPPORTED;
|
||||
// Get from compositor.
|
||||
struct xrt_compositor_info *info = &sys->xcn->base.info;
|
||||
|
||||
properties->graphicsProperties.maxLayerCount = max;
|
||||
properties->graphicsProperties.maxLayerCount = info->max_layers;
|
||||
properties->graphicsProperties.maxSwapchainImageWidth = 1024 * 16;
|
||||
properties->graphicsProperties.maxSwapchainImageHeight = 1024 * 16;
|
||||
properties->trackingProperties.orientationTracking =
|
||||
|
|
Loading…
Reference in a new issue