From: Rob Clark Date: Fri, 15 Jan 2016 23:24:11 +0000 (-0500) Subject: nir/print: const_index is signed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=683794fd608688b4228941a4d662ad2e9311863b;p=mesa.git nir/print: const_index is signed Noticed this with $piglit/bin/vp-address-01 Signed-off-by: Rob Clark Reviewed-by: Jason Ekstrand --- diff --git a/src/glsl/nir/nir_print.c b/src/glsl/nir/nir_print.c index 80638ed58f2..be9ca4e0f57 100644 --- a/src/glsl/nir/nir_print.c +++ b/src/glsl/nir/nir_print.c @@ -480,7 +480,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, ")");