diff options
| author | 2021-08-23 20:00:11 -0400 | |
|---|---|---|
| committer | 2021-08-30 11:46:24 -0400 | |
| commit | 4fda7f1c821e1000210b1dfdf1074795b1aa9d96 (patch) | |
| tree | 1bc899e56f66fa8c6a9ebe6fbade73c2dc3ddd4a /src/shader_recompiler/frontend/maxwell/structured_control_flow.h | |
| parent | structured_control_flow: Add DemoteCombinationPass (diff) | |
| download | yuzu-4fda7f1c821e1000210b1dfdf1074795b1aa9d96.tar.gz yuzu-4fda7f1c821e1000210b1dfdf1074795b1aa9d96.tar.xz yuzu-4fda7f1c821e1000210b1dfdf1074795b1aa9d96.zip | |
structured_control_flow: Conditionally invoke demote reorder pass
This is only needed on select drivers when a fragment shader discards/demotes.
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell/structured_control_flow.h')
| -rw-r--r-- | src/shader_recompiler/frontend/maxwell/structured_control_flow.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/structured_control_flow.h b/src/shader_recompiler/frontend/maxwell/structured_control_flow.h index 88b083649..e38158da3 100644 --- a/src/shader_recompiler/frontend/maxwell/structured_control_flow.h +++ b/src/shader_recompiler/frontend/maxwell/structured_control_flow.h | |||
| @@ -11,10 +11,13 @@ | |||
| 11 | #include "shader_recompiler/frontend/maxwell/control_flow.h" | 11 | #include "shader_recompiler/frontend/maxwell/control_flow.h" |
| 12 | #include "shader_recompiler/object_pool.h" | 12 | #include "shader_recompiler/object_pool.h" |
| 13 | 13 | ||
| 14 | namespace Shader::Maxwell { | 14 | namespace Shader { |
| 15 | struct HostTranslateInfo; | ||
| 16 | namespace Maxwell { | ||
| 15 | 17 | ||
| 16 | [[nodiscard]] IR::AbstractSyntaxList BuildASL(ObjectPool<IR::Inst>& inst_pool, | 18 | [[nodiscard]] IR::AbstractSyntaxList BuildASL(ObjectPool<IR::Inst>& inst_pool, |
| 17 | ObjectPool<IR::Block>& block_pool, Environment& env, | 19 | ObjectPool<IR::Block>& block_pool, Environment& env, |
| 18 | Flow::CFG& cfg); | 20 | Flow::CFG& cfg, const HostTranslateInfo& host_info); |
| 19 | 21 | ||
| 20 | } // namespace Shader::Maxwell | 22 | } // namespace Maxwell |
| 23 | } // namespace Shader | ||