mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-24 04:15:01 +00:00
renderer_vulkan: use LDS buffer as SSBO on unsupported shared memory size (#2245)
* renderer_vulkan: use LDS buffer as SSBO on unsupported shared memory size * shader_recompiler: add `v_trunc_f64` on inst format table
This commit is contained in:
parent
8aea0fc7ee
commit
eed4de1da9
14 changed files with 147 additions and 36 deletions
|
@ -101,6 +101,9 @@ struct StageSpecialization {
|
|||
});
|
||||
}
|
||||
u32 binding{};
|
||||
if (info->has_emulated_shared_memory) {
|
||||
binding++;
|
||||
}
|
||||
if (info->has_readconst) {
|
||||
binding++;
|
||||
}
|
||||
|
@ -197,9 +200,15 @@ struct StageSpecialization {
|
|||
}
|
||||
}
|
||||
u32 binding{};
|
||||
if (info->has_emulated_shared_memory != other.info->has_emulated_shared_memory) {
|
||||
return false;
|
||||
}
|
||||
if (info->has_readconst != other.info->has_readconst) {
|
||||
return false;
|
||||
}
|
||||
if (info->has_emulated_shared_memory) {
|
||||
binding++;
|
||||
}
|
||||
if (info->has_readconst) {
|
||||
binding++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue