glsl: Eliminate unused conditional assignment constructor
Reviewed-by: Matt Turner <mattst88@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14573>
This commit is contained in:
@@ -149,26 +149,6 @@ ir_assignment::whole_variable_written()
|
|||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
ir_assignment::ir_assignment(ir_dereference *lhs, ir_rvalue *rhs,
|
|
||||||
ir_rvalue *condition, unsigned write_mask)
|
|
||||||
: ir_instruction(ir_type_assignment)
|
|
||||||
{
|
|
||||||
this->condition = condition;
|
|
||||||
this->rhs = rhs;
|
|
||||||
this->lhs = lhs;
|
|
||||||
this->write_mask = write_mask;
|
|
||||||
|
|
||||||
if (lhs->type->is_scalar() || lhs->type->is_vector()) {
|
|
||||||
int lhs_components = 0;
|
|
||||||
for (int i = 0; i < 4; i++) {
|
|
||||||
if (write_mask & (1 << i))
|
|
||||||
lhs_components++;
|
|
||||||
}
|
|
||||||
|
|
||||||
assert(lhs_components == this->rhs->type->vector_elements);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ir_assignment::ir_assignment(ir_dereference *lhs, ir_rvalue *rhs,
|
ir_assignment::ir_assignment(ir_dereference *lhs, ir_rvalue *rhs,
|
||||||
unsigned write_mask)
|
unsigned write_mask)
|
||||||
: ir_instruction(ir_type_assignment)
|
: ir_instruction(ir_type_assignment)
|
||||||
|
@@ -1472,9 +1472,6 @@ public:
|
|||||||
* Since a write mask is supplied, the LHS must already be a bare
|
* Since a write mask is supplied, the LHS must already be a bare
|
||||||
* \c ir_dereference. The cannot be any swizzles in the LHS.
|
* \c ir_dereference. The cannot be any swizzles in the LHS.
|
||||||
*/
|
*/
|
||||||
ir_assignment(ir_dereference *lhs, ir_rvalue *rhs, ir_rvalue *condition,
|
|
||||||
unsigned write_mask);
|
|
||||||
|
|
||||||
ir_assignment(ir_dereference *lhs, ir_rvalue *rhs, unsigned write_mask);
|
ir_assignment(ir_dereference *lhs, ir_rvalue *rhs, unsigned write_mask);
|
||||||
|
|
||||||
virtual ir_assignment *clone(void *mem_ctx, struct hash_table *ht) const;
|
virtual ir_assignment *clone(void *mem_ctx, struct hash_table *ht) const;
|
||||||
|
Reference in New Issue
Block a user