From 2f133bd6ea6524dfc6f628fa02fa7ff94789041a Mon Sep 17 00:00:00 2001 From: Tapani Pälli Date: Wed, 20 Aug 2014 14:59:39 +0300 Subject: glsl: support double in ir_binop_vector_extract MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch makes following Piglit test pass: glsl-double-const-expr-vector-extract.shader_test Signed-off-by: Tapani Pälli --- 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 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; -- cgit v1.2.3