[Mesa-dev] [PATCH 05/20] glsl: Add new structures for tracking uniforms in linked shaders

Eric Anholt eric at anholt.net
Fri Oct 28 13:23:02 PDT 2011


On Fri, 28 Oct 2011 10:42:32 -0700, "Ian Romanick" <idr at freedesktop.org> wrote:
> From: Ian Romanick <ian.d.romanick at intel.com>
> 
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> ---
>  src/glsl/ir_uniform.h |  128 +++++++++++++++++++++++++++++++++++++++++++++++++
>  1 files changed, 128 insertions(+), 0 deletions(-)
>  create mode 100644 src/glsl/ir_uniform.h
> 
> diff --git a/src/glsl/ir_uniform.h b/src/glsl/ir_uniform.h
> new file mode 100644
> index 0000000..ba442f8
> --- /dev/null
> +++ b/src/glsl/ir_uniform.h
> @@ -0,0 +1,128 @@
> +   /**
> +    * Set each time the value of the uniform is change.

"is changed"

> +    * Drivers that do not used the \c ::driver_storage interface should clear

"do not use"

> +    * this bit when the value of the uniform is updated on the hardware.
> +    */
> +   unsigned dirty:1;
> +
> +   /**
> +    * Base sampler index
> +    *
> +    * If \c ::base_type is \c GLSL_TYPE_SAMPLER, this represents the base
> +    * index of this sampler.
> +    */
> +   unsigned sampler:8;

Not sure what the "base index" of a sampler is.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20111028/89d9c9b2/attachment.pgp>


More information about the mesa-dev mailing list