mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
aco: don't consider the first partial spill if it's the wrong type
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Cc: 20.2 <mesa-stable>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6212>
(cherry picked from commit 1a5444b900)
This commit is contained in:
parent
bbc9b56a67
commit
01c1323180
2 changed files with 5 additions and 5 deletions
|
|
@ -751,7 +751,7 @@
|
|||
"description": "aco: don't consider the first partial spill if it's the wrong type",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -647,8 +647,8 @@ RegisterDemand init_live_in_vars(spill_ctx& ctx, Block* block, unsigned block_id
|
|||
assert(!partial_spills.empty());
|
||||
|
||||
std::set<Temp>::iterator it = partial_spills.begin();
|
||||
Temp to_spill = *it;
|
||||
unsigned distance = ctx.next_use_distances_start[block_idx][*it].second;
|
||||
Temp to_spill = Temp();
|
||||
unsigned distance = 0;
|
||||
while (it != partial_spills.end()) {
|
||||
assert(ctx.spills_entry[block_idx].find(*it) == ctx.spills_entry[block_idx].end());
|
||||
|
||||
|
|
@ -670,8 +670,8 @@ RegisterDemand init_live_in_vars(spill_ctx& ctx, Block* block, unsigned block_id
|
|||
assert(!partial_spills.empty());
|
||||
|
||||
std::set<Temp>::iterator it = partial_spills.begin();
|
||||
Temp to_spill = *it;
|
||||
unsigned distance = ctx.next_use_distances_start[block_idx][*it].second;
|
||||
Temp to_spill = Temp();
|
||||
unsigned distance = 0;
|
||||
while (it != partial_spills.end()) {
|
||||
assert(ctx.spills_entry[block_idx].find(*it) == ctx.spills_entry[block_idx].end());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue