mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-01-09 23:35:07 +08:00
pan/mdg: Be a bit more pedantic in invert passes
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4820>
This commit is contained in:
parent
074815ca0e
commit
e70cfe47b3
@ -308,6 +308,7 @@ midgard_opt_csel_invert(compiler_context *ctx, midgard_block *block)
|
||||
mir_foreach_instr_in_block_safe(block, ins) {
|
||||
if (ins->type != TAG_ALU_4) continue;
|
||||
if (!OP_IS_CSEL(ins->alu.op)) continue;
|
||||
if (!is_ssa_or_constant(ins->src[2])) continue;
|
||||
if (!mir_single_use(ctx, ins->src[2])) continue;
|
||||
if (!mir_strip_inverted(ctx, ins->src[2])) continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user