glsl: Print GLSL_TYPE_UINT64 and GLSL_TYPE_INT64 values
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 2 Sep 2016 20:17:48 +0000 (13:17 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 20 Jan 2017 23:41:23 +0000 (15:41 -0800)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/glsl/ir_print_visitor.cpp

index 7d367038c4c7ceb2263fd47ef87fbc042c268634..0763277737efce350ed649a4f31219e2367458bb 100644 (file)
@@ -476,6 +476,8 @@ void ir_print_visitor::visit(ir_constant *ir)
             else
                fprintf(f, "%f", ir->value.f[i]);
             break;
+        case GLSL_TYPE_UINT64:fprintf(f, "%" PRIu64, ir->value.u64[i]); break;
+        case GLSL_TYPE_INT64: fprintf(f, "%" PRIi64, ir->value.i64[i]); break;
         case GLSL_TYPE_BOOL:  fprintf(f, "%d", ir->value.b[i]); break;
         case GLSL_TYPE_DOUBLE:
             if (ir->value.d[i] == 0.0)