[Mesa-dev] [PATCH] nir/print: const_index is signed

Jason Ekstrand jason at jlekstrand.net
Fri Jan 15 16:44:41 PST 2016


Right.  R-B

On Fri, Jan 15, 2016 at 3:25 PM, Rob Clark <robdclark at gmail.com> wrote:

> From: Rob Clark <robclark at freedesktop.org>
>
> Noticed this with $piglit/bin/vp-address-01
>
> Signed-off-by: Rob Clark <robclark at freedesktop.org>
> ---
>  src/glsl/nir/nir_print.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/glsl/nir/nir_print.c b/src/glsl/nir/nir_print.c
> index be918fb..fbb0d25 100644
> --- a/src/glsl/nir/nir_print.c
> +++ b/src/glsl/nir/nir_print.c
> @@ -477,7 +477,7 @@ print_intrinsic_instr(nir_intrinsic_instr *instr,
> print_state *state)
>        if (i != 0)
>           fprintf(fp, ", ");
>
> -      fprintf(fp, "%u", instr->const_index[i]);
> +      fprintf(fp, "%d", instr->const_index[i]);
>     }
>
>     fprintf(fp, ")");
> --
> 2.5.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20160115/9c520f7d/attachment.html>


More information about the mesa-dev mailing list