nir: Document the flatten/dont_flatten selection control options.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Reviewed-By: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17921>
This commit is contained in:
Timur Kristóf
2022-09-07 13:58:00 +02:00
committed by Marge Bot
parent ea6e69bb2b
commit a2ec843727

View File

@@ -2813,7 +2813,17 @@ nir_block_last_phi_instr(nir_block *block)
typedef enum {
nir_selection_control_none = 0x0,
/**
* Defined by SPIR-V spec 3.22 "Selection Control".
* The application prefers to remove control flow.
*/
nir_selection_control_flatten = 0x1,
/**
* Defined by SPIR-V spec 3.22 "Selection Control".
* The application prefers to keep control flow.
*/
nir_selection_control_dont_flatten = 0x2,
} nir_selection_control;