diff options
author | bunnei <bunneidev@gmail.com> | 2020-04-28 18:05:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 18:05:50 +0200 |
commit | 72b73d22abd0e1ee96190e898838c0f0ff02fd9a (patch) | |
tree | 916ee99f8ac6eaf9688ca9d35e9838bce528e46f /src/video_core/shader/control_flow.cpp | |
parent | Merge pull request #3814 from ogniK5377/getinfo-err (diff) | |
parent | shader/memory_util: Deduplicate code (diff) | |
download | yuzu-72b73d22abd0e1ee96190e898838c0f0ff02fd9a.tar yuzu-72b73d22abd0e1ee96190e898838c0f0ff02fd9a.tar.gz yuzu-72b73d22abd0e1ee96190e898838c0f0ff02fd9a.tar.bz2 yuzu-72b73d22abd0e1ee96190e898838c0f0ff02fd9a.tar.lz yuzu-72b73d22abd0e1ee96190e898838c0f0ff02fd9a.tar.xz yuzu-72b73d22abd0e1ee96190e898838c0f0ff02fd9a.tar.zst yuzu-72b73d22abd0e1ee96190e898838c0f0ff02fd9a.zip |
Diffstat (limited to 'src/video_core/shader/control_flow.cpp')
-rw-r--r-- | src/video_core/shader/control_flow.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/video_core/shader/control_flow.cpp b/src/video_core/shader/control_flow.cpp index e00a3fb70..8d86020f6 100644 --- a/src/video_core/shader/control_flow.cpp +++ b/src/video_core/shader/control_flow.cpp @@ -13,6 +13,7 @@ #include "common/common_types.h" #include "video_core/shader/ast.h" #include "video_core/shader/control_flow.h" +#include "video_core/shader/memory_util.h" #include "video_core/shader/registry.h" #include "video_core/shader/shader_ir.h" @@ -115,17 +116,6 @@ Pred GetPredicate(u32 index, bool negated) { return static_cast<Pred>(static_cast<u64>(index) + (negated ? 8ULL : 0ULL)); } -/** - * Returns whether the instruction at the specified offset is a 'sched' instruction. - * Sched instructions always appear before a sequence of 3 instructions. - */ -constexpr bool IsSchedInstruction(u32 offset, u32 main_offset) { - constexpr u32 SchedPeriod = 4; - u32 absolute_offset = offset - main_offset; - - return (absolute_offset % SchedPeriod) == 0; -} - enum class ParseResult : u32 { ControlCaught, BlockEnd, |