summaryrefslogtreecommitdiff
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2020-04-28 13:53:47 -0400
committerGravatar Fernando Sahmkow2020-04-28 14:02:51 -0400
commit9df67b20956c8d0ecaf9fea4a3c82858a66adcca (patch)
treee44689a65b28ea298bd793a8461618ffadebf9f7 /src/video_core/engines
parentMaxwellDMA: Optimize micro copies. (diff)
downloadyuzu-9df67b20956c8d0ecaf9fea4a3c82858a66adcca.tar.gz
yuzu-9df67b20956c8d0ecaf9fea4a3c82858a66adcca.tar.xz
yuzu-9df67b20956c8d0ecaf9fea4a3c82858a66adcca.zip
Clang Format and Documentation.
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/engine_interface.h5
-rw-r--r--src/video_core/engines/fermi_2d.h3
-rw-r--r--src/video_core/engines/kepler_compute.cpp2
-rw-r--r--src/video_core/engines/kepler_compute.h3
-rw-r--r--src/video_core/engines/kepler_memory.h3
-rw-r--r--src/video_core/engines/maxwell_3d.h3
-rw-r--r--src/video_core/engines/maxwell_dma.h3
7 files changed, 14 insertions, 8 deletions
diff --git a/src/video_core/engines/engine_interface.h b/src/video_core/engines/engine_interface.h
index c8f20408d..18a9db7e6 100644
--- a/src/video_core/engines/engine_interface.h
+++ b/src/video_core/engines/engine_interface.h
@@ -15,7 +15,8 @@ public:
15 virtual void CallMethod(u32 method, u32 method_argument, bool is_last_call) = 0; 15 virtual void CallMethod(u32 method, u32 method_argument, bool is_last_call) = 0;
16 16
17 /// Write multiple values to the register identified by method. 17 /// Write multiple values to the register identified by method.
18 virtual void CallMultiMethod(u32 method, const u32* base_start, u32 amount, u32 methods_pending) = 0; 18 virtual void CallMultiMethod(u32 method, const u32* base_start, u32 amount,
19 u32 methods_pending) = 0;
19}; 20};
20 21
21} 22} // namespace Tegra::Engines
diff --git a/src/video_core/engines/fermi_2d.h b/src/video_core/engines/fermi_2d.h
index 77c2a0e39..8f37d053f 100644
--- a/src/video_core/engines/fermi_2d.h
+++ b/src/video_core/engines/fermi_2d.h
@@ -41,7 +41,8 @@ public:
41 void CallMethod(u32 method, u32 method_argument, bool is_last_call) override; 41 void CallMethod(u32 method, u32 method_argument, bool is_last_call) override;
42 42
43 /// Write multiple values to the register identified by method. 43 /// Write multiple values to the register identified by method.
44 void CallMultiMethod(u32 method, const u32* base_start, u32 amount, u32 methods_pending) override; 44 void CallMultiMethod(u32 method, const u32* base_start, u32 amount,
45 u32 methods_pending) override;
45 46
46 enum class Origin : u32 { 47 enum class Origin : u32 {
47 Center = 0, 48 Center = 0,
diff --git a/src/video_core/engines/kepler_compute.cpp b/src/video_core/engines/kepler_compute.cpp
index 88717b431..f6237fc6a 100644
--- a/src/video_core/engines/kepler_compute.cpp
+++ b/src/video_core/engines/kepler_compute.cpp
@@ -24,7 +24,7 @@ KeplerCompute::KeplerCompute(Core::System& system, VideoCore::RasterizerInterfac
24 24
25KeplerCompute::~KeplerCompute() = default; 25KeplerCompute::~KeplerCompute() = default;
26 26
27void KeplerCompute::CallMethod(u32 method, u32 method_argument, bool is_last_call) { 27void KeplerCompute::CallMethod(u32 method, u32 method_argument, bool is_last_call) {
28 ASSERT_MSG(method < Regs::NUM_REGS, 28 ASSERT_MSG(method < Regs::NUM_REGS,
29 "Invalid KeplerCompute register, increase the size of the Regs structure"); 29 "Invalid KeplerCompute register, increase the size of the Regs structure");
30 30
diff --git a/src/video_core/engines/kepler_compute.h b/src/video_core/engines/kepler_compute.h
index abeb41e84..18ceedfaf 100644
--- a/src/video_core/engines/kepler_compute.h
+++ b/src/video_core/engines/kepler_compute.h
@@ -204,7 +204,8 @@ public:
204 void CallMethod(u32 method, u32 method_argument, bool is_last_call) override; 204 void CallMethod(u32 method, u32 method_argument, bool is_last_call) override;
205 205
206 /// Write multiple values to the register identified by method. 206 /// Write multiple values to the register identified by method.
207 void CallMultiMethod(u32 method, const u32* base_start, u32 amount, u32 methods_pending) override; 207 void CallMultiMethod(u32 method, const u32* base_start, u32 amount,
208 u32 methods_pending) override;
208 209
209 Texture::FullTextureInfo GetTexture(std::size_t offset) const; 210 Texture::FullTextureInfo GetTexture(std::size_t offset) const;
210 211
diff --git a/src/video_core/engines/kepler_memory.h b/src/video_core/engines/kepler_memory.h
index 193caf206..5b7f71a00 100644
--- a/src/video_core/engines/kepler_memory.h
+++ b/src/video_core/engines/kepler_memory.h
@@ -42,7 +42,8 @@ public:
42 void CallMethod(u32 method, u32 method_argument, bool is_last_call) override; 42 void CallMethod(u32 method, u32 method_argument, bool is_last_call) override;
43 43
44 /// Write multiple values to the register identified by method. 44 /// Write multiple values to the register identified by method.
45 void CallMultiMethod(u32 method, const u32* base_start, u32 amount, u32 methods_pending) override; 45 void CallMultiMethod(u32 method, const u32* base_start, u32 amount,
46 u32 methods_pending) override;
46 47
47 struct Regs { 48 struct Regs {
48 static constexpr size_t NUM_REGS = 0x7F; 49 static constexpr size_t NUM_REGS = 0x7F;
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index 3d1e49c7c..9d3f181ff 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -1361,7 +1361,8 @@ public:
1361 void CallMethod(u32 method, u32 method_argument, bool is_last_call) override; 1361 void CallMethod(u32 method, u32 method_argument, bool is_last_call) override;
1362 1362
1363 /// Write multiple values to the register identified by method. 1363 /// Write multiple values to the register identified by method.
1364 void CallMultiMethod(u32 method, const u32* base_start, u32 amount, u32 methods_pending) override; 1364 void CallMultiMethod(u32 method, const u32* base_start, u32 amount,
1365 u32 methods_pending) override;
1365 1366
1366 /// Write the value to the register identified by method. 1367 /// Write the value to the register identified by method.
1367 void CallMethodFromMME(u32 method, u32 method_argument); 1368 void CallMethodFromMME(u32 method, u32 method_argument);
diff --git a/src/video_core/engines/maxwell_dma.h b/src/video_core/engines/maxwell_dma.h
index 65739f2e3..502dd8509 100644
--- a/src/video_core/engines/maxwell_dma.h
+++ b/src/video_core/engines/maxwell_dma.h
@@ -37,7 +37,8 @@ public:
37 void CallMethod(u32 method, u32 method_argument, bool is_last_call) override; 37 void CallMethod(u32 method, u32 method_argument, bool is_last_call) override;
38 38
39 /// Write multiple values to the register identified by method. 39 /// Write multiple values to the register identified by method.
40 void CallMultiMethod(u32 method, const u32* base_start, u32 amount, u32 methods_pending) override; 40 void CallMultiMethod(u32 method, const u32* base_start, u32 amount,
41 u32 methods_pending) override;
41 42
42 struct Regs { 43 struct Regs {
43 static constexpr std::size_t NUM_REGS = 0x1D6; 44 static constexpr std::size_t NUM_REGS = 0x1D6;