From: Ian Romanick Date: Tue, 12 Jul 2016 23:23:27 +0000 (-0700) Subject: glsl: Add missing ir_quadop_vector constant evaluation for Boolean types X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2ec3a3e1517c50583cd959584c1bea8d04d75c40;p=mesa.git glsl: Add missing ir_quadop_vector constant evaluation for Boolean types Signed-off-by: Ian Romanick Reviewed-by: Matt Turner --- 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); }