mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-15 09:30:19 +01:00
aco/spill: use spills_entry instead of spills_exit to kill linear VGPRs
If a predecessor has only spilled constants (no temporaries), spills_exit
will be empty.
fossil-db (Sienna Cichlid):
Totals from 2 (0.00% of 128647) affected shaders:
Latency: 139106 -> 139104 (-0.00%)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5633
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13821>
(cherry picked from commit cc2894345f)
This commit is contained in:
parent
267ffbcc98
commit
d8ec092e01
2 changed files with 2 additions and 2 deletions
|
|
@ -553,7 +553,7 @@
|
|||
"description": "aco/spill: use spills_entry instead of spills_exit to kill linear VGPRs",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1563,7 +1563,7 @@ assign_spill_slots(spill_ctx& ctx, unsigned spills_to_vgpr)
|
|||
continue;
|
||||
|
||||
bool can_destroy = true;
|
||||
for (std::pair<Temp, uint32_t> pair : ctx.spills_exit[block.linear_preds[0]]) {
|
||||
for (std::pair<Temp, uint32_t> pair : ctx.spills_entry[block.index]) {
|
||||
|
||||
if (ctx.interferences[pair.second].first.type() == RegType::sgpr &&
|
||||
slots[pair.second] / ctx.wave_size == i) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue