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-15 17:14:36 +0300
commitd0b7eb830b1641ce6dd2fc8c92d1246b67ed9971 (patch)
tree976aa551f5ad15734a8a0bbf7d33603ae42efabc
parentc59f5475607087833e47a9ab8548d230fa5ee51e (diff)
glsl: 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 3a18be03bd..4387a51121 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;