[Mesa-dev] [PATCH] tgsi/ureg: bump the limit of immediates

Brian Paul brian.e.paul at gmail.com
Sun May 29 17:56:54 PDT 2011


On Sat, May 28, 2011 at 6:59 PM, Marek Olšák <maraeo at gmail.com> wrote:
> Lowered indirect addressing can create lots of immediates.
>
> Fixes piglit/glsl-fs-uniform-array-7 on r300g.
>
> NOTE: This is a candidate for the 7.10 branch.
> ---
>  src/gallium/auxiliary/tgsi/tgsi_ureg.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.c b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
> index 4564ab8..a920741 100644
> --- a/src/gallium/auxiliary/tgsi/tgsi_ureg.c
> +++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
> @@ -72,7 +72,7 @@ struct ureg_tokens {
>  #define UREG_MAX_SYSTEM_VALUE PIPE_MAX_ATTRIBS
>  #define UREG_MAX_OUTPUT PIPE_MAX_ATTRIBS
>  #define UREG_MAX_CONSTANT_RANGE 32
> -#define UREG_MAX_IMMEDIATE 32
> +#define UREG_MAX_IMMEDIATE 256
>  #define UREG_MAX_TEMP 256
>  #define UREG_MAX_ADDR 2
>  #define UREG_MAX_PRED 1

Reviewed-by: Brian Paul <brianp at vmware.com>


More information about the mesa-dev mailing list