summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/video_core/engines/engine_upload.cpp5
-rw-r--r--src/video_core/engines/engine_upload.h4
-rw-r--r--src/video_core/engines/kepler_compute.cpp2
-rw-r--r--src/video_core/engines/kepler_memory.cpp2
-rw-r--r--src/video_core/engines/maxwell_3d.cpp2
5 files changed, 9 insertions, 6 deletions
diff --git a/src/video_core/engines/engine_upload.cpp b/src/video_core/engines/engine_upload.cpp
index 201f8e273..663d5517a 100644
--- a/src/video_core/engines/engine_upload.cpp
+++ b/src/video_core/engines/engine_upload.cpp
@@ -9,11 +9,14 @@
9 9
10namespace Tegra::Engines::Upload { 10namespace Tegra::Engines::Upload {
11 11
12State::State(MemoryManager& memory_manager, Data& regs)
13 : memory_manager(memory_manager), regs(regs) {}
14
12void State::ProcessExec(const bool is_linear) { 15void State::ProcessExec(const bool is_linear) {
13 write_offset = 0; 16 write_offset = 0;
14 copy_size = regs.line_length_in * regs.line_count; 17 copy_size = regs.line_length_in * regs.line_count;
15 inner_buffer.resize(copy_size); 18 inner_buffer.resize(copy_size);
16 linear = is_linear; 19 this->is_linear = is_linear;
17} 20}
18 21
19void State::ProcessData(const u32 data, const bool is_last_call) { 22void State::ProcessData(const u32 data, const bool is_last_call) {
diff --git a/src/video_core/engines/engine_upload.h b/src/video_core/engines/engine_upload.h
index 3a817140a..431f56030 100644
--- a/src/video_core/engines/engine_upload.h
+++ b/src/video_core/engines/engine_upload.h
@@ -56,7 +56,7 @@ struct Data {
56 56
57class State { 57class State {
58public: 58public:
59 State(MemoryManager& memory_manager, Data& regs) : memory_manager(memory_manager), regs(regs) {} 59 State(MemoryManager& memory_manager, Data& regs);
60 ~State() = default; 60 ~State() = default;
61 61
62 void ProcessExec(const bool is_linear); 62 void ProcessExec(const bool is_linear);
@@ -66,7 +66,7 @@ private:
66 u32 write_offset = 0; 66 u32 write_offset = 0;
67 u32 copy_size = 0; 67 u32 copy_size = 0;
68 std::vector<u8> inner_buffer; 68 std::vector<u8> inner_buffer;
69 bool linear; 69 bool is_linear;
70 Data& regs; 70 Data& regs;
71 MemoryManager& memory_manager; 71 MemoryManager& memory_manager;
72}; 72};
diff --git a/src/video_core/engines/kepler_compute.cpp b/src/video_core/engines/kepler_compute.cpp
index 28f1f6a7d..7404a8163 100644
--- a/src/video_core/engines/kepler_compute.cpp
+++ b/src/video_core/engines/kepler_compute.cpp
@@ -34,7 +34,7 @@ void KeplerCompute::CallMethod(const GPU::MethodCall& method_call) {
34 break; 34 break;
35 } 35 }
36 case KEPLER_COMPUTE_REG_INDEX(data_upload): { 36 case KEPLER_COMPUTE_REG_INDEX(data_upload): {
37 bool is_last_call = method_call.IsLastCall(); 37 const bool is_last_call = method_call.IsLastCall();
38 upload_state.ProcessData(method_call.argument, is_last_call); 38 upload_state.ProcessData(method_call.argument, is_last_call);
39 if (is_last_call) { 39 if (is_last_call) {
40 system.GPU().Maxwell3D().dirty_flags.OnMemoryWrite(); 40 system.GPU().Maxwell3D().dirty_flags.OnMemoryWrite();
diff --git a/src/video_core/engines/kepler_memory.cpp b/src/video_core/engines/kepler_memory.cpp
index 71fa499d3..0561f676c 100644
--- a/src/video_core/engines/kepler_memory.cpp
+++ b/src/video_core/engines/kepler_memory.cpp
@@ -31,7 +31,7 @@ void KeplerMemory::CallMethod(const GPU::MethodCall& method_call) {
31 break; 31 break;
32 } 32 }
33 case KEPLERMEMORY_REG_INDEX(data): { 33 case KEPLERMEMORY_REG_INDEX(data): {
34 bool is_last_call = method_call.IsLastCall(); 34 const bool is_last_call = method_call.IsLastCall();
35 upload_state.ProcessData(method_call.argument, is_last_call); 35 upload_state.ProcessData(method_call.argument, is_last_call);
36 if (is_last_call) { 36 if (is_last_call) {
37 system.GPU().Maxwell3D().dirty_flags.OnMemoryWrite(); 37 system.GPU().Maxwell3D().dirty_flags.OnMemoryWrite();
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp
index 78810dbbb..d7b586db9 100644
--- a/src/video_core/engines/maxwell_3d.cpp
+++ b/src/video_core/engines/maxwell_3d.cpp
@@ -258,7 +258,7 @@ void Maxwell3D::CallMethod(const GPU::MethodCall& method_call) {
258 break; 258 break;
259 } 259 }
260 case MAXWELL3D_REG_INDEX(data_upload): { 260 case MAXWELL3D_REG_INDEX(data_upload): {
261 bool is_last_call = method_call.IsLastCall(); 261 const bool is_last_call = method_call.IsLastCall();
262 upload_state.ProcessData(method_call.argument, is_last_call); 262 upload_state.ProcessData(method_call.argument, is_last_call);
263 if (is_last_call) { 263 if (is_last_call) {
264 dirty_flags.OnMemoryWrite(); 264 dirty_flags.OnMemoryWrite();