The open source OpenXR runtime
0
fork

Configure Feed

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

c/render: fix image_array_size value

This was converted incorrectly from an if-statement
in a7846911a6d9a9bb253dfa25f5b5a1cfe7cf6737

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

authored by

Simon Zeni and committed by
Marge Bot
725bc347 a84dec5f

+6 -2
+5 -1
doc/changes/compositor/mr.2380.md
··· 1 - Add: Expose a `comp_render_gfx_layers` (formerly called `do_layers`) to match the `comp_render_cs_layers` function, which squashes layers. 1 + --- 2 + - mr.2388 3 + --- 4 + - Add: Expose a `comp_render_gfx_layers` (formerly called `do_layers`) to match the `comp_render_cs_layers` function, which squashes layers. 5 + - Improvement: Code and comment cleanup of compositor utilities and modules related to layer squashing and distortion.
+1 -1
src/xrt/compositor/render/render_resources.c
··· 543 543 r->compute.ubo_binding = 3; 544 544 545 545 r->compute.layer.image_array_size = 546 - MAX(vk->features.max_per_stage_descriptor_sampled_images, RENDER_MAX_IMAGES_COUNT(r)); 546 + MIN(vk->features.max_per_stage_descriptor_sampled_images, RENDER_MAX_IMAGES_COUNT(r)); 547 547 548 548 549 549 /*