summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glasm/emit_glasm.cpp
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-05-26 16:00:36 -0300
committerGravatar ameerj2021-07-22 21:51:33 -0400
commitf58f79c85dad7ad018a015cc6913f2789540ec22 (patch)
treee1ee7c8b1c3a0203a046188fa9edb2bb6d203967 /src/shader_recompiler/backend/glasm/emit_glasm.cpp
parentglasm: Skip phi moves on undefined instructions (diff)
downloadyuzu-f58f79c85dad7ad018a015cc6913f2789540ec22.tar.gz
yuzu-f58f79c85dad7ad018a015cc6913f2789540ec22.tar.xz
yuzu-f58f79c85dad7ad018a015cc6913f2789540ec22.zip
glasm: Implement Y direction
Diffstat (limited to 'src/shader_recompiler/backend/glasm/emit_glasm.cpp')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm.cpp b/src/shader_recompiler/backend/glasm/emit_glasm.cpp
index 4f838b699..2a0524609 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm.cpp
+++ b/src/shader_recompiler/backend/glasm/emit_glasm.cpp
@@ -439,6 +439,9 @@ std::string EmitGLASM(const Profile& profile, const RuntimeInfo& runtime_info, I
439 "MOV.F FSWZB[2],1;" 439 "MOV.F FSWZB[2],1;"
440 "MOV.F FSWZB[3],-1;"; 440 "MOV.F FSWZB[3],-1;";
441 } 441 }
442 if (ctx.uses_y_direction) {
443 header += "PARAM y_direction[1]={state.material.front.ambient};";
444 }
442 ctx.code.insert(0, header); 445 ctx.code.insert(0, header);
443 ctx.code += "END"; 446 ctx.code += "END";
444 return ctx.code; 447 return ctx.code;