nir: Add an invalid type
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 29 Jan 2015 00:27:40 +0000 (16:27 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 30 Jan 2015 01:07:45 +0000 (17:07 -0800)
This allows us to indicate a concept of an invalid type.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/nir/nir.h

index 980fdd08f3353285ffa1c84cab75d45f9fb6c651..98d26896019c6e7428376f25f89be9990f797ea3 100644 (file)
@@ -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_invalid = 0, /* Not a valid type */
    nir_type_float,
    nir_type_int,
    nir_type_unsigned,