[Mesa-dev] [PATCH] st/mesa: index can be negative in the PROGRAM_CONSTANT case

Brian Paul brianp at vmware.com
Thu Aug 16 07:52:49 PDT 2012


On 08/12/2012 10:35 AM, Niels Ole Salscheider wrote:
> ---
>   src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
> index 39717b6..9f58312 100644
> --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
> +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
> @@ -4028,7 +4028,7 @@ dst_register(struct st_translate *t,
>   static struct ureg_src
>   src_register(struct st_translate *t,
>                gl_register_file file,
> -             GLuint index)
> +             GLint index)
>   {
>      switch(file) {
>      case PROGRAM_UNDEFINED:

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

Thanks.  I'll commit this soon.

-Brian



More information about the mesa-dev mailing list