nir/print: const_index is signed
authorRob Clark <robclark@freedesktop.org>
Fri, 15 Jan 2016 23:24:11 +0000 (18:24 -0500)
committerRob Clark <robclark@freedesktop.org>
Sat, 16 Jan 2016 18:35:44 +0000 (13:35 -0500)
Noticed this with $piglit/bin/vp-address-01

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/glsl/nir/nir_print.c

index 80638ed..be9ca4e 100644 (file)
@@ -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, ")");