diff options
| author | 2016-12-15 00:16:04 -0500 | |
|---|---|---|
| committer | 2016-12-15 00:16:04 -0500 | |
| commit | ec9130de8dfaf22bfc5dc8a4988b68532955b43a (patch) | |
| tree | b69ec4ddca4e310029a95020bbbd76ee6ef2bc75 /src/video_core/shader | |
| parent | Merge pull request #2309 from yuriks/shader-jit-xbyak (diff) | |
| parent | VideoCore: Eliminate an unnecessary copy in the drawcall loop (diff) | |
| download | yuzu-ec9130de8dfaf22bfc5dc8a4988b68532955b43a.tar.gz yuzu-ec9130de8dfaf22bfc5dc8a4988b68532955b43a.tar.xz yuzu-ec9130de8dfaf22bfc5dc8a4988b68532955b43a.zip | |
Merge pull request #2317 from yuriks/vertex-copy
VideoCore: Eliminate an unnecessary copy in the drawcall loop
Diffstat (limited to 'src/video_core/shader')
| -rw-r--r-- | src/video_core/shader/shader.cpp | 2 | ||||
| -rw-r--r-- | src/video_core/shader/shader.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/shader.cpp b/src/video_core/shader/shader.cpp index 3febe739c..c7f23dab9 100644 --- a/src/video_core/shader/shader.cpp +++ b/src/video_core/shader/shader.cpp | |||
| @@ -25,7 +25,7 @@ namespace Pica { | |||
| 25 | 25 | ||
| 26 | namespace Shader { | 26 | namespace Shader { |
| 27 | 27 | ||
| 28 | OutputVertex OutputRegisters::ToVertex(const Regs::ShaderConfig& config) { | 28 | OutputVertex OutputRegisters::ToVertex(const Regs::ShaderConfig& config) const { |
| 29 | // Setup output data | 29 | // Setup output data |
| 30 | OutputVertex ret; | 30 | OutputVertex ret; |
| 31 | // TODO(neobrain): Under some circumstances, up to 16 attributes may be output. We need to | 31 | // TODO(neobrain): Under some circumstances, up to 16 attributes may be output. We need to |
diff --git a/src/video_core/shader/shader.h b/src/video_core/shader/shader.h index 8858d67f8..0111d8c0f 100644 --- a/src/video_core/shader/shader.h +++ b/src/video_core/shader/shader.h | |||
| @@ -85,7 +85,7 @@ struct OutputRegisters { | |||
| 85 | 85 | ||
| 86 | alignas(16) Math::Vec4<float24> value[16]; | 86 | alignas(16) Math::Vec4<float24> value[16]; |
| 87 | 87 | ||
| 88 | OutputVertex ToVertex(const Regs::ShaderConfig& config); | 88 | OutputVertex ToVertex(const Regs::ShaderConfig& config) const; |
| 89 | }; | 89 | }; |
| 90 | static_assert(std::is_pod<OutputRegisters>::value, "Structure is not POD"); | 90 | static_assert(std::is_pod<OutputRegisters>::value, "Structure is not POD"); |
| 91 | 91 | ||