summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-02-09 21:51:43 +0100
committerGitHub <noreply@github.com>2018-02-09 21:51:43 +0100
commit1add3b20c4b2bf1815e6d6ea2b61845282baac25 (patch)
treee01e249939276a9ed9289c91a6ee7b26a4a5ced7 /src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
parentMerge pull request #173 from MerryMage/feature/dynarmic-fix-windows (diff)
parentnvdrv: Fix QueryEvent for libnx. (diff)
downloadyuzu-1add3b20c4b2bf1815e6d6ea2b61845282baac25.tar
yuzu-1add3b20c4b2bf1815e6d6ea2b61845282baac25.tar.gz
yuzu-1add3b20c4b2bf1815e6d6ea2b61845282baac25.tar.bz2
yuzu-1add3b20c4b2bf1815e6d6ea2b61845282baac25.tar.lz
yuzu-1add3b20c4b2bf1815e6d6ea2b61845282baac25.tar.xz
yuzu-1add3b20c4b2bf1815e6d6ea2b61845282baac25.tar.zst
yuzu-1add3b20c4b2bf1815e6d6ea2b61845282baac25.zip
Diffstat (limited to 'src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp16
1 files changed, 14 insertions, 2 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 d7e0b1bbd..4776c8aa3 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
@@ -104,8 +104,20 @@ u32 nvhost_ctrl_gpu::ZCullGetCtxSize(const std::vector<u8>& input, std::vector<u
}
u32 nvhost_ctrl_gpu::ZCullGetInfo(const std::vector<u8>& input, std::vector<u8>& output) {
- LOG_WARNING(Service_NVDRV, "(STUBBED) called");
- std::memset(output.data(), 0, output.size());
+ LOG_DEBUG(Service_NVDRV, "called");
+ IoctlNvgpuGpuZcullGetInfoArgs params{};
+ std::memcpy(&params, input.data(), input.size());
+ params.width_align_pixels = 0x20;
+ params.height_align_pixels = 0x20;
+ params.pixel_squares_by_aliquots = 0x400;
+ params.aliquot_total = 0x800;
+ params.region_byte_multiplier = 0x20;
+ params.region_header_size = 0x20;
+ params.subregion_header_size = 0xc0;
+ params.subregion_width_align_pixels = 0x20;
+ params.subregion_height_align_pixels = 0x40;
+ params.subregion_count = 0x10;
+ std::memcpy(output.data(), &params, output.size());
return 0;
}