diff options
author | ameerj <aj662@drexel.edu> | 2020-11-23 21:01:40 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-02-13 19:07:53 +0100 |
commit | 77564f987cc52ea6d841e7d18ade2646783f3651 (patch) | |
tree | 6c21f3c58453d3af5fba62b1fa59266d1149c180 /src/video_core/command_classes/nvdec.cpp | |
parent | nvdec cleanup (diff) | |
download | yuzu-77564f987cc52ea6d841e7d18ade2646783f3651.tar yuzu-77564f987cc52ea6d841e7d18ade2646783f3651.tar.gz yuzu-77564f987cc52ea6d841e7d18ade2646783f3651.tar.bz2 yuzu-77564f987cc52ea6d841e7d18ade2646783f3651.tar.lz yuzu-77564f987cc52ea6d841e7d18ade2646783f3651.tar.xz yuzu-77564f987cc52ea6d841e7d18ade2646783f3651.tar.zst yuzu-77564f987cc52ea6d841e7d18ade2646783f3651.zip |
Diffstat (limited to 'src/video_core/command_classes/nvdec.cpp')
-rw-r--r-- | src/video_core/command_classes/nvdec.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/command_classes/nvdec.cpp b/src/video_core/command_classes/nvdec.cpp index 79e1f4e13..e4f919afd 100644 --- a/src/video_core/command_classes/nvdec.cpp +++ b/src/video_core/command_classes/nvdec.cpp @@ -12,16 +12,16 @@ Nvdec::Nvdec(GPU& gpu_) : gpu(gpu_), codec(std::make_unique<Codec>(gpu)) {} Nvdec::~Nvdec() = default; -void Nvdec::ProcessMethod(Method method, const std::vector<u32>& arguments) { +void Nvdec::ProcessMethod(Method method, u32 argument) { if (method == Method::SetVideoCodec) { - codec->StateWrite(static_cast<u32>(method), arguments[0]); + codec->StateWrite(static_cast<u32>(method), argument); } else { - codec->StateWrite(static_cast<u32>(method), static_cast<u64>(arguments[0]) << 8); + codec->StateWrite(static_cast<u32>(method), static_cast<u64>(argument) << 8); } switch (method) { case Method::SetVideoCodec: - codec->SetTargetCodec(static_cast<NvdecCommon::VideoCodec>(arguments[0])); + codec->SetTargetCodec(static_cast<NvdecCommon::VideoCodec>(argument)); break; case Method::Execute: Execute(); |