diff options
| author | 2018-02-08 23:17:59 -0500 | |
|---|---|---|
| committer | 2018-02-08 23:17:59 -0500 | |
| commit | ca990636003d06d43fa0c12c86320e35251f0e59 (patch) | |
| tree | bb55c2c5d2982236e9bacdf252dda566150627ef /src | |
| parent | acc_u0: Implement ListAllUsers. (diff) | |
| download | yuzu-ca990636003d06d43fa0c12c86320e35251f0e59.tar.gz yuzu-ca990636003d06d43fa0c12c86320e35251f0e59.tar.xz yuzu-ca990636003d06d43fa0c12c86320e35251f0e59.zip | |
nvhost_ctrl_gpu: Implement ZCullGetInfo.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp | 16 |
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 | |||
| 104 | } | 104 | } |
| 105 | 105 | ||
| 106 | u32 nvhost_ctrl_gpu::ZCullGetInfo(const std::vector<u8>& input, std::vector<u8>& output) { | 106 | u32 nvhost_ctrl_gpu::ZCullGetInfo(const std::vector<u8>& input, std::vector<u8>& output) { |
| 107 | LOG_WARNING(Service_NVDRV, "(STUBBED) called"); | 107 | LOG_DEBUG(Service_NVDRV, "called"); |
| 108 | std::memset(output.data(), 0, output.size()); | 108 | IoctlNvgpuGpuZcullGetInfoArgs params{}; |
| 109 | std::memcpy(¶ms, input.data(), input.size()); | ||
| 110 | params.width_align_pixels = 0x20; | ||
| 111 | params.height_align_pixels = 0x20; | ||
| 112 | params.pixel_squares_by_aliquots = 0x400; | ||
| 113 | params.aliquot_total = 0x800; | ||
| 114 | params.region_byte_multiplier = 0x20; | ||
| 115 | params.region_header_size = 0x20; | ||
| 116 | params.subregion_header_size = 0xc0; | ||
| 117 | params.subregion_width_align_pixels = 0x20; | ||
| 118 | params.subregion_height_align_pixels = 0x40; | ||
| 119 | params.subregion_count = 0x10; | ||
| 120 | std::memcpy(output.data(), ¶ms, output.size()); | ||
| 109 | return 0; | 121 | return 0; |
| 110 | } | 122 | } |
| 111 | 123 | ||