[Mesa-dev] [PATCH 03/56] glsl: Fix typo in ir_unop_b2i implementation
Ian Romanick
idr at freedesktop.org
Tue Jul 19 19:24:22 UTC 2016
From: Ian Romanick <ian.d.romanick at intel.com>
This won't affect the output, but it was, technically, wrong.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/compiler/glsl/ir_constant_expression.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/compiler/glsl/ir_constant_expression.cpp b/src/compiler/glsl/ir_constant_expression.cpp
index b4486dd..7f9b367 100644
--- a/src/compiler/glsl/ir_constant_expression.cpp
+++ b/src/compiler/glsl/ir_constant_expression.cpp
@@ -603,7 +603,7 @@ ir_expression::constant_expression_value(struct hash_table *variable_context)
case ir_unop_b2i:
assert(op[0]->type->base_type == GLSL_TYPE_BOOL);
for (unsigned c = 0; c < op[0]->type->components(); c++) {
- data.u[c] = op[0]->value.b[c] ? 1 : 0;
+ data.i[c] = op[0]->value.b[c] ? 1 : 0;
}
break;
case ir_unop_i2b:
--
2.5.5
More information about the mesa-dev
mailing list