aboutsummaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/maxwell/translate/impl/exit_program.cpp
diff options
context:
space:
mode:
authorlizzie <lizzie@eden-emu.dev>2025-11-08 04:55:03 +0100
committercrueter <crueter@eden-emu.dev>2025-11-08 04:55:03 +0100
commit312c1cc0f6e1cf337779d5c527a8e5890d140a22 (patch)
tree465debee862e80180f568df4bdf31f65c313a12c /src/shader_recompiler/frontend/maxwell/translate/impl/exit_program.cpp
parent576c4e5f7780cd87ce51937bb5bf259745c560d9 (diff)
[shader_recompiler] Simplify translate loop and directly call (the now uniform functions); remove repetitive declarations on impl.h (#2972)
Function polymorphism where it wasn't needed? especially on tight code loops like translating code and whatnot? You may think the compiler was fine with this but nah, it just made codegen for all those paths; I didn't check LTO but I'd assume it behaves the same (since the "black box" from most walkers suck) - basically bunch of code that isn't longer used Also uniformly declaring all functions (i.e same args, return value) makes the entire switch statment way nicer Signed-off-by: lizzie lizzie@eden-emu.dev Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2972 Reviewed-by: crueter <crueter@eden-emu.dev> Reviewed-by: MaranBr <maranbr@eden-emu.dev> Reviewed-by: CamilleLaVey <camillelavey99@gmail.com> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell/translate/impl/exit_program.cpp')
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate/impl/exit_program.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/exit_program.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/exit_program.cpp
index c1179d9aa5..44459b7366 100644
--- a/src/shader_recompiler/frontend/maxwell/translate/impl/exit_program.cpp
+++ b/src/shader_recompiler/frontend/maxwell/translate/impl/exit_program.cpp
@@ -1,3 +1,6 @@
+// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
@@ -32,7 +35,7 @@ void ExitFragment(TranslatorVisitor& v) {
}
} // Anonymous namespace
-void TranslatorVisitor::EXIT() {
+void TranslatorVisitor::EXIT(u64) {
switch (env.ShaderStage()) {
case Stage::Fragment:
ExitFragment(*this);