<div dir="ltr">On 26 November 2013 00:02, Francisco Jerez <span dir="ltr"><<a href="mailto:currojerez@riseup.net" target="_blank">currojerez@riseup.net</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">---<br>
src/glsl/ir_uniform.h | 19 +++++++++++++++++++<br>
1 file changed, 19 insertions(+)<br>
<br>
diff --git a/src/glsl/ir_uniform.h b/src/glsl/ir_uniform.h<br>
index 13faab7..0704061 100644<br>
--- a/src/glsl/ir_uniform.h<br>
+++ b/src/glsl/ir_uniform.h<br>
@@ -118,6 +118,25 @@ struct gl_uniform_storage {<br>
bool active;<br>
} sampler[MESA_SHADER_TYPES];<br>
<br>
+ struct {<br>
+ /**<br>
+ * Base image index<br>
+ *<br>
+ * If \c ::base_type is \c GLSL_TYPE_IMAGE, this represents the<br>
+ * index of this image. If \c ::array_elements is not zero, the<br>
+ * array will use indices \c index through \c index + \c<br>
+ * ::array_elements - 1, inclusive.<br>
+ *<br>
+ * Note that the index may be different in each shader stage.<br>
+ */<br>
+ uint8_t index;<br>
+<br>
+ /**<br>
+ * Whether this image is used in this shader stage.<br>
+ */<br>
+ bool active;<br>
+ } image[MESA_SHADER_TYPES];<br>
+<br></blockquote><div><br>The new anonymous struct duplicates the anonymous struct just above it. Can we make it a named struct so that we can re-use it?<br><br></div><div>With that change, this patch is:<br><br>Reviewed-by: Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>><br>
</div></div></div></div>