Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
return stride == 1;
}
-bool
-fs_reg::is_valid_3src() const
-{
- return file == GRF || file == UNIFORM;
-}
-
int
fs_visitor::type_size(const struct glsl_type *type)
{
fs_reg(fs_visitor *v, const struct glsl_type *type);
bool equals(const fs_reg &r) const;
- bool is_valid_3src() const;
bool is_contiguous() const;
/** Smear a channel of the reg to all channels. */
ir->operands[operand]->fprint(stderr);
fprintf(stderr, "\n");
}
- assert(this->result.is_valid_3src());
+ assert(this->result.file == GRF || this->result.file == UNIFORM);
op[operand] = this->result;
/* Matrix expression operands should have been broken down to vector