mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 07:28:20 -05:00
vp9/vic: Resolve pessimizing moves
Removes the usage of moves that don't result in behavior different from a copy, or otherwise would prevent copy elision from occurring.
This commit is contained in:
@ -58,7 +58,7 @@ void Vic::Execute() {
|
||||
return;
|
||||
}
|
||||
const VicConfig config{gpu.MemoryManager().Read<u64>(config_struct_address + 0x20)};
|
||||
const AVFramePtr frame_ptr = std::move(nvdec_processor->GetFrame());
|
||||
const AVFramePtr frame_ptr = nvdec_processor->GetFrame();
|
||||
const auto* frame = frame_ptr.get();
|
||||
if (!frame || frame->width == 0 || frame->height == 0) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user