diff options
| author | 2022-11-23 21:30:23 +0000 | |
|---|---|---|
| committer | 2023-01-05 22:13:07 +0000 | |
| commit | 8804a4eb23e0c4f3e4bab03dee7c204bd38bf21e (patch) | |
| tree | a250fb7a6485109609c5f89fee55fd73549b3a19 /src/shader_recompiler/ir_opt/passes.h | |
| parent | shader_recompiler: SPIRV: Only enable int64 feature when supported (diff) | |
| download | yuzu-8804a4eb23e0c4f3e4bab03dee7c204bd38bf21e.tar.gz yuzu-8804a4eb23e0c4f3e4bab03dee7c204bd38bf21e.tar.xz yuzu-8804a4eb23e0c4f3e4bab03dee7c204bd38bf21e.zip | |
shader_recompiler: Align SSBO offsets to meet host requirements
We can take advantage of SSBO addresses being passed in a constant bufer to account for the extra alignment requirements in the shader itself.
Diffstat (limited to '')
| -rw-r--r-- | src/shader_recompiler/ir_opt/passes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/ir_opt/passes.h b/src/shader_recompiler/ir_opt/passes.h index 1f8f2ba95..4ffad1172 100644 --- a/src/shader_recompiler/ir_opt/passes.h +++ b/src/shader_recompiler/ir_opt/passes.h | |||
| @@ -15,7 +15,7 @@ namespace Shader::Optimization { | |||
| 15 | void CollectShaderInfoPass(Environment& env, IR::Program& program); | 15 | void CollectShaderInfoPass(Environment& env, IR::Program& program); |
| 16 | void ConstantPropagationPass(Environment& env, IR::Program& program); | 16 | void ConstantPropagationPass(Environment& env, IR::Program& program); |
| 17 | void DeadCodeEliminationPass(IR::Program& program); | 17 | void DeadCodeEliminationPass(IR::Program& program); |
| 18 | void GlobalMemoryToStorageBufferPass(IR::Program& program); | 18 | void GlobalMemoryToStorageBufferPass(IR::Program& program, const HostTranslateInfo& host_info); |
| 19 | void IdentityRemovalPass(IR::Program& program); | 19 | void IdentityRemovalPass(IR::Program& program); |
| 20 | void LowerFp16ToFp32(IR::Program& program); | 20 | void LowerFp16ToFp32(IR::Program& program); |
| 21 | void LowerInt64ToInt32(IR::Program& program); | 21 | void LowerInt64ToInt32(IR::Program& program); |