mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-03 10:30:00 +00:00
Merge pull request #2471 from lioncash/engine-upload
video_core/engines/engine_upload: Minor tidying
This commit is contained in:
commit
dfddb12255
2 changed files with 8 additions and 6 deletions
|
@ -2,6 +2,8 @@
|
||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
#include "common/assert.h"
|
#include "common/assert.h"
|
||||||
#include "video_core/engines/engine_upload.h"
|
#include "video_core/engines/engine_upload.h"
|
||||||
#include "video_core/memory_manager.h"
|
#include "video_core/memory_manager.h"
|
||||||
|
@ -10,7 +12,9 @@
|
||||||
namespace Tegra::Engines::Upload {
|
namespace Tegra::Engines::Upload {
|
||||||
|
|
||||||
State::State(MemoryManager& memory_manager, Registers& regs)
|
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) {
|
void State::ProcessExec(const bool is_linear) {
|
||||||
write_offset = 0;
|
write_offset = 0;
|
||||||
|
|
|
@ -4,10 +4,8 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <cstddef>
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "common/bit_field.h"
|
#include "common/bit_field.h"
|
||||||
#include "common/common_funcs.h"
|
|
||||||
#include "common/common_types.h"
|
#include "common/common_types.h"
|
||||||
|
|
||||||
namespace Tegra {
|
namespace Tegra {
|
||||||
|
@ -57,10 +55,10 @@ 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(const bool is_linear);
|
void ProcessExec(bool is_linear);
|
||||||
void ProcessData(const u32 data, const bool is_last_call);
|
void ProcessData(u32 data, bool is_last_call);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
u32 write_offset = 0;
|
u32 write_offset = 0;
|
||||||
|
|
Loading…
Reference in a new issue