summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/control_flow.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-06-29 04:59:43 +0200
committerFernandoS27 <fsahmkow27@gmail.com>2019-10-05 00:52:49 +0200
commit6fdd501113d5094f9148046c3b17cf2239e99aa5 (patch)
tree5a328292210ac4f07696bad5ea237277a7cb9113 /src/video_core/shader/control_flow.h
parentshader_ir: Corrections to outward movements and misc stuffs (diff)
downloadyuzu-6fdd501113d5094f9148046c3b17cf2239e99aa5.tar
yuzu-6fdd501113d5094f9148046c3b17cf2239e99aa5.tar.gz
yuzu-6fdd501113d5094f9148046c3b17cf2239e99aa5.tar.bz2
yuzu-6fdd501113d5094f9148046c3b17cf2239e99aa5.tar.lz
yuzu-6fdd501113d5094f9148046c3b17cf2239e99aa5.tar.xz
yuzu-6fdd501113d5094f9148046c3b17cf2239e99aa5.tar.zst
yuzu-6fdd501113d5094f9148046c3b17cf2239e99aa5.zip
Diffstat (limited to 'src/video_core/shader/control_flow.h')
-rw-r--r--src/video_core/shader/control_flow.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/shader/control_flow.h b/src/video_core/shader/control_flow.h
index efd037f1a..2805d975c 100644
--- a/src/video_core/shader/control_flow.h
+++ b/src/video_core/shader/control_flow.h
@@ -10,6 +10,7 @@
#include "video_core/engines/shader_bytecode.h"
#include "video_core/shader/shader_ir.h"
+#include "video_core/shader/ast.h"
namespace VideoCommon::Shader {
@@ -67,13 +68,12 @@ struct ShaderBlock {
struct ShaderCharacteristics {
std::list<ShaderBlock> blocks{};
- bool decompilable{};
+ bool decompiled{};
u32 start{};
u32 end{};
- std::set<u32> labels{};
};
-std::optional<ShaderCharacteristics> ScanFlow(const ProgramCode& program_code,
- std::size_t program_size, u32 start_address);
+std::unique_ptr<ShaderCharacteristics> ScanFlow(const ProgramCode& program_code, u32 program_size,
+ u32 start_address, ASTManager& manager);
} // namespace VideoCommon::Shader