Clang Format.

This commit is contained in:
Fernando Sahmkow 2020-04-20 13:42:14 -04:00
parent b8aef40c56
commit 5c9feaebb6
6 changed files with 19 additions and 11 deletions

View File

@ -51,7 +51,8 @@ void KeplerCompute::CallMethod(const GPU::MethodCall& method_call) {
} }
} }
void KeplerCompute::CallMultiMethod(u32 method, const u32* base_start, u32 amount, u32 methods_pending) { void KeplerCompute::CallMultiMethod(u32 method, const u32* base_start, u32 amount,
u32 methods_pending) {
for (std::size_t i = 0; i < amount; i++) { for (std::size_t i = 0; i < amount; i++) {
CallMethod({method, base_start[i], 0, methods_pending - static_cast<u32>(i)}); CallMethod({method, base_start[i], 0, methods_pending - static_cast<u32>(i)});
} }

View File

@ -41,7 +41,8 @@ void KeplerMemory::CallMethod(const GPU::MethodCall& method_call) {
} }
} }
void KeplerMemory::CallMultiMethod(u32 method, const u32* base_start, u32 amount, u32 methods_pending) { void KeplerMemory::CallMultiMethod(u32 method, const u32* base_start, u32 amount,
u32 methods_pending) {
for (std::size_t i = 0; i < amount; i++) { for (std::size_t i = 0; i < amount; i++) {
CallMethod({method, base_start[i], 0, methods_pending - static_cast<u32>(i)}); CallMethod({method, base_start[i], 0, methods_pending - static_cast<u32>(i)});
} }

View File

@ -36,7 +36,8 @@ void MaxwellDMA::CallMethod(const GPU::MethodCall& method_call) {
#undef MAXWELLDMA_REG_INDEX #undef MAXWELLDMA_REG_INDEX
} }
void MaxwellDMA::CallMultiMethod(u32 method, const u32* base_start, u32 amount, u32 methods_pending) { void MaxwellDMA::CallMultiMethod(u32 method, const u32* base_start, u32 amount,
u32 methods_pending) {
for (std::size_t i = 0; i < amount; i++) { for (std::size_t i = 0; i < amount; i++) {
CallMethod({method, base_start[i], 0, methods_pending - static_cast<u32>(i)}); CallMethod({method, base_start[i], 0, methods_pending - static_cast<u32>(i)});
} }

View File

@ -220,9 +220,9 @@ void GPU::CallMethod(const MethodCall& method_call) {
} }
} }
void GPU::CallMultiMethod(u32 method, u32 subchannel, const u32* base_start, u32 amount, u32 methods_pending) { void GPU::CallMultiMethod(u32 method, u32 subchannel, const u32* base_start, u32 amount,
LOG_TRACE(HW_GPU, "Processing method {:08X} on subchannel {}", method, u32 methods_pending) {
subchannel); LOG_TRACE(HW_GPU, "Processing method {:08X} on subchannel {}", method, subchannel);
ASSERT(subchannel < bound_engines.size()); ASSERT(subchannel < bound_engines.size());
@ -230,7 +230,8 @@ void GPU::CallMultiMethod(u32 method, u32 subchannel, const u32* base_start, u32
CallEngineMultiMethod(method, subchannel, base_start, amount, methods_pending); CallEngineMultiMethod(method, subchannel, base_start, amount, methods_pending);
} else { } else {
for (std::size_t i = 0; i < amount; i++) { for (std::size_t i = 0; i < amount; i++) {
CallPullerMethod({method, base_start[i], subchannel, methods_pending - static_cast<u32>(i)}); CallPullerMethod(
{method, base_start[i], subchannel, methods_pending - static_cast<u32>(i)});
} }
} }
} }
@ -317,7 +318,8 @@ void GPU::CallEngineMethod(const MethodCall& method_call) {
} }
} }
void GPU::CallEngineMultiMethod(u32 method, u32 subchannel, const u32* base_start, u32 amount, u32 methods_pending) { void GPU::CallEngineMultiMethod(u32 method, u32 subchannel, const u32* base_start, u32 amount,
u32 methods_pending) {
const EngineID engine = bound_engines[subchannel]; const EngineID engine = bound_engines[subchannel];
switch (engine) { switch (engine) {

View File

@ -156,7 +156,8 @@ public:
void CallMethod(const MethodCall& method_call); void CallMethod(const MethodCall& method_call);
/// Calls a GPU multivalue method. /// Calls a GPU multivalue method.
void CallMultiMethod(u32 method, u32 subchannel, const u32* base_start, u32 amount, u32 methods_pending); void CallMultiMethod(u32 method, u32 subchannel, const u32* base_start, u32 amount,
u32 methods_pending);
/// Flush all current written commands into the host GPU for execution. /// Flush all current written commands into the host GPU for execution.
void FlushCommands(); void FlushCommands();
@ -313,7 +314,8 @@ private:
void CallEngineMethod(const MethodCall& method_call); void CallEngineMethod(const MethodCall& method_call);
/// Calls a GPU engine multivalue method. /// Calls a GPU engine multivalue method.
void CallEngineMultiMethod(u32 method, u32 subchannel, const u32* base_start, u32 amount, u32 methods_pending); void CallEngineMultiMethod(u32 method, u32 subchannel, const u32* base_start, u32 amount,
u32 methods_pending);
/// Determines where the method should be executed. /// Determines where the method should be executed.
bool ExecuteMethodOnEngine(u32 method); bool ExecuteMethodOnEngine(u32 method);

View File

@ -644,7 +644,8 @@ void Config::ReadRendererValues() {
Settings::values.use_asynchronous_gpu_emulation = Settings::values.use_asynchronous_gpu_emulation =
ReadSetting(QStringLiteral("use_asynchronous_gpu_emulation"), false).toBool(); ReadSetting(QStringLiteral("use_asynchronous_gpu_emulation"), false).toBool();
Settings::values.use_vsync = ReadSetting(QStringLiteral("use_vsync"), true).toBool(); Settings::values.use_vsync = ReadSetting(QStringLiteral("use_vsync"), true).toBool();
Settings::values.use_fast_gpu_time = ReadSetting(QStringLiteral("use_fast_gpu_time"), true).toBool(); Settings::values.use_fast_gpu_time =
ReadSetting(QStringLiteral("use_fast_gpu_time"), true).toBool();
Settings::values.force_30fps_mode = Settings::values.force_30fps_mode =
ReadSetting(QStringLiteral("force_30fps_mode"), false).toBool(); ReadSetting(QStringLiteral("force_30fps_mode"), false).toBool();