diff options
author | bunnei <bunneidev@gmail.com> | 2021-02-19 00:12:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-19 00:12:07 +0100 |
commit | 9cae3e6e90f840903a0072b916e49f24d0f6cb10 (patch) | |
tree | 79511308066a4fbc11aa2e9058b0aa65772cc30a /src/core/hle | |
parent | Merge pull request #5955 from yuzu-emu/revert-3603-port-5123 (diff) | |
parent | rebase, fix name shadowing, more const (diff) | |
download | yuzu-9cae3e6e90f840903a0072b916e49f24d0f6cb10.tar yuzu-9cae3e6e90f840903a0072b916e49f24d0f6cb10.tar.gz yuzu-9cae3e6e90f840903a0072b916e49f24d0f6cb10.tar.bz2 yuzu-9cae3e6e90f840903a0072b916e49f24d0f6cb10.tar.lz yuzu-9cae3e6e90f840903a0072b916e49f24d0f6cb10.tar.xz yuzu-9cae3e6e90f840903a0072b916e49f24d0f6cb10.tar.zst yuzu-9cae3e6e90f840903a0072b916e49f24d0f6cb10.zip |
Diffstat (limited to 'src/core/hle')
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp | 3 | ||||
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_vic.cpp | 7 |
2 files changed, 7 insertions, 3 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 72499654c..70849a9bd 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp +++ b/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp @@ -28,8 +28,13 @@ NvResult nvhost_vic::Ioctl1(Ioctl command, const std::vector<u8>& input, std::ve return GetWaitbase(input, output); case 0x9: return MapBuffer(input, output); - case 0xa: + case 0xa: { + if (command.length == 0x1c) { + Tegra::ChCommandHeaderList cmdlist{{0xDEADB33F}}; + system.GPU().PushCommandBuffer(cmdlist); + } return UnmapBuffer(input, output); + } default: break; } |