diff options
author | Kenneth Graunke <[email protected]> | 2010-11-18 17:15:13 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-11-19 15:06:58 -0800 |
commit | b943fb94bf50f20b773dc63558feb6b9480b8a28 (patch) | |
tree | 1d2f085c9ec9bfd3a04a5e21bc0b241161180ec1 /src | |
parent | 11d6f1c69871d0b7edc28f639256460839fccd2d (diff) |
glsl: Simplify a type check by using type->is_integer().
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/lower_div_to_mul_rcp.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glsl/lower_div_to_mul_rcp.cpp b/src/glsl/lower_div_to_mul_rcp.cpp index d34c4bc46d7..db9d6854cda 100644 --- a/src/glsl/lower_div_to_mul_rcp.cpp +++ b/src/glsl/lower_div_to_mul_rcp.cpp @@ -62,8 +62,7 @@ ir_div_to_mul_rcp_visitor::visit_leave(ir_expression *ir) if (ir->operation != ir_binop_div) return visit_continue; - if (ir->operands[1]->type->base_type != GLSL_TYPE_INT && - ir->operands[1]->type->base_type != GLSL_TYPE_UINT) { + if (!ir->operands[1]->type->is_integer()) { /* New expression for the 1.0 / op1 */ ir_rvalue *expr; expr = new(ir) ir_expression(ir_unop_rcp, |