[Mesa-dev] [PATCH 05/56] glsl: Add missing ir_quadop_vector constant evaluation for Boolean types
Ian Romanick
idr at freedesktop.org
Tue Jul 19 19:24:24 UTC 2016
From: Ian Romanick <ian.d.romanick at intel.com>
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
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 786c43e..694c9c7 100644
--- a/src/compiler/glsl/ir_constant_expression.cpp
+++ b/src/compiler/glsl/ir_constant_expression.cpp
@@ -1731,6 +1731,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.5.5
More information about the mesa-dev
mailing list