From a2ec8437271e673e18e448659e9ae8bf9f559f46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Wed, 7 Sep 2022 13:58:00 +0200 Subject: [PATCH] nir: Document the flatten/dont_flatten selection control options. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Timur Kristóf Reviewed-by: Daniel Schürmann Reviewed-By: Georg Lehmann Part-of: --- src/compiler/nir/nir.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 98dac7e396c..c3516d49d09 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -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;