From 683794fd608688b4228941a4d662ad2e9311863b Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Fri, 15 Jan 2016 18:24:11 -0500 Subject: [PATCH] nir/print: const_index is signed Noticed this with $piglit/bin/vp-address-01 Signed-off-by: Rob Clark Reviewed-by: Jason Ekstrand --- 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 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, ")"); -- 2.30.2