diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-06-25 03:01:49 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-07-09 14:14:36 +0200 |
commit | c218ae4b022a9b47366e88441220fa6c66bcae4b (patch) | |
tree | 15f7037f9da6a2bd7757b9f796276026fd01f6c5 /src/video_core/shader/shader_ir.h | |
parent | shader_ir: Implement a new shader scanner (diff) | |
download | yuzu-c218ae4b022a9b47366e88441220fa6c66bcae4b.tar yuzu-c218ae4b022a9b47366e88441220fa6c66bcae4b.tar.gz yuzu-c218ae4b022a9b47366e88441220fa6c66bcae4b.tar.bz2 yuzu-c218ae4b022a9b47366e88441220fa6c66bcae4b.tar.lz yuzu-c218ae4b022a9b47366e88441220fa6c66bcae4b.tar.xz yuzu-c218ae4b022a9b47366e88441220fa6c66bcae4b.tar.zst yuzu-c218ae4b022a9b47366e88441220fa6c66bcae4b.zip |
Diffstat (limited to 'src/video_core/shader/shader_ir.h')
-rw-r--r-- | src/video_core/shader/shader_ir.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/video_core/shader/shader_ir.h b/src/video_core/shader/shader_ir.h index e22548208..e71462e02 100644 --- a/src/video_core/shader/shader_ir.h +++ b/src/video_core/shader/shader_ir.h @@ -26,14 +26,6 @@ using ProgramCode = std::vector<u64>; constexpr u32 MAX_PROGRAM_LENGTH = 0x1000; -/// Describes the behaviour of code path of a given entry point and a return point. -enum class ExitMethod { - Undetermined, ///< Internal value. Only occur when analyzing JMP loop. - AlwaysReturn, ///< All code paths reach the return point. - Conditional, ///< Code path reaches the return point or an END instruction conditionally. - AlwaysEnd, ///< All code paths reach a END instruction. -}; - class ConstBuffer { public: explicit ConstBuffer(u32 max_offset, bool is_indirect) @@ -132,8 +124,6 @@ public: private: void Decode(); - ExitMethod Scan(u32 begin, u32 end, std::set<u32>& labels); - NodeBlock DecodeRange(u32 begin, u32 end); /** @@ -329,7 +319,6 @@ private: u32 coverage_begin{}; u32 coverage_end{}; - std::map<std::pair<u32, u32>, ExitMethod> exit_method_map; std::map<u32, NodeBlock> basic_blocks; NodeBlock global_code; |