projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11d6f1c
)
glsl: Simplify a type check by using type->is_integer().
author
Kenneth Graunke
<kenneth@whitecape.org>
Fri, 19 Nov 2010 01:15:13 +0000
(17:15 -0800)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Fri, 19 Nov 2010 23:06:58 +0000
(15:06 -0800)
src/glsl/lower_div_to_mul_rcp.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/lower_div_to_mul_rcp.cpp
b/src/glsl/lower_div_to_mul_rcp.cpp
index d34c4bc46d70d32cc09ecdb7957cfd12eafe276b..db9d6854cdaaebc0949f4ec4e44be7139bbbc793 100644
(file)
--- 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,