mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-12-27 05:36:42 +00:00
video_core/engines/engine_upload: Default destructor in the cpp file
Avoids inlining destruction logic where applicable, and also makes forward declarations not cause unexpected compilation errors depending on where the State class is used.
This commit is contained in:
parent
ec1c69258a
commit
9b6d993e52
|
@ -14,6 +14,8 @@ namespace Tegra::Engines::Upload {
|
||||||
State::State(MemoryManager& memory_manager, Registers& regs)
|
State::State(MemoryManager& memory_manager, Registers& regs)
|
||||||
: memory_manager(memory_manager), regs(regs) {}
|
: memory_manager(memory_manager), regs(regs) {}
|
||||||
|
|
||||||
|
State::~State() = default;
|
||||||
|
|
||||||
void State::ProcessExec(const bool is_linear) {
|
void State::ProcessExec(const bool is_linear) {
|
||||||
write_offset = 0;
|
write_offset = 0;
|
||||||
copy_size = regs.line_length_in * regs.line_count;
|
copy_size = regs.line_length_in * regs.line_count;
|
||||||
|
|
|
@ -55,7 +55,7 @@ struct Registers {
|
||||||
class State {
|
class State {
|
||||||
public:
|
public:
|
||||||
State(MemoryManager& memory_manager, Registers& regs);
|
State(MemoryManager& memory_manager, Registers& regs);
|
||||||
~State() = default;
|
~State();
|
||||||
|
|
||||||
void ProcessExec(bool is_linear);
|
void ProcessExec(bool is_linear);
|
||||||
void ProcessData(u32 data, bool is_last_call);
|
void ProcessData(u32 data, bool is_last_call);
|
||||||
|
|
Loading…
Reference in a new issue