From 2ec3a3e1517c50583cd959584c1bea8d04d75c40 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 12 Jul 2016 16:23:27 -0700 Subject: [PATCH] glsl: Add missing ir_quadop_vector constant evaluation for Boolean types Signed-off-by: Ian Romanick Reviewed-by: Matt Turner --- src/compiler/glsl/ir_constant_expression.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compiler/glsl/ir_constant_expression.cpp b/src/compiler/glsl/ir_constant_expression.cpp index a9613b256b1..2664fefbc45 100644 --- a/src/compiler/glsl/ir_constant_expression.cpp +++ b/src/compiler/glsl/ir_constant_expression.cpp @@ -1726,6 +1726,9 @@ ir_expression::constant_expression_value(struct hash_table *variable_context) case GLSL_TYPE_DOUBLE: data.d[c] = op[c]->value.d[0]; break; + case GLSL_TYPE_BOOL: + data.b[c] = op[c]->value.b[0]; + break; default: assert(0); } -- 2.30.2