summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-05-26 21:00:36 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:33 +0200
commitf58f79c85dad7ad018a015cc6913f2789540ec22 (patch)
treee1ee7c8b1c3a0203a046188fa9edb2bb6d203967 /src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp
parentglasm: Skip phi moves on undefined instructions (diff)
downloadyuzu-f58f79c85dad7ad018a015cc6913f2789540ec22.tar
yuzu-f58f79c85dad7ad018a015cc6913f2789540ec22.tar.gz
yuzu-f58f79c85dad7ad018a015cc6913f2789540ec22.tar.bz2
yuzu-f58f79c85dad7ad018a015cc6913f2789540ec22.tar.lz
yuzu-f58f79c85dad7ad018a015cc6913f2789540ec22.tar.xz
yuzu-f58f79c85dad7ad018a015cc6913f2789540ec22.tar.zst
yuzu-f58f79c85dad7ad018a015cc6913f2789540ec22.zip
Diffstat (limited to 'src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp
index 022b6584c..2a92d9df5 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp
+++ b/src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp
@@ -207,8 +207,9 @@ void EmitIsHelperInvocation(EmitContext& ctx, IR::Inst& inst) {
ctx.Add("MOV.S {}.x,fragment.helperthread.x;", inst);
}
-void EmitYDirection(EmitContext& ctx) {
- NotImplemented();
+void EmitYDirection(EmitContext& ctx, IR::Inst& inst) {
+ ctx.uses_y_direction = true;
+ ctx.Add("MOV.F {}.x,y_direction[0].w;", inst);
}
void EmitUndefU1(EmitContext& ctx, IR::Inst& inst) {