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

Rob Clark robdclark at gmail.com
Fri Jan 15 15:25:10 PST 2016


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



More information about the mesa-dev mailing list