mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-26 15:53:35 +01:00
softjit: Prefer easier to refill regs.
This commit is contained in:
1 parent
932481d3cd
commit
a07017dbb0
1 file changed
+3
@@ -696,6 +696,9 @@ PixelRegCache::Reg PixelRegCache::Alloc(PixelRegCache::Purpose p, PixelRegCache:
|
||||
best = ®
|
||||
break;
|
||||
}
|
||||
// But also prefer a lower priority reg.
|
||||
if (reg.purpose < best->purpose)
|
||||
best = ®
|
||||
}
|
||||
|
||||
if (best) {
|
||||
|
||||
Reference in new issue
Block a user