summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-10-16 16:53:03 -0700
committerJason Ekstrand <[email protected]>2015-01-15 07:18:59 -0800
commit4b4f90dbff1880e2fd5f1b00813ea4778d63d084 (patch)
tree315f322c5ffed0a89cb809231867f2f43f892519 /src/glsl/nir/nir.h
parent744b4e9348db1767a772fda2a5cbe33abbba7db1 (diff)
nir: Add NIR_TRUE and NIR_FALSE constants and use them for boolean immediates
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r--src/glsl/nir/nir.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h
index 1e708dfa985..195908d9a13 100644
--- a/src/glsl/nir/nir.h
+++ b/src/glsl/nir/nir.h
@@ -40,6 +40,9 @@
extern "C" {
#endif
+#define NIR_FALSE 0u
+#define NIR_TRUE (~0u)
+
struct nir_function_overload;
struct nir_function;