mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
aco/optimizer: Don't combine uniform bool s_and to s_andn2.
Fixes:8a32f57fffSigned-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3714> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3714> (cherry picked from commit4d34abd15c)
This commit is contained in:
parent
419c992e65
commit
06a9d51f27
2 changed files with 4 additions and 1 deletions
|
|
@ -364,7 +364,7 @@
|
|||
"description": "aco/optimizer: Don't combine uniform bool s_and to s_andn2.",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "8a32f57fff56b3b94f1b5589feba38016f39427c"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1844,6 +1844,9 @@ bool combine_salu_n2(opt_ctx& ctx, aco_ptr<Instruction>& instr)
|
|||
if (instr->definitions[1].isTemp() && ctx.uses[instr->definitions[1].tempId()])
|
||||
return false;
|
||||
|
||||
if (instr->definitions[0].isTemp() && ctx.info[instr->definitions[0].tempId()].is_uniform_bool())
|
||||
return false;
|
||||
|
||||
for (unsigned i = 0; i < 2; i++) {
|
||||
Instruction *op2_instr = follow_operand(ctx, instr->operands[i]);
|
||||
if (!op2_instr || (op2_instr->opcode != aco_opcode::s_not_b32 && op2_instr->opcode != aco_opcode::s_not_b64))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue