diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp | 8 | ||||
| -rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_instructions.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp index ceadb3333..0b6d853eb 100644 --- a/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp +++ b/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp | |||
| @@ -120,12 +120,12 @@ void EmitSetFragColor(EmitContext& ctx, u32 index, u32 component, ScalarF32 valu | |||
| 120 | ctx.Add("MOV.F frag_color{}.{},{};", index, "xyzw"[component], value); | 120 | ctx.Add("MOV.F frag_color{}.{},{};", index, "xyzw"[component], value); |
| 121 | } | 121 | } |
| 122 | 122 | ||
| 123 | void EmitSetSampleMask([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] ScalarF32 value) { | 123 | void EmitSetSampleMask(EmitContext& ctx, ScalarS32 value) { |
| 124 | throw NotImplementedException("GLASM instruction"); | 124 | ctx.Add("MOV.S result.samplemask.x,{};", value); |
| 125 | } | 125 | } |
| 126 | 126 | ||
| 127 | void EmitSetFragDepth([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] ScalarF32 value) { | 127 | void EmitSetFragDepth(EmitContext& ctx, ScalarF32 value) { |
| 128 | throw NotImplementedException("GLASM instruction"); | 128 | ctx.Add("MOV.F result.depth.z,{};", value); |
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | void EmitLoadLocal(EmitContext& ctx, IR::Inst& inst, ScalarU32 word_offset) { | 131 | void EmitLoadLocal(EmitContext& ctx, IR::Inst& inst, ScalarU32 word_offset) { |
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h b/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h index df0933a3f..ce0181fd2 100644 --- a/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h +++ b/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h | |||
| @@ -56,7 +56,7 @@ void EmitSetAttributeIndexed(EmitContext& ctx, ScalarU32 offset, ScalarF32 value | |||
| 56 | void EmitGetPatch(EmitContext& ctx, IR::Patch patch); | 56 | void EmitGetPatch(EmitContext& ctx, IR::Patch patch); |
| 57 | void EmitSetPatch(EmitContext& ctx, IR::Patch patch, ScalarF32 value); | 57 | void EmitSetPatch(EmitContext& ctx, IR::Patch patch, ScalarF32 value); |
| 58 | void EmitSetFragColor(EmitContext& ctx, u32 index, u32 component, ScalarF32 value); | 58 | void EmitSetFragColor(EmitContext& ctx, u32 index, u32 component, ScalarF32 value); |
| 59 | void EmitSetSampleMask(EmitContext& ctx, ScalarF32 value); | 59 | void EmitSetSampleMask(EmitContext& ctx, ScalarS32 value); |
| 60 | void EmitSetFragDepth(EmitContext& ctx, ScalarF32 value); | 60 | void EmitSetFragDepth(EmitContext& ctx, ScalarF32 value); |
| 61 | void EmitGetZFlag(EmitContext& ctx); | 61 | void EmitGetZFlag(EmitContext& ctx); |
| 62 | void EmitGetSFlag(EmitContext& ctx); | 62 | void EmitGetSFlag(EmitContext& ctx); |