diff options
author | namkazy <nam.kazt.91@gmail.com> | 2020-02-16 05:53:03 +0100 |
---|---|---|
committer | namkazy <nam.kazt.91@gmail.com> | 2020-02-16 05:53:03 +0100 |
commit | 7fadc9c180fca37080f34e00d486c75d156b4615 (patch) | |
tree | d51c3e80b34ec2fd88ca3741a95f9ab5b936b8f1 /src/core/hle/service/nvdrv/devices/nvhost_gpu.h | |
parent | Merge pull request #3419 from yuzu-emu/revert-3386-gpu-mem-interface (diff) | |
download | yuzu-7fadc9c180fca37080f34e00d486c75d156b4615.tar yuzu-7fadc9c180fca37080f34e00d486c75d156b4615.tar.gz yuzu-7fadc9c180fca37080f34e00d486c75d156b4615.tar.bz2 yuzu-7fadc9c180fca37080f34e00d486c75d156b4615.tar.lz yuzu-7fadc9c180fca37080f34e00d486c75d156b4615.tar.xz yuzu-7fadc9c180fca37080f34e00d486c75d156b4615.tar.zst yuzu-7fadc9c180fca37080f34e00d486c75d156b4615.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_gpu.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_gpu.h b/src/core/hle/service/nvdrv/devices/nvhost_gpu.h index d056dd046..2ac74743f 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_gpu.h +++ b/src/core/hle/service/nvdrv/devices/nvhost_gpu.h @@ -48,6 +48,7 @@ private: IocAllocObjCtxCommand = 0xC0104809, IocChannelGetWaitbaseCommand = 0xC0080003, IocChannelSetTimeoutCommand = 0x40044803, + IocChannelSetTimeslice = 0xC004481D, }; enum class CtxObjects : u32_le { @@ -101,6 +102,11 @@ private: static_assert(sizeof(IoctlChannelSetPriority) == 4, "IoctlChannelSetPriority is incorrect size"); + struct IoctlSetTimeslice { + u32_le timeslice; + }; + static_assert(sizeof(IoctlSetTimeslice) == 4, "IoctlSetTimeslice is incorrect size"); + struct IoctlEventIdControl { u32_le cmd; // 0=disable, 1=enable, 2=clear u32_le id; @@ -174,6 +180,7 @@ private: u64_le user_data{}; IoctlZCullBind zcull_params{}; u32_le channel_priority{}; + u32_le channel_timeslice{}; u32 SetNVMAPfd(const std::vector<u8>& input, std::vector<u8>& output); u32 SetClientData(const std::vector<u8>& input, std::vector<u8>& output); @@ -188,6 +195,7 @@ private: const std::vector<u8>& input2, IoctlVersion version); u32 GetWaitbase(const std::vector<u8>& input, std::vector<u8>& output); u32 ChannelSetTimeout(const std::vector<u8>& input, std::vector<u8>& output); + u32 ChannelSetTimeslice(const std::vector<u8>& input, std::vector<u8>& output); std::shared_ptr<nvmap> nvmap_dev; u32 assigned_syncpoints{}; |