Mesa (master): nir: Add an invalid type

Jason Ekstrand jekstrand at kemper.freedesktop.org
Fri Jan 30 01:13:29 UTC 2015


Module: Mesa
Branch: master
Commit: 5ab1489ae62fa68e45664588d8809b3d667d7425
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5ab1489ae62fa68e45664588d8809b3d667d7425

Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Jan 28 16:27:40 2015 -0800

nir: Add an invalid type

This allows us to indicate a concept of an invalid type.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 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..98d2689 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_invalid = 0, /* Not a valid type */
    nir_type_float,
    nir_type_int,
    nir_type_unsigned,




More information about the mesa-commit mailing list