diff options
author | Ian Romanick <[email protected]> | 2016-07-08 17:34:53 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-08-17 10:52:39 +0100 |
commit | 437e612bd7c0aadebf3d1dc959de090266ebab67 (patch) | |
tree | ba5a89e966946e84ab2d17b2189f8f57a3712807 /src/compiler/glsl/ir_constant_expression.cpp | |
parent | cceb50e14ed653518c67f84f4d86886a7a237025 (diff) |
glsl: Don't support ir_unop_abs or ir_unop_sign for unsigned integers
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir_constant_expression.cpp')
-rw-r--r-- | src/compiler/glsl/ir_constant_expression.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/compiler/glsl/ir_constant_expression.cpp b/src/compiler/glsl/ir_constant_expression.cpp index 6329acde2b6..2d7895e471f 100644 --- a/src/compiler/glsl/ir_constant_expression.cpp +++ b/src/compiler/glsl/ir_constant_expression.cpp @@ -785,9 +785,6 @@ ir_expression::constant_expression_value(struct hash_table *variable_context) case ir_unop_abs: for (unsigned c = 0; c < op[0]->type->components(); c++) { switch (this->type->base_type) { - case GLSL_TYPE_UINT: - data.u[c] = op[0]->value.u[c]; - break; case GLSL_TYPE_INT: data.i[c] = op[0]->value.i[c]; if (data.i[c] < 0) @@ -808,9 +805,6 @@ ir_expression::constant_expression_value(struct hash_table *variable_context) case ir_unop_sign: for (unsigned c = 0; c < op[0]->type->components(); c++) { switch (this->type->base_type) { - case GLSL_TYPE_UINT: - data.u[c] = op[0]->value.i[c] > 0; - break; case GLSL_TYPE_INT: data.i[c] = (op[0]->value.i[c] > 0) - (op[0]->value.i[c] < 0); break; |