diff options
author | Jason Ekstrand <[email protected]> | 2019-06-06 11:37:32 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-06-19 20:28:52 +0000 |
commit | f0920e266c152044cb05892f3aea5a17a163cc02 (patch) | |
tree | c713093793366ea4cc4681c8a1aac539822facdf /src/compiler/glsl/lower_instructions.cpp | |
parent | 21a7e6d569700812cdd127551a6f8ce24cf6201a (diff) |
glsl/types: Rename is_integer to is_integer_32
It only accepts 32-bit integers so it should have a more descriptive
name. This patch should not be a functional change.
Reviewed-by: Karol Herbst <[email protected]>
Diffstat (limited to 'src/compiler/glsl/lower_instructions.cpp')
-rw-r--r-- | src/compiler/glsl/lower_instructions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/glsl/lower_instructions.cpp b/src/compiler/glsl/lower_instructions.cpp index 8e0c8744048..f5cf24b86e2 100644 --- a/src/compiler/glsl/lower_instructions.cpp +++ b/src/compiler/glsl/lower_instructions.cpp @@ -222,7 +222,7 @@ lower_instructions_visitor::div_to_mul_rcp(ir_expression *ir) void lower_instructions_visitor::int_div_to_mul_rcp(ir_expression *ir) { - assert(ir->operands[1]->type->is_integer()); + assert(ir->operands[1]->type->is_integer_32()); /* Be careful with integer division -- we need to do it as a * float and re-truncate, since rcp(n > 1) of an integer would @@ -1745,7 +1745,7 @@ lower_instructions_visitor::visit_leave(ir_expression *ir) break; case ir_binop_div: - if (ir->operands[1]->type->is_integer() && lowering(INT_DIV_TO_MUL_RCP)) + if (ir->operands[1]->type->is_integer_32() && lowering(INT_DIV_TO_MUL_RCP)) int_div_to_mul_rcp(ir); else if ((ir->operands[1]->type->is_float() && lowering(FDIV_TO_MUL_RCP)) || (ir->operands[1]->type->is_double() && lowering(DDIV_TO_MUL_RCP))) |