diff options
| author | 2019-09-23 22:55:25 -0400 | |
|---|---|---|
| committer | 2019-10-25 09:01:30 -0400 | |
| commit | 8909f52166bf9c27d52b5a722efbd46d1a11e876 (patch) | |
| tree | 2e21bbc3c3f5422325d8003d72cdb4bb120a26e5 /src/video_core/shader/ast.cpp | |
| parent | Shader_Cache: setup connection of ConstBufferLocker (diff) | |
| download | yuzu-8909f52166bf9c27d52b5a722efbd46d1a11e876.tar.gz yuzu-8909f52166bf9c27d52b5a722efbd46d1a11e876.tar.xz yuzu-8909f52166bf9c27d52b5a722efbd46d1a11e876.zip | |
Shader_IR: Implement Fast BRX and allow multi-branches in the CFG.
Diffstat (limited to 'src/video_core/shader/ast.cpp')
| -rw-r--r-- | src/video_core/shader/ast.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/shader/ast.cpp b/src/video_core/shader/ast.cpp index e43aecc18..2fa3a3f7d 100644 --- a/src/video_core/shader/ast.cpp +++ b/src/video_core/shader/ast.cpp | |||
| @@ -228,6 +228,10 @@ public: | |||
| 228 | inner += expr.value ? "true" : "false"; | 228 | inner += expr.value ? "true" : "false"; |
| 229 | } | 229 | } |
| 230 | 230 | ||
| 231 | void operator()(ExprGprEqual const& expr) { | ||
| 232 | inner += "( gpr_" + std::to_string(expr.gpr) + " == " + std::to_string(expr.value) + ')'; | ||
| 233 | } | ||
| 234 | |||
| 231 | const std::string& GetResult() const { | 235 | const std::string& GetResult() const { |
| 232 | return inner; | 236 | return inner; |
| 233 | } | 237 | } |