diff options
| author | 2020-11-23 18:38:13 -0500 | |
|---|---|---|
| committer | 2021-02-13 13:07:56 -0500 | |
| commit | 3c37d66c28b7150c076091b1a5f7b4206ff71761 (patch) | |
| tree | a94842cf676becde88f9bde3411504fa736b01c3 /src/core/hle | |
| parent | streamline cdma_pusher/command_classes (diff) | |
| download | yuzu-3c37d66c28b7150c076091b1a5f7b4206ff71761.tar.gz yuzu-3c37d66c28b7150c076091b1a5f7b4206ff71761.tar.xz yuzu-3c37d66c28b7150c076091b1a5f7b4206ff71761.zip | |
Address PR feedback
Co-Authored-By: LC <712067+lioncash@users.noreply.github.com>
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 | 3 |
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, | |||
| 34 | case 0xa: { | 34 | case 0xa: { |
| 35 | if (command.length == 0x1c) { | 35 | if (command.length == 0x1c) { |
| 36 | LOG_INFO(Service_NVDRV, "NVDEC video stream ended"); | 36 | LOG_INFO(Service_NVDRV, "NVDEC video stream ended"); |
| 37 | Tegra::ChCommandHeaderList cmdlist(1); | 37 | Tegra::ChCommandHeaderList cmdlist{{0xDEADB33F}}; |
| 38 | cmdlist[0] = Tegra::ChCommandHeader{0xDEADB33F}; | ||
| 39 | system.GPU().PushCommandBuffer(cmdlist); | 38 | system.GPU().PushCommandBuffer(cmdlist); |
| 40 | } | 39 | } |
| 41 | return UnmapBuffer(input, output); | 40 | 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 | |||
| 30 | return MapBuffer(input, output); | 30 | return MapBuffer(input, output); |
| 31 | case 0xa: { | 31 | case 0xa: { |
| 32 | if (command.length == 0x1c) { | 32 | if (command.length == 0x1c) { |
| 33 | Tegra::ChCommandHeaderList cmdlist(1); | 33 | Tegra::ChCommandHeaderList cmdlist{{0xDEADB33F}}; |
| 34 | cmdlist[0] = Tegra::ChCommandHeader{0xDEADB33F}; | ||
| 35 | system.GPU().PushCommandBuffer(cmdlist); | 34 | system.GPU().PushCommandBuffer(cmdlist); |
| 36 | } | 35 | } |
| 37 | return UnmapBuffer(input, output); | 36 | return UnmapBuffer(input, output); |