aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/nir
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-01-15 18:24:11 -0500
committerRob Clark <[email protected]>2016-01-16 13:35:44 -0500
commit683794fd608688b4228941a4d662ad2e9311863b (patch)
tree7a760900497e5b116b2dc9afca03d92d80e9d7a7 /src/glsl/nir
parent211b0644e6e99fa223b448288efa93e7f1b740a4 (diff)
nir/print: const_index is signed
Noticed this with $piglit/bin/vp-address-01 Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/glsl/nir')
-rw-r--r--src/glsl/nir/nir_print.c2
1 files changed, 1 insertions, 1 deletions
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, ")");