diff options
author | Sebastian Valle <sebastianvalle@uninorte.edu.co> | 2019-05-19 15:54:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-19 15:54:42 +0200 |
commit | dfddb1225595d385a20a46c598ef0980d186098d (patch) | |
tree | 0836429701c0e4d10b5fd118d7bfae348d5d4741 /src/video_core | |
parent | Merge pull request #2484 from ReinUsesLisp/triangle-fan (diff) | |
parent | video_core/engines/engine_upload: Amend constructor initializer list order (diff) | |
download | yuzu-dfddb1225595d385a20a46c598ef0980d186098d.tar yuzu-dfddb1225595d385a20a46c598ef0980d186098d.tar.gz yuzu-dfddb1225595d385a20a46c598ef0980d186098d.tar.bz2 yuzu-dfddb1225595d385a20a46c598ef0980d186098d.tar.lz yuzu-dfddb1225595d385a20a46c598ef0980d186098d.tar.xz yuzu-dfddb1225595d385a20a46c598ef0980d186098d.tar.zst yuzu-dfddb1225595d385a20a46c598ef0980d186098d.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/engines/engine_upload.cpp | 6 | ||||
-rw-r--r-- | src/video_core/engines/engine_upload.h | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/src/video_core/engines/engine_upload.cpp b/src/video_core/engines/engine_upload.cpp index f8aa4ff55..082a40cd9 100644 --- a/src/video_core/engines/engine_upload.cpp +++ b/src/video_core/engines/engine_upload.cpp @@ -2,6 +2,8 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. +#include <cstring> + #include "common/assert.h" #include "video_core/engines/engine_upload.h" #include "video_core/memory_manager.h" @@ -10,7 +12,9 @@ namespace Tegra::Engines::Upload { State::State(MemoryManager& memory_manager, Registers& regs) - : memory_manager(memory_manager), regs(regs) {} + : regs{regs}, memory_manager{memory_manager} {} + +State::~State() = default; void State::ProcessExec(const bool is_linear) { write_offset = 0; diff --git a/src/video_core/engines/engine_upload.h b/src/video_core/engines/engine_upload.h index 9c6e0d21c..ef4f5839a 100644 --- a/src/video_core/engines/engine_upload.h +++ b/src/video_core/engines/engine_upload.h @@ -4,10 +4,8 @@ #pragma once -#include <cstddef> #include <vector> #include "common/bit_field.h" -#include "common/common_funcs.h" #include "common/common_types.h" namespace Tegra { @@ -57,10 +55,10 @@ struct Registers { class State { public: State(MemoryManager& memory_manager, Registers& regs); - ~State() = default; + ~State(); - void ProcessExec(const bool is_linear); - void ProcessData(const u32 data, const bool is_last_call); + void ProcessExec(bool is_linear); + void ProcessData(u32 data, bool is_last_call); private: u32 write_offset = 0; |