summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-05-21 01:36:04 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:32 +0200
commitd5db96386d08652a8fd90757d9933835c06a84d6 (patch)
tree5ec65d0e1fb181d1a9e6e05be5c56869bbae9f00 /src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp
parentglasm: Optimize EmitVertex into EMIT (diff)
downloadyuzu-d5db96386d08652a8fd90757d9933835c06a84d6.tar
yuzu-d5db96386d08652a8fd90757d9933835c06a84d6.tar.gz
yuzu-d5db96386d08652a8fd90757d9933835c06a84d6.tar.bz2
yuzu-d5db96386d08652a8fd90757d9933835c06a84d6.tar.lz
yuzu-d5db96386d08652a8fd90757d9933835c06a84d6.tar.xz
yuzu-d5db96386d08652a8fd90757d9933835c06a84d6.tar.zst
yuzu-d5db96386d08652a8fd90757d9933835c06a84d6.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.cpp4
1 files changed, 2 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 82abbdab3..b60c907df 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp
+++ b/src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp
@@ -160,8 +160,8 @@ void EmitLocalInvocationId(EmitContext& ctx, IR::Inst& inst) {
ctx.Add("MOV.S {},invocation.localid;", inst);
}
-void EmitInvocationId(EmitContext& ctx) {
- NotImplemented();
+void EmitInvocationId(EmitContext& ctx, IR::Inst& inst) {
+ ctx.Add("MOV.S {}.x,primitive_invocation.x;", inst);
}
void EmitSampleId(EmitContext& ctx) {