nir: use nir_var_all to get rid of casting
[mesa.git] / src / compiler / glsl / ir_uniform.h
index 9841df8cde11e9192daabf3298e99928ba5be231..9770790cb260f1ef97f1e00a9e6aa62818b2439a 100644 (file)
@@ -28,7 +28,7 @@
 /* stdbool.h is necessary because this file is included in both C and C++ code.
  */
 #include <stdbool.h>
-
+#include "util/macros.h"
 #include "program/prog_parameter.h"  /* For union gl_constant_value. */
 
 /**
@@ -106,6 +106,11 @@ struct gl_uniform_storage {
 
    struct gl_opaque_uniform_index opaque[MESA_SHADER_STAGES];
 
+   /**
+    * Mask of shader stages (1 << MESA_SHADER_xxx) where this uniform is used.
+    */
+   unsigned active_shader_mask;
+
    /**
     * Storage used by the driver for the uniform
     */