On 26 November 2013 00:02, Francisco Jerez <curroje...@riseup.net> wrote:
> --- > src/glsl/ir_uniform.h | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/src/glsl/ir_uniform.h b/src/glsl/ir_uniform.h > index 13faab7..0704061 100644 > --- a/src/glsl/ir_uniform.h > +++ b/src/glsl/ir_uniform.h > @@ -118,6 +118,25 @@ struct gl_uniform_storage { > bool active; > } sampler[MESA_SHADER_TYPES]; > > + struct { > + /** > + * Base image index > + * > + * If \c ::base_type is \c GLSL_TYPE_IMAGE, this represents the > + * index of this image. If \c ::array_elements is not zero, the > + * array will use indices \c index through \c index + \c > + * ::array_elements - 1, inclusive. > + * > + * Note that the index may be different in each shader stage. > + */ > + uint8_t index; > + > + /** > + * Whether this image is used in this shader stage. > + */ > + bool active; > + } image[MESA_SHADER_TYPES]; > + > 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? With that change, this patch is: Reviewed-by: Paul Berry <stereotype...@gmail.com>
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev