mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 21:30:09 +01:00
aco: handle VOP3 modifiers when combining a constant comparison's NaN test
No pipeline-db changes Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-By: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3081>
This commit is contained in:
parent
bbac52873f
commit
7ce244b7d1
1 changed files with 6 additions and 0 deletions
|
|
@ -1345,6 +1345,12 @@ bool combine_constant_comparison_ordering(opt_ctx &ctx, aco_ptr<Instruction>& in
|
|||
if (prop_nan0 != prop_nan1)
|
||||
return false;
|
||||
|
||||
if (nan_test->isVOP3()) {
|
||||
VOP3A_instruction *vop3 = static_cast<VOP3A_instruction*>(nan_test);
|
||||
if (vop3->neg[0] != vop3->neg[1] || vop3->abs[0] != vop3->abs[1] || vop3->opsel == 1 || vop3->opsel == 2)
|
||||
return false;
|
||||
}
|
||||
|
||||
int constant_operand = -1;
|
||||
for (unsigned i = 0; i < 2; i++) {
|
||||
if (cmp->operands[i].isTemp() && original_temp_id(ctx, cmp->operands[i].getTemp()) == prop_nan0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue