summaryrefslogtreecommitdiff
path: root/src/video_core/gpu.h
diff options
context:
space:
mode:
authorGravatar Markus Wick2018-09-06 15:48:08 +0200
committerGravatar Markus Wick2018-09-10 22:06:13 +0200
commit0cfb0bacb2581d79631f496afbc3a3d5dd19eb42 (patch)
treec6fdc90795dc4e1851e2b3e3bd792e48f19251ba /src/video_core/gpu.h
parentrasterizer: Drop unused handler. (diff)
downloadyuzu-0cfb0bacb2581d79631f496afbc3a3d5dd19eb42.tar.gz
yuzu-0cfb0bacb2581d79631f496afbc3a3d5dd19eb42.tar.xz
yuzu-0cfb0bacb2581d79631f496afbc3a3d5dd19eb42.zip
video_core: Move command buffer loop.
This moves the hot loop into video_core. This refactoring shall reduce the CPU overhead of calling ProcessCommandList.
Diffstat (limited to 'src/video_core/gpu.h')
-rw-r--r--src/video_core/gpu.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h
index d29f31f52..9163fbdc6 100644
--- a/src/video_core/gpu.h
+++ b/src/video_core/gpu.h
@@ -6,6 +6,7 @@
6 6
7#include <array> 7#include <array>
8#include <memory> 8#include <memory>
9#include <vector>
9#include "common/common_types.h" 10#include "common/common_types.h"
10#include "core/hle/service/nvflinger/buffer_queue.h" 11#include "core/hle/service/nvflinger/buffer_queue.h"
11#include "video_core/memory_manager.h" 12#include "video_core/memory_manager.h"
@@ -67,6 +68,7 @@ u32 RenderTargetBytesPerPixel(RenderTargetFormat format);
67/// Returns the number of bytes per pixel of each depth format. 68/// Returns the number of bytes per pixel of each depth format.
68u32 DepthFormatBytesPerPixel(DepthFormat format); 69u32 DepthFormatBytesPerPixel(DepthFormat format);
69 70
71struct CommandListHeader;
70class DebugContext; 72class DebugContext;
71 73
72/** 74/**
@@ -115,7 +117,7 @@ public:
115 ~GPU(); 117 ~GPU();
116 118
117 /// Processes a command list stored at the specified address in GPU memory. 119 /// Processes a command list stored at the specified address in GPU memory.
118 void ProcessCommandList(GPUVAddr address, u32 size); 120 void ProcessCommandLists(const std::vector<CommandListHeader>& commands);
119 121
120 /// Returns a reference to the Maxwell3D GPU engine. 122 /// Returns a reference to the Maxwell3D GPU engine.
121 Engines::Maxwell3D& Maxwell3D(); 123 Engines::Maxwell3D& Maxwell3D();