diff options
| author | 2018-12-21 03:39:46 -0300 | |
|---|---|---|
| committer | 2019-01-15 17:54:52 -0300 | |
| 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.gz yuzu-21aff36459f73ddb96a7909b6094e4f9c5b9c3fb.tar.xz yuzu-21aff36459f73ddb96a7909b6094e4f9c5b9c3fb.zip | |
video_core: Address feedback
Diffstat (limited to 'src/video_core/shader/decode.cpp')
| -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 { | |||
| 18 | using Tegra::Shader::Instruction; | 18 | using Tegra::Shader::Instruction; |
| 19 | using Tegra::Shader::OpCode; | 19 | using Tegra::Shader::OpCode; |
| 20 | 20 | ||
| 21 | namespace { | ||
| 22 | |||
| 21 | /// Merges exit method of two parallel branches. | 23 | /// Merges exit method of two parallel branches. |
| 22 | constexpr ExitMethod ParallelExit(ExitMethod a, ExitMethod b) { | 24 | constexpr ExitMethod ParallelExit(ExitMethod a, ExitMethod b) { |
| 23 | if (a == ExitMethod::Undetermined) { | 25 | if (a == ExitMethod::Undetermined) { |
| @@ -43,6 +45,8 @@ constexpr bool IsSchedInstruction(u32 offset, u32 main_offset) { | |||
| 43 | return (absolute_offset % SchedPeriod) == 0; | 45 | return (absolute_offset % SchedPeriod) == 0; |
| 44 | } | 46 | } |
| 45 | 47 | ||
| 48 | } // namespace | ||
| 49 | |||
| 46 | void ShaderIR::Decode() { | 50 | void ShaderIR::Decode() { |
| 47 | std::memcpy(&header, program_code.data(), sizeof(Tegra::Shader::Header)); | 51 | std::memcpy(&header, program_code.data(), sizeof(Tegra::Shader::Header)); |
| 48 | 52 | ||