diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-11-06 18:07:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-06 18:07:50 +0100 |
commit | e7f41107913871a5a750761128b7ffd34f8fe5a6 (patch) | |
tree | 1a370a8251b1d75a8f4247abb1fd58f7f6d1eb45 /src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h | |
parent | Merge pull request #11972 from t895/fps-counter-adjustments (diff) | |
parent | nvdrv: rework to remove memcpy (diff) | |
download | yuzu-e7f41107913871a5a750761128b7ffd34f8fe5a6.tar yuzu-e7f41107913871a5a750761128b7ffd34f8fe5a6.tar.gz yuzu-e7f41107913871a5a750761128b7ffd34f8fe5a6.tar.bz2 yuzu-e7f41107913871a5a750761128b7ffd34f8fe5a6.tar.lz yuzu-e7f41107913871a5a750761128b7ffd34f8fe5a6.tar.xz yuzu-e7f41107913871a5a750761128b7ffd34f8fe5a6.tar.zst yuzu-e7f41107913871a5a750761128b7ffd34f8fe5a6.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h index 2af3e1260..932997e75 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h +++ b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h @@ -139,18 +139,17 @@ private: static_assert(sizeof(IoctlGetVaRegions) == 16 + sizeof(VaRegion) * 2, "IoctlGetVaRegions is incorrect size"); - NvResult AllocAsEx(std::span<const u8> input, std::span<u8> output); - NvResult AllocateSpace(std::span<const u8> input, std::span<u8> output); - NvResult Remap(std::span<const u8> input, std::span<u8> output); - NvResult MapBufferEx(std::span<const u8> input, std::span<u8> output); - NvResult UnmapBuffer(std::span<const u8> input, std::span<u8> output); - NvResult FreeSpace(std::span<const u8> input, std::span<u8> output); - NvResult BindChannel(std::span<const u8> input, std::span<u8> output); + NvResult AllocAsEx(IoctlAllocAsEx& params); + NvResult AllocateSpace(IoctlAllocSpace& params); + NvResult Remap(std::span<IoctlRemapEntry> params); + NvResult MapBufferEx(IoctlMapBufferEx& params); + NvResult UnmapBuffer(IoctlUnmapBuffer& params); + NvResult FreeSpace(IoctlFreeSpace& params); + NvResult BindChannel(IoctlBindChannel& params); void GetVARegionsImpl(IoctlGetVaRegions& params); - NvResult GetVARegions(std::span<const u8> input, std::span<u8> output); - NvResult GetVARegions(std::span<const u8> input, std::span<u8> output, - std::span<u8> inline_output); + NvResult GetVARegions1(IoctlGetVaRegions& params); + NvResult GetVARegions3(IoctlGetVaRegions& params, std::span<VaRegion> regions); void FreeMappingLocked(u64 offset); @@ -213,7 +212,6 @@ private: bool initialised{}; } vm; std::shared_ptr<Tegra::MemoryManager> gmmu; - Common::ScratchBuffer<IoctlRemapEntry> entries; // s32 channel{}; // u32 big_page_size{VM::DEFAULT_BIG_PAGE_SIZE}; |