[Mesa-dev] [PATCH 04/51] glsl: Print 16-bit constants

Topi Pohjolainen topi.pohjolainen at gmail.com
Fri Nov 24 12:26:31 UTC 2017


---
 src/compiler/glsl/ir_print_visitor.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/compiler/glsl/ir_print_visitor.cpp b/src/compiler/glsl/ir_print_visitor.cpp
index ea14cdeb6c..ab9a35d73f 100644
--- a/src/compiler/glsl/ir_print_visitor.cpp
+++ b/src/compiler/glsl/ir_print_visitor.cpp
@@ -482,6 +482,7 @@ void ir_print_visitor::visit(ir_constant *ir)
 	 case GLSL_TYPE_UINT:  fprintf(f, "%u", ir->value.u[i]); break;
 	 case GLSL_TYPE_INT:   fprintf(f, "%d", ir->value.i[i]); break;
 	 case GLSL_TYPE_FLOAT:
+	 case GLSL_TYPE_FLOAT16:
             if (ir->value.f[i] == 0.0f)
                /* 0.0 == -0.0, so print with %f to get the proper sign. */
                fprintf(f, "%f", ir->value.f[i]);
-- 
2.11.0



More information about the mesa-dev mailing list