mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-16 15:43:14 +00:00
fix: Correct number of allocated VGPRs.
This commit is contained in:
parent
5f2467b453
commit
c9d425dc08
2 changed files with 6 additions and 1 deletions
|
@ -143,6 +143,11 @@ struct Liverpool {
|
|||
const u32 num_dwords = bininfo.length / sizeof(u32);
|
||||
return std::span{code, num_dwords};
|
||||
}
|
||||
|
||||
[[nodiscard]] u32 NumVgprs() const {
|
||||
// Each increment allocates 4 registers, where 0 = 4 registers.
|
||||
return (settings.num_vgprs + 1) * 4;
|
||||
}
|
||||
};
|
||||
|
||||
struct HsTessFactorClamp {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue