i965/fs: Remove is_valid_3src().

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
Matt Turner 2014-11-12 11:09:10 -08:00
parent 0777775274
commit 40c0d79d29
3 changed files with 1 additions and 8 deletions

View file

@ -622,12 +622,6 @@ fs_reg::is_contiguous() const
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)
{

View file

@ -83,7 +83,6 @@ public:
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. */

View file

@ -514,7 +514,7 @@ fs_visitor::visit(ir_expression *ir)
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