nir: document index semantics in nir_lower_multiview

Signed-off-by: Benjamin Lee <benjamin.lee@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31704>
This commit is contained in:
Benjamin Lee 2024-10-18 21:11:54 -07:00 committed by Marge Bot
parent 975c3ecd1e
commit 6d843cde45

View file

@ -38,6 +38,11 @@
* the mess. On some hardware it is also possible to write different copies of
* other varyings, expanding the set of shaders that the optimization is
* usable for.
*
* Indexes in the per-view output arrays generated by this pass do not
* correspond directly to gl_ViewIndex. Instead, they are compacted, dropping
* disabled views. For example, with view mask 0b1010, gl_Position[0]
* is view index 1, and gl_Position[1] is view index 3.
*/
static bool