glsl/opt_algebraic: Drop scalar all_eq/any_neq -> eq/neq opt.

No change in r300 or freedreno shader-db.

Acked-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
This commit is contained in:
Emma Anholt
2023-02-22 12:24:49 -08:00
committed by Marge Bot
parent 62afead36f
commit d352bd9737

View File

@@ -482,16 +482,6 @@ ir_algebraic_visitor::handle_expression(ir_expression *ir)
}
break;
case ir_binop_all_equal:
case ir_binop_any_nequal:
if (ir->operands[0]->type->is_scalar() &&
ir->operands[1]->type->is_scalar())
return new(mem_ctx) ir_expression(ir->operation == ir_binop_all_equal
? ir_binop_equal : ir_binop_nequal,
ir->operands[0],
ir->operands[1]);
break;
case ir_binop_min:
case ir_binop_max:
if (!ir->type->is_float())