} /* 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
*/
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");
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