[Mesa-dev] [PATCH 1/5] glsl: support double in ir_binop_vector_extract
Dave Airlie
airlied at gmail.com
Wed Sep 3 21:31:45 PDT 2014
From: Tapani Pälli <tapani.palli at intel.com>
Patch makes following Piglit test pass:
glsl-double-const-expr-vector-extract.shader_test
Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
---
src/glsl/ir_constant_expression.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/glsl/ir_constant_expression.cpp b/src/glsl/ir_constant_expression.cpp
index bd6f819..066944b 100644
--- a/src/glsl/ir_constant_expression.cpp
+++ b/src/glsl/ir_constant_expression.cpp
@@ -1498,6 +1498,9 @@ ir_expression::constant_expression_value(struct hash_table *variable_context)
case GLSL_TYPE_FLOAT:
data.f[0] = op[0]->value.f[c];
break;
+ case GLSL_TYPE_DOUBLE:
+ data.d[0] = op[0]->value.d[c];
+ break;
case GLSL_TYPE_BOOL:
data.b[0] = op[0]->value.b[c];
break;
--
2.1.0
More information about the mesa-dev
mailing list