diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-12-21 07:39:46 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-15 21:54:52 +0100 |
commit | 21aff36459f73ddb96a7909b6094e4f9c5b9c3fb (patch) | |
tree | 35cf1ee84b320a77029c79093f911a975f71c9f9 /src/video_core/shader/decode.cpp | |
parent | shader_ir: Fixup file inclusions and clang-format (diff) | |
download | yuzu-21aff36459f73ddb96a7909b6094e4f9c5b9c3fb.tar yuzu-21aff36459f73ddb96a7909b6094e4f9c5b9c3fb.tar.gz yuzu-21aff36459f73ddb96a7909b6094e4f9c5b9c3fb.tar.bz2 yuzu-21aff36459f73ddb96a7909b6094e4f9c5b9c3fb.tar.lz yuzu-21aff36459f73ddb96a7909b6094e4f9c5b9c3fb.tar.xz yuzu-21aff36459f73ddb96a7909b6094e4f9c5b9c3fb.tar.zst yuzu-21aff36459f73ddb96a7909b6094e4f9c5b9c3fb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader/decode.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/shader/decode.cpp b/src/video_core/shader/decode.cpp index a07656c7c..722b32ff1 100644 --- a/src/video_core/shader/decode.cpp +++ b/src/video_core/shader/decode.cpp @@ -18,6 +18,8 @@ namespace VideoCommon::Shader { using Tegra::Shader::Instruction; using Tegra::Shader::OpCode; +namespace { + /// Merges exit method of two parallel branches. constexpr ExitMethod ParallelExit(ExitMethod a, ExitMethod b) { if (a == ExitMethod::Undetermined) { @@ -43,6 +45,8 @@ constexpr bool IsSchedInstruction(u32 offset, u32 main_offset) { return (absolute_offset % SchedPeriod) == 0; } +} // namespace + void ShaderIR::Decode() { std::memcpy(&header, program_code.data(), sizeof(Tegra::Shader::Header)); |