diff options
author | Ian Romanick <[email protected]> | 2016-07-12 16:23:27 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-08-17 10:52:39 +0100 |
commit | 2ec3a3e1517c50583cd959584c1bea8d04d75c40 (patch) | |
tree | 21ae9e9336adcb4889a25323bfa0acfb33b7204e | |
parent | cf58e3f52248f670e5269bc2180db091d022aa47 (diff) |
glsl: Add missing ir_quadop_vector constant evaluation for Boolean types
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
-rw-r--r-- | src/compiler/glsl/ir_constant_expression.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |