Browse Source

Corrections and styling

nce_cpp
Fernando Sahmkow 7 years ago
parent
commit
5c4de1e3fb
  1. 5
      src/video_core/engines/engine_upload.cpp
  2. 4
      src/video_core/engines/engine_upload.h
  3. 2
      src/video_core/engines/kepler_compute.cpp
  4. 2
      src/video_core/engines/kepler_memory.cpp
  5. 2
      src/video_core/engines/maxwell_3d.cpp

5
src/video_core/engines/engine_upload.cpp

@ -9,11 +9,14 @@
namespace Tegra::Engines::Upload {
State::State(MemoryManager& memory_manager, Data& regs)
: memory_manager(memory_manager), regs(regs) {}
void State::ProcessExec(const bool is_linear) {
write_offset = 0;
copy_size = regs.line_length_in * regs.line_count;
inner_buffer.resize(copy_size);
linear = is_linear;
this->is_linear = is_linear;
}
void State::ProcessData(const u32 data, const bool is_last_call) {

4
src/video_core/engines/engine_upload.h

@ -56,7 +56,7 @@ struct Data {
class State {
public:
State(MemoryManager& memory_manager, Data& regs) : memory_manager(memory_manager), regs(regs) {}
State(MemoryManager& memory_manager, Data& regs);
~State() = default;
void ProcessExec(const bool is_linear);
@ -66,7 +66,7 @@ private:
u32 write_offset = 0;
u32 copy_size = 0;
std::vector<u8> inner_buffer;
bool linear;
bool is_linear;
Data& regs;
MemoryManager& memory_manager;
};

2
src/video_core/engines/kepler_compute.cpp

@ -34,7 +34,7 @@ void KeplerCompute::CallMethod(const GPU::MethodCall& method_call) {
break;
}
case KEPLER_COMPUTE_REG_INDEX(data_upload): {
bool is_last_call = method_call.IsLastCall();
const bool is_last_call = method_call.IsLastCall();
upload_state.ProcessData(method_call.argument, is_last_call);
if (is_last_call) {
system.GPU().Maxwell3D().dirty_flags.OnMemoryWrite();

2
src/video_core/engines/kepler_memory.cpp

@ -31,7 +31,7 @@ void KeplerMemory::CallMethod(const GPU::MethodCall& method_call) {
break;
}
case KEPLERMEMORY_REG_INDEX(data): {
bool is_last_call = method_call.IsLastCall();
const bool is_last_call = method_call.IsLastCall();
upload_state.ProcessData(method_call.argument, is_last_call);
if (is_last_call) {
system.GPU().Maxwell3D().dirty_flags.OnMemoryWrite();

2
src/video_core/engines/maxwell_3d.cpp

@ -258,7 +258,7 @@ void Maxwell3D::CallMethod(const GPU::MethodCall& method_call) {
break;
}
case MAXWELL3D_REG_INDEX(data_upload): {
bool is_last_call = method_call.IsLastCall();
const bool is_last_call = method_call.IsLastCall();
upload_state.ProcessData(method_call.argument, is_last_call);
if (is_last_call) {
dirty_flags.OnMemoryWrite();

Loading…
Cancel
Save