mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-29 06:43:17 +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 {
|
||||
|
|
|
@ -84,7 +84,7 @@ const Shader::RuntimeInfo& PipelineCache::BuildRuntimeInfo(Stage stage, LogicalS
|
|||
const auto BuildCommon = [&](const auto& program) {
|
||||
info.num_user_data = program.settings.num_user_regs;
|
||||
info.num_input_vgprs = program.settings.vgpr_comp_cnt;
|
||||
info.num_allocated_vgprs = program.settings.num_vgprs * 4;
|
||||
info.num_allocated_vgprs = program.NumVgprs();
|
||||
info.fp_denorm_mode32 = program.settings.fp_denorm_mode32;
|
||||
info.fp_round_mode32 = program.settings.fp_round_mode32;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue