mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 13:48:40 +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:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user