diff options
| author | 2021-02-14 20:15:42 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:22 -0400 | |
| commit | cbfb7d182a4e90e4e263696d1fca35e47d3eabb4 (patch) | |
| tree | a8d384aa0daefdfafd9b61330e06b1cf7ac40ea6 /src/shader_recompiler/main.cpp | |
| parent | shader: Misc fixes (diff) | |
| download | yuzu-cbfb7d182a4e90e4e263696d1fca35e47d3eabb4.tar.gz yuzu-cbfb7d182a4e90e4e263696d1fca35e47d3eabb4.tar.xz yuzu-cbfb7d182a4e90e4e263696d1fca35e47d3eabb4.zip | |
shader: Support SSA loops on IR
Diffstat (limited to 'src/shader_recompiler/main.cpp')
| -rw-r--r-- | src/shader_recompiler/main.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/shader_recompiler/main.cpp b/src/shader_recompiler/main.cpp index 92358232c..29f65966c 100644 --- a/src/shader_recompiler/main.cpp +++ b/src/shader_recompiler/main.cpp | |||
| @@ -69,14 +69,12 @@ int main() { | |||
| 69 | 69 | ||
| 70 | // FileEnvironment env{"D:\\Shaders\\Database\\Oninaki\\CS8F146B41DB6BD826.bin"}; | 70 | // FileEnvironment env{"D:\\Shaders\\Database\\Oninaki\\CS8F146B41DB6BD826.bin"}; |
| 71 | FileEnvironment env{"D:\\Shaders\\shader.bin"}; | 71 | FileEnvironment env{"D:\\Shaders\\shader.bin"}; |
| 72 | for (int i = 0; i < 1; ++i) { | 72 | block_pool->ReleaseContents(); |
| 73 | block_pool->ReleaseContents(); | 73 | inst_pool->ReleaseContents(); |
| 74 | inst_pool->ReleaseContents(); | 74 | flow_block_pool->ReleaseContents(); |
| 75 | flow_block_pool->ReleaseContents(); | 75 | Flow::CFG cfg{env, *flow_block_pool, 0}; |
| 76 | Flow::CFG cfg{env, *flow_block_pool, 0}; | 76 | fmt::print(stdout, "{}\n", cfg.Dot()); |
| 77 | fmt::print(stdout, "{}\n", cfg.Dot()); | 77 | IR::Program program{TranslateProgram(*inst_pool, *block_pool, env, cfg)}; |
| 78 | IR::Program program{TranslateProgram(*inst_pool, *block_pool, env, cfg)}; | 78 | fmt::print(stdout, "{}\n", IR::DumpProgram(program)); |
| 79 | fmt::print(stdout, "{}\n", IR::DumpProgram(program)); | 79 | // Backend::SPIRV::EmitSPIRV spirv{program}; |
| 80 | Backend::SPIRV::EmitSPIRV spirv{program}; | ||
| 81 | } | ||
| 82 | } | 80 | } |