diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-05-19 02:06:19 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:32 +0200 |
commit | e8ed90480518c200c8beaefa0ddb2bbb164a429c (patch) | |
tree | 8f8e7eb9b2cab85129ace884c61e1fdb80bfbc0a /src | |
parent | glasm: Implement TXQ and improve texture info reads (diff) | |
download | yuzu-e8ed90480518c200c8beaefa0ddb2bbb164a429c.tar yuzu-e8ed90480518c200c8beaefa0ddb2bbb164a429c.tar.gz yuzu-e8ed90480518c200c8beaefa0ddb2bbb164a429c.tar.bz2 yuzu-e8ed90480518c200c8beaefa0ddb2bbb164a429c.tar.lz yuzu-e8ed90480518c200c8beaefa0ddb2bbb164a429c.tar.xz yuzu-e8ed90480518c200c8beaefa0ddb2bbb164a429c.tar.zst yuzu-e8ed90480518c200c8beaefa0ddb2bbb164a429c.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_instructions.h | 2 | ||||
-rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp | 4 |
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 17bec1d58..7893f1c2a 100644 --- a/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h +++ b/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h @@ -66,7 +66,7 @@ void EmitSetZFlag(EmitContext& ctx); void EmitSetSFlag(EmitContext& ctx); void EmitSetCFlag(EmitContext& ctx); void EmitSetOFlag(EmitContext& ctx); -void EmitWorkgroupId(EmitContext& ctx); +void EmitWorkgroupId(EmitContext& ctx, IR::Inst& inst); void EmitLocalInvocationId(EmitContext& ctx, IR::Inst& inst); void EmitInvocationId(EmitContext& ctx); void EmitSampleId(EmitContext& ctx); 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 015cb5576..f8a7e2781 100644 --- a/src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp +++ b/src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp @@ -144,8 +144,8 @@ void EmitSetOFlag(EmitContext& ctx) { NotImplemented(); } -void EmitWorkgroupId(EmitContext& ctx) { - NotImplemented(); +void EmitWorkgroupId(EmitContext& ctx, IR::Inst& inst) { + ctx.Add("MOV.S {},invocation.groupid;", inst); } void EmitLocalInvocationId(EmitContext& ctx, IR::Inst& inst) { |