summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-05-22 01:59:24 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:33 +0200
commit77d8c44b68c02bcea0ca07944fc6a87c336d72a5 (patch)
tree590bd3392636f8dca521e5074b1056a3986161f2 /src/shader_recompiler
parentglasm: Fix EmitVertex's optimization (diff)
downloadyuzu-77d8c44b68c02bcea0ca07944fc6a87c336d72a5.tar
yuzu-77d8c44b68c02bcea0ca07944fc6a87c336d72a5.tar.gz
yuzu-77d8c44b68c02bcea0ca07944fc6a87c336d72a5.tar.bz2
yuzu-77d8c44b68c02bcea0ca07944fc6a87c336d72a5.tar.lz
yuzu-77d8c44b68c02bcea0ca07944fc6a87c336d72a5.tar.xz
yuzu-77d8c44b68c02bcea0ca07944fc6a87c336d72a5.tar.zst
yuzu-77d8c44b68c02bcea0ca07944fc6a87c336d72a5.zip
Diffstat (limited to 'src/shader_recompiler')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_instructions.h2
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h b/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h
index 15380a955..4d2d7a928 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h
+++ b/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h
@@ -70,7 +70,7 @@ void EmitWorkgroupId(EmitContext& ctx, IR::Inst& inst);
void EmitLocalInvocationId(EmitContext& ctx, IR::Inst& inst);
void EmitInvocationId(EmitContext& ctx, IR::Inst& inst);
void EmitSampleId(EmitContext& ctx);
-void EmitIsHelperInvocation(EmitContext& ctx);
+void EmitIsHelperInvocation(EmitContext& ctx, IR::Inst& inst);
void EmitYDirection(EmitContext& ctx);
void EmitLoadLocal(EmitContext& ctx, IR::Inst& inst, ScalarU32 word_offset);
void EmitWriteLocal(EmitContext& ctx, ScalarU32 word_offset, ScalarU32 value);
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 962719ffb..1e236c487 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp
+++ b/src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp
@@ -168,8 +168,8 @@ void EmitSampleId(EmitContext& ctx) {
NotImplemented();
}
-void EmitIsHelperInvocation(EmitContext& ctx) {
- NotImplemented();
+void EmitIsHelperInvocation(EmitContext& ctx, IR::Inst& inst) {
+ ctx.Add("MOV.S {}.x,fragment.helperthread.x;", inst);
}
void EmitYDirection(EmitContext& ctx) {