diff options
author | Samuel Pitoiset <[email protected]> | 2017-04-21 10:46:24 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-04-21 19:33:57 +0200 |
commit | 100721959bb400f16e42aada6ee8215458b9fcdd (patch) | |
tree | 5ac3b7546d9d2c40d26449bb8e3469e1c6d478bd /src/compiler | |
parent | 362d9de29ce18eff404a9e5fb23d0c7d98827f71 (diff) |
glsl: make use of glsl_type::is_integer_64()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/glsl/lower_int64.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/compiler/glsl/lower_int64.cpp b/src/compiler/glsl/lower_int64.cpp index 0a19ce429e4..4e2e311e02d 100644 --- a/src/compiler/glsl/lower_int64.cpp +++ b/src/compiler/glsl/lower_int64.cpp @@ -128,12 +128,6 @@ private: } /* anonymous namespace */ -static bool -is_integer_64(const glsl_type *t) -{ - return t->base_type == GLSL_TYPE_UINT64 || t->base_type == GLSL_TYPE_INT64; -} - /** * Determine if a particular type of lowering should occur */ @@ -208,8 +202,7 @@ lower_64bit::expand_source(ir_factory &body, ir_rvalue *val, ir_variable **expanded_src) { - assert(val->type->base_type == GLSL_TYPE_UINT64 || - val->type->base_type == GLSL_TYPE_INT64); + assert(val->type->is_integer_64()); ir_variable *const temp = body.make_temp(val->type, "tmp"); @@ -327,7 +320,7 @@ lower_64bit_visitor::handle_op(ir_expression *ir, function_generator generator) { for (unsigned i = 0; i < ir->get_num_operands(); i++) - if (!is_integer_64(ir->operands[i]->type)) + if (!ir->operands[i]->type->is_integer_64()) return ir; /* Get a handle to the correct ir_function_signature for the core |