summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv
diff options
context:
space:
mode:
authorameerj <aj662@drexel.edu>2020-11-24 00:38:13 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2021-02-13 19:07:56 +0100
commit3c37d66c28b7150c076091b1a5f7b4206ff71761 (patch)
treea94842cf676becde88f9bde3411504fa736b01c3 /src/core/hle/service/nvdrv
parent streamline cdma_pusher/command_classes (diff)
downloadyuzu-3c37d66c28b7150c076091b1a5f7b4206ff71761.tar
yuzu-3c37d66c28b7150c076091b1a5f7b4206ff71761.tar.gz
yuzu-3c37d66c28b7150c076091b1a5f7b4206ff71761.tar.bz2
yuzu-3c37d66c28b7150c076091b1a5f7b4206ff71761.tar.lz
yuzu-3c37d66c28b7150c076091b1a5f7b4206ff71761.tar.xz
yuzu-3c37d66c28b7150c076091b1a5f7b4206ff71761.tar.zst
yuzu-3c37d66c28b7150c076091b1a5f7b4206ff71761.zip
Diffstat (limited to 'src/core/hle/service/nvdrv')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp3
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_vic.cpp3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp b/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp
index 36970f828..ecba1dba1 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp
@@ -34,8 +34,7 @@ NvResult nvhost_nvdec::Ioctl1(Ioctl command, const std::vector<u8>& input,
case 0xa: {
if (command.length == 0x1c) {
LOG_INFO(Service_NVDRV, "NVDEC video stream ended");
- Tegra::ChCommandHeaderList cmdlist(1);
- cmdlist[0] = Tegra::ChCommandHeader{0xDEADB33F};
+ Tegra::ChCommandHeaderList cmdlist{{0xDEADB33F}};
system.GPU().PushCommandBuffer(cmdlist);
}
return UnmapBuffer(input, output);
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp b/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp
index a29abd15b..70849a9bd 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp
@@ -30,8 +30,7 @@ NvResult nvhost_vic::Ioctl1(Ioctl command, const std::vector<u8>& input, std::ve
return MapBuffer(input, output);
case 0xa: {
if (command.length == 0x1c) {
- Tegra::ChCommandHeaderList cmdlist(1);
- cmdlist[0] = Tegra::ChCommandHeader{0xDEADB33F};
+ Tegra::ChCommandHeaderList cmdlist{{0xDEADB33F}};
system.GPU().PushCommandBuffer(cmdlist);
}
return UnmapBuffer(input, output);