diff options
| author | 2020-10-27 02:20:41 -0400 | |
|---|---|---|
| committer | 2020-10-27 02:21:40 -0400 | |
| commit | 3b5d5fa86fb2ffe2e78eab86e4a8db189f69f0fa (patch) | |
| tree | 9515cbf6561483faeb93ef145c272eca14d3deb4 | |
| parent | vp9: Resolve variable shadowing (diff) | |
| download | yuzu-3b5d5fa86fb2ffe2e78eab86e4a8db189f69f0fa.tar.gz yuzu-3b5d5fa86fb2ffe2e78eab86e4a8db189f69f0fa.tar.xz yuzu-3b5d5fa86fb2ffe2e78eab86e4a8db189f69f0fa.zip | |
vp9: Remove pessimizing moves
The move will already occur without std::move.
| -rw-r--r-- | src/video_core/command_classes/codecs/vp9.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/command_classes/codecs/vp9.cpp b/src/video_core/command_classes/codecs/vp9.cpp index 04e015ae8..0315a80bc 100644 --- a/src/video_core/command_classes/codecs/vp9.cpp +++ b/src/video_core/command_classes/codecs/vp9.cpp | |||
| @@ -395,7 +395,7 @@ Vp9PictureInfo VP9::GetVp9PictureInfo(const NvdecCommon::NvdecRegisters& state) | |||
| 395 | // to avoid buffering frame data needed for reference frame updating in the header composition. | 395 | // to avoid buffering frame data needed for reference frame updating in the header composition. |
| 396 | std::memcpy(vp9_info.frame_offsets.data(), state.surface_luma_offset.data(), 4 * sizeof(u64)); | 396 | std::memcpy(vp9_info.frame_offsets.data(), state.surface_luma_offset.data(), 4 * sizeof(u64)); |
| 397 | 397 | ||
| 398 | return std::move(vp9_info); | 398 | return vp9_info; |
| 399 | } | 399 | } |
| 400 | 400 | ||
| 401 | void VP9::InsertEntropy(u64 offset, Vp9EntropyProbs& dst) { | 401 | void VP9::InsertEntropy(u64 offset, Vp9EntropyProbs& dst) { |
| @@ -408,7 +408,7 @@ Vp9FrameContainer VP9::GetCurrentFrame(const NvdecCommon::NvdecRegisters& state) | |||
| 408 | Vp9FrameContainer frame{}; | 408 | Vp9FrameContainer frame{}; |
| 409 | { | 409 | { |
| 410 | gpu.SyncGuestHost(); | 410 | gpu.SyncGuestHost(); |
| 411 | frame.info = std::move(GetVp9PictureInfo(state)); | 411 | frame.info = GetVp9PictureInfo(state); |
| 412 | 412 | ||
| 413 | frame.bit_stream.resize(frame.info.bitstream_size); | 413 | frame.bit_stream.resize(frame.info.bitstream_size); |
| 414 | gpu.MemoryManager().ReadBlock(state.frame_bitstream_offset, frame.bit_stream.data(), | 414 | gpu.MemoryManager().ReadBlock(state.frame_bitstream_offset, frame.bit_stream.data(), |