summaryrefslogtreecommitdiff
path: root/src/core/hle
diff options
context:
space:
mode:
authorGravatar bunnei2021-02-18 15:12:07 -0800
committerGravatar GitHub2021-02-18 15:12:07 -0800
commit9cae3e6e90f840903a0072b916e49f24d0f6cb10 (patch)
tree79511308066a4fbc11aa2e9058b0aa65772cc30a /src/core/hle
parentMerge pull request #5955 from yuzu-emu/revert-3603-port-5123 (diff)
parent rebase, fix name shadowing, more const (diff)
downloadyuzu-9cae3e6e90f840903a0072b916e49f24d0f6cb10.tar.gz
yuzu-9cae3e6e90f840903a0072b916e49f24d0f6cb10.tar.xz
yuzu-9cae3e6e90f840903a0072b916e49f24d0f6cb10.zip
Merge pull request #4973 from ameerj/nvdec-opt
nvdec: Reuse allocated buffers and general cleanup
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp3
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_vic.cpp7
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,
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 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
28 return GetWaitbase(input, output); 28 return GetWaitbase(input, output);
29 case 0x9: 29 case 0x9:
30 return MapBuffer(input, output); 30 return MapBuffer(input, output);
31 case 0xa: 31 case 0xa: {
32 if (command.length == 0x1c) {
33 Tegra::ChCommandHeaderList cmdlist{{0xDEADB33F}};
34 system.GPU().PushCommandBuffer(cmdlist);
35 }
32 return UnmapBuffer(input, output); 36 return UnmapBuffer(input, output);
37 }
33 default: 38 default:
34 break; 39 break;
35 } 40 }