summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2014-08-20 14:59:39 +0300
committerTapani Pälli <tapani.palli@intel.com>2014-09-01 10:32:07 +0300
commit2f133bd6ea6524dfc6f628fa02fa7ff94789041a (patch)
treee6da04f00aa817520bc8885004379b0e67da067e
parent280fd6cdce27ba45a8fdf2d91e08e193c2fb9fa0 (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 d2eec7977c..5c876594ed 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;