[Mesa-dev] [PATCH 14/20] glsl: add double support to constant propagation pass
Dave Airlie
airlied at gmail.com
Wed Sep 3 21:15:36 PDT 2014
From: Tapani Pälli <tapani.palli at intel.com>
Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
---
src/glsl/opt_constant_propagation.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/glsl/opt_constant_propagation.cpp b/src/glsl/opt_constant_propagation.cpp
index c334e12..90cc0c8 100644
--- a/src/glsl/opt_constant_propagation.cpp
+++ b/src/glsl/opt_constant_propagation.cpp
@@ -194,6 +194,9 @@ ir_constant_propagation_visitor::handle_rvalue(ir_rvalue **rvalue)
case GLSL_TYPE_FLOAT:
data.f[i] = found->constant->value.f[rhs_channel];
break;
+ case GLSL_TYPE_DOUBLE:
+ data.d[i] = found->constant->value.d[rhs_channel];
+ break;
case GLSL_TYPE_INT:
data.i[i] = found->constant->value.i[rhs_channel];
break;
--
2.1.0
More information about the mesa-dev
mailing list