diff options
author | bunnei <bunneidev@gmail.com> | 2018-09-10 18:02:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-10 18:02:47 -0400 |
commit | ae0c95efccfb85c0456194d142f561cbd5f95df8 (patch) | |
tree | 224018fc0aed7e56980e2bf9e063f3770b99539e /src/video_core/gpu.h | |
parent | ac959799e43e5f6866cdc0a6f1acb48b134d2bd0 (diff) | |
parent | c1b8cd90589141feb182da0d48c335bd624a4793 (diff) |
Merge pull request #1264 from degasus/optimizations
video_core: Optimize the command processor.
Diffstat (limited to 'src/video_core/gpu.h')
-rw-r--r-- | src/video_core/gpu.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index d29f31f52..4f71f99d7 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h @@ -6,6 +6,7 @@ #include <array> #include <memory> +#include <vector> #include "common/common_types.h" #include "core/hle/service/nvflinger/buffer_queue.h" #include "video_core/memory_manager.h" @@ -67,6 +68,7 @@ u32 RenderTargetBytesPerPixel(RenderTargetFormat format); /// Returns the number of bytes per pixel of each depth format. u32 DepthFormatBytesPerPixel(DepthFormat format); +struct CommandListHeader; class DebugContext; /** @@ -115,7 +117,7 @@ public: ~GPU(); /// Processes a command list stored at the specified address in GPU memory. - void ProcessCommandList(GPUVAddr address, u32 size); + void ProcessCommandLists(const std::vector<CommandListHeader>& commands); /// Returns a reference to the Maxwell3D GPU engine. Engines::Maxwell3D& Maxwell3D(); @@ -130,9 +132,6 @@ public: const Tegra::MemoryManager& MemoryManager() const; private: - /// Writes a single register in the engine bound to the specified subchannel - void WriteReg(u32 method, u32 subchannel, u32 value, u32 remaining_params); - std::unique_ptr<Tegra::MemoryManager> memory_manager; /// Mapping of command subchannels to their bound engine ids. |