summaryrefslogtreecommitdiffstats
path: root/src/video_core/command_classes/nvdec.cpp
diff options
context:
space:
mode:
authorameerj <aj662@drexel.edu>2020-11-23 21:01:40 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2021-02-13 19:07:53 +0100
commit77564f987cc52ea6d841e7d18ade2646783f3651 (patch)
tree6c21f3c58453d3af5fba62b1fa59266d1149c180 /src/video_core/command_classes/nvdec.cpp
parentnvdec cleanup (diff)
downloadyuzu-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.cpp8
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();