[Mesa-dev] [PATCH 1/7] nir: Add a void type

Jason Ekstrand jason at jlekstrand.net
Thu Jan 29 12:50:16 PST 2015


This allows us to indicate a concept of an invalid type.
---
 src/glsl/nir/nir.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h
index 980fdd0..f2050de 100644
--- a/src/glsl/nir/nir.h
+++ b/src/glsl/nir/nir.h
@@ -576,6 +576,7 @@ void nir_alu_dest_copy(nir_alu_dest *dest, const nir_alu_dest *src,
                        void *mem_ctx);
 
 typedef enum {
+   nir_type_void = 0, /* Not a valid type */
    nir_type_float,
    nir_type_int,
    nir_type_unsigned,
-- 
2.2.2



More information about the mesa-dev mailing list