mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-11 20:38:32 +02:00
r600/sfn: Don't try to propagate to vec4 with more than one use
Otherwise we end up with weird dependencies that make the scheduler choke. Fixes:18a8d148d8r600/sfn: Cleanup copy-prop into vec4 source values Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24393> (cherry picked from commit618fc13db7)
This commit is contained in:
parent
25210fc7b8
commit
17cb76c4d5
2 changed files with 5 additions and 1 deletions
|
|
@ -1210,7 +1210,7 @@
|
|||
"description": "r600/sfn: Don't try to propagate to vec4 with more than one use",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "18a8d148d862d4a0f5b83f4385f00cf8a4a71b6d"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -469,6 +469,9 @@ CopyPropFwdVisitor::propagate_to(RegisterVec4& value, Instr *instr)
|
|||
if (value[i]->parents().empty())
|
||||
return;
|
||||
|
||||
if (value[i]->uses().size() > 1)
|
||||
return;
|
||||
|
||||
assert(value[i]->parents().size() == 1);
|
||||
parents[i] = (*value[i]->parents().begin())->as_alu();
|
||||
|
||||
|
|
@ -477,6 +480,7 @@ CopyPropFwdVisitor::propagate_to(RegisterVec4& value, Instr *instr)
|
|||
if (!parents[i])
|
||||
return;
|
||||
|
||||
|
||||
if ((parents[i]->opcode() != op1_mov) ||
|
||||
parents[i]->has_alu_flag(alu_src0_neg) ||
|
||||
parents[i]->has_alu_flag(alu_src0_abs) ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue