diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index c3516d49d09..58b26c131a4 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -2825,6 +2825,14 @@ typedef enum { * The application prefers to keep control flow. */ nir_selection_control_dont_flatten = 0x2, + + /** + * May be applied by the compiler stack when it knows + * that a branch is divergent, and: + * - either both the if and else are always taken + * - the if or else is empty and the other is always taken + */ + nir_selection_control_divergent_always_taken = 0x3, } nir_selection_control; typedef struct nir_if {