summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
diff options
context:
space:
mode:
authorgreggameplayer <33609333+greggameplayer@users.noreply.github.com>2018-06-06 15:31:17 +0200
committerSebastian Valle <subv2112@gmail.com>2018-06-06 15:31:17 +0200
commitbe09dfeed9da7a55d52f0a1b0e45068d2a165ef4 (patch)
tree49b33aa0f09fc7ddca48f9dd89ff4a19e431aeae /src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
parentMerge pull request #529 from bunnei/am-nifm-stubs (diff)
downloadyuzu-be09dfeed9da7a55d52f0a1b0e45068d2a165ef4.tar
yuzu-be09dfeed9da7a55d52f0a1b0e45068d2a165ef4.tar.gz
yuzu-be09dfeed9da7a55d52f0a1b0e45068d2a165ef4.tar.bz2
yuzu-be09dfeed9da7a55d52f0a1b0e45068d2a165ef4.tar.lz
yuzu-be09dfeed9da7a55d52f0a1b0e45068d2a165ef4.tar.xz
yuzu-be09dfeed9da7a55d52f0a1b0e45068d2a165ef4.tar.zst
yuzu-be09dfeed9da7a55d52f0a1b0e45068d2a165ef4.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
index a9538ff43..0abc0de83 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
@@ -26,6 +26,10 @@ u32 nvhost_ctrl_gpu::ioctl(Ioctl command, const std::vector<u8>& input, std::vec
return ZCullGetInfo(input, output);
case IoctlCommand::IocZbcSetTable:
return ZBCSetTable(input, output);
+ case IoctlCommand::IocZbcQueryTable:
+ return ZBCQueryTable(input, output);
+ case IoctlCommand::IocFlushL2:
+ return FlushL2(input, output);
}
UNIMPLEMENTED_MSG("Unimplemented ioctl");
return 0;
@@ -136,4 +140,22 @@ u32 nvhost_ctrl_gpu::ZBCSetTable(const std::vector<u8>& input, std::vector<u8>&
return 0;
}
+u32 nvhost_ctrl_gpu::ZBCQueryTable(const std::vector<u8>& input, std::vector<u8>& output) {
+ NGLOG_WARNING(Service_NVDRV, "(STUBBED) called");
+ IoctlZbcQueryTable params{};
+ std::memcpy(&params, input.data(), input.size());
+ // TODO : To implement properly
+ std::memcpy(output.data(), &params, output.size());
+ return 0;
+}
+
+u32 nvhost_ctrl_gpu::FlushL2(const std::vector<u8>& input, std::vector<u8>& output) {
+ NGLOG_WARNING(Service_NVDRV, "(STUBBED) called");
+ IoctlFlushL2 params{};
+ std::memcpy(&params, input.data(), input.size());
+ // TODO : To implement properly
+ std::memcpy(output.data(), &params, output.size());
+ return 0;
+}
+
} // namespace Service::Nvidia::Devices