diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-04-25 01:22:09 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-04-25 01:22:09 +0200 |
commit | 75e0d16caa994f0765f78268fb5a94496914d23b (patch) | |
tree | 378eab8a370a1f95ad04d9828e1e6e74d3e8fbac /src/core/hle/service/nvdrv/devices/nvhost_vic.cpp | |
parent | Merge pull request #6234 from Morph1984/stub-am (diff) | |
download | yuzu-75e0d16caa994f0765f78268fb5a94496914d23b.tar yuzu-75e0d16caa994f0765f78268fb5a94496914d23b.tar.gz yuzu-75e0d16caa994f0765f78268fb5a94496914d23b.tar.bz2 yuzu-75e0d16caa994f0765f78268fb5a94496914d23b.tar.lz yuzu-75e0d16caa994f0765f78268fb5a94496914d23b.tar.xz yuzu-75e0d16caa994f0765f78268fb5a94496914d23b.tar.zst yuzu-75e0d16caa994f0765f78268fb5a94496914d23b.zip |
Diffstat (limited to 'src/core/hle/service/nvdrv/devices/nvhost_vic.cpp')
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_vic.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp b/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp index 0421fb956..301efe8a1 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp +++ b/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp @@ -29,13 +29,8 @@ NvResult nvhost_vic::Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& i return GetWaitbase(input, output); case 0x9: return MapBuffer(input, output); - case 0xa: { - if (command.length == 0x1c) { - Tegra::ChCommandHeaderList cmdlist{{0xDEADB33F}}; - system.GPU().PushCommandBuffer(cmdlist); - } + case 0xa: return UnmapBuffer(input, output); - } default: break; } @@ -69,6 +64,9 @@ NvResult nvhost_vic::Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& i } void nvhost_vic::OnOpen(DeviceFD fd) {} -void nvhost_vic::OnClose(DeviceFD fd) {} + +void nvhost_vic::OnClose(DeviceFD fd) { + system.GPU().ClearCdmaInstance(); +} } // namespace Service::Nvidia::Devices |