diff options
| author | 2021-02-21 23:42:38 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:22 -0400 | |
| commit | 274897dfd59b4d08029ab7e93be4f84654abcdc8 (patch) | |
| tree | 083336a4d665476a87b888368878a311a7edab2a /src/shader_recompiler/frontend/ir/structured_control_flow.cpp | |
| parent | shader: Rename, implement FADD.SAT and P2R (imm) (diff) | |
| download | yuzu-274897dfd59b4d08029ab7e93be4f84654abcdc8.tar.gz yuzu-274897dfd59b4d08029ab7e93be4f84654abcdc8.tar.xz yuzu-274897dfd59b4d08029ab7e93be4f84654abcdc8.zip | |
spirv: Fixes and Intel specific workarounds
Diffstat (limited to 'src/shader_recompiler/frontend/ir/structured_control_flow.cpp')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/structured_control_flow.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/shader_recompiler/frontend/ir/structured_control_flow.cpp b/src/shader_recompiler/frontend/ir/structured_control_flow.cpp index d145095d1..032ac8fda 100644 --- a/src/shader_recompiler/frontend/ir/structured_control_flow.cpp +++ b/src/shader_recompiler/frontend/ir/structured_control_flow.cpp | |||
| @@ -272,11 +272,9 @@ public: | |||
| 272 | explicit GotoPass(std::span<Block* const> blocks, ObjectPool<Statement>& stmt_pool) | 272 | explicit GotoPass(std::span<Block* const> blocks, ObjectPool<Statement>& stmt_pool) |
| 273 | : pool{stmt_pool} { | 273 | : pool{stmt_pool} { |
| 274 | std::vector gotos{BuildUnorderedTreeGetGotos(blocks)}; | 274 | std::vector gotos{BuildUnorderedTreeGetGotos(blocks)}; |
| 275 | fmt::print(stdout, "BEFORE\n{}\n", DumpTree(root_stmt.children)); | ||
| 276 | for (const Node& goto_stmt : gotos | std::views::reverse) { | 275 | for (const Node& goto_stmt : gotos | std::views::reverse) { |
| 277 | RemoveGoto(goto_stmt); | 276 | RemoveGoto(goto_stmt); |
| 278 | } | 277 | } |
| 279 | fmt::print(stdout, "AFTER\n{}\n", DumpTree(root_stmt.children)); | ||
| 280 | } | 278 | } |
| 281 | 279 | ||
| 282 | Statement& RootStatement() noexcept { | 280 | Statement& RootStatement() noexcept { |
| @@ -548,7 +546,6 @@ private: | |||
| 548 | size_t Offset(ConstNode stmt) const { | 546 | size_t Offset(ConstNode stmt) const { |
| 549 | size_t offset{0}; | 547 | size_t offset{0}; |
| 550 | if (!SearchNode(root_stmt.children, stmt, offset)) { | 548 | if (!SearchNode(root_stmt.children, stmt, offset)) { |
| 551 | fmt::print(stdout, "{}\n", DumpTree(root_stmt.children)); | ||
| 552 | throw LogicError("Node not found in tree"); | 549 | throw LogicError("Node not found in tree"); |
| 553 | } | 550 | } |
| 554 | return offset; | 551 | return offset; |