[Mesa-dev] [RFC 08/16] glsl: Add support for half float loop control
Topi Pohjolainen
topi.pohjolainen at intel.com
Fri May 15 02:39:35 PDT 2015
Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
---
src/glsl/loop_controls.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/glsl/loop_controls.cpp b/src/glsl/loop_controls.cpp
index 51804bb..4ba3049 100644
--- a/src/glsl/loop_controls.cpp
+++ b/src/glsl/loop_controls.cpp
@@ -132,6 +132,7 @@ calculate_iterations(ir_rvalue *from, ir_rvalue *to, ir_rvalue *increment,
case GLSL_TYPE_UINT:
iter = new(mem_ctx) ir_constant(unsigned(iter_value + bias[i]));
break;
+ case GLSL_TYPE_HALF:
case GLSL_TYPE_FLOAT:
iter = new(mem_ctx) ir_constant(float(iter_value + bias[i]));
break;
--
1.9.3
More information about the mesa-dev
mailing list