summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2014-08-20 14:59:39 +0300
committerTopi Pohjolainen <topi.pohjolainen@intel.com>2014-10-31 11:25:57 +0200
commit774fcb0f2f57a4640e1df5acaa7224a9a7a3cc2d (patch)
tree0aa8821f9bb1c935a64f7926cfba8fb5e105a58d
parentc38c11bfe68f510234efd655246941dd8cd3d707 (diff)
SQUASH: support double in ir_binop_vector_extract
Patch makes following Piglit test pass: glsl-double-const-expr-vector-extract.shader_test Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
-rw-r--r--src/glsl/ir_constant_expression.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/ir_constant_expression.cpp b/src/glsl/ir_constant_expression.cpp
index 3a18be03bd8..4387a51121a 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;