diff options
Diffstat (limited to 'src/shader_recompiler/backend')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv.h | 8 | ||||
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp | 32 |
2 files changed, 40 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv.h b/src/shader_recompiler/backend/spirv/emit_spirv.h index 9c9e0c5dd..d2eda1f8e 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv.h +++ b/src/shader_recompiler/backend/spirv/emit_spirv.h | |||
| @@ -59,6 +59,14 @@ void EmitSetZFlag(EmitContext& ctx); | |||
| 59 | void EmitSetSFlag(EmitContext& ctx); | 59 | void EmitSetSFlag(EmitContext& ctx); |
| 60 | void EmitSetCFlag(EmitContext& ctx); | 60 | void EmitSetCFlag(EmitContext& ctx); |
| 61 | void EmitSetOFlag(EmitContext& ctx); | 61 | void EmitSetOFlag(EmitContext& ctx); |
| 62 | void EmitGetFCSMFlag(EmitContext& ctx); | ||
| 63 | void EmitGetTAFlag(EmitContext& ctx); | ||
| 64 | void EmitGetTRFlag(EmitContext& ctx); | ||
| 65 | void EmitGetMXFlag(EmitContext& ctx); | ||
| 66 | void EmitSetFCSMFlag(EmitContext& ctx); | ||
| 67 | void EmitSetTAFlag(EmitContext& ctx); | ||
| 68 | void EmitSetTRFlag(EmitContext& ctx); | ||
| 69 | void EmitSetMXFlag(EmitContext& ctx); | ||
| 62 | Id EmitWorkgroupId(EmitContext& ctx); | 70 | Id EmitWorkgroupId(EmitContext& ctx); |
| 63 | Id EmitLocalInvocationId(EmitContext& ctx); | 71 | Id EmitLocalInvocationId(EmitContext& ctx); |
| 64 | Id EmitLoadLocal(EmitContext& ctx, Id word_offset); | 72 | Id EmitLoadLocal(EmitContext& ctx, Id word_offset); |
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp index e42407f1f..a96ee6f0d 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp | |||
| @@ -263,6 +263,38 @@ void EmitSetOFlag(EmitContext&) { | |||
| 263 | throw NotImplementedException("SPIR-V Instruction"); | 263 | throw NotImplementedException("SPIR-V Instruction"); |
| 264 | } | 264 | } |
| 265 | 265 | ||
| 266 | void EmitGetFCSMFlag(EmitContext&) { | ||
| 267 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 268 | } | ||
| 269 | |||
| 270 | void EmitGetTAFlag(EmitContext&) { | ||
| 271 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 272 | } | ||
| 273 | |||
| 274 | void EmitGetTRFlag(EmitContext&) { | ||
| 275 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 276 | } | ||
| 277 | |||
| 278 | void EmitGetMXFlag(EmitContext&) { | ||
| 279 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 280 | } | ||
| 281 | |||
| 282 | void EmitSetFCSMFlag(EmitContext&) { | ||
| 283 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 284 | } | ||
| 285 | |||
| 286 | void EmitSetTAFlag(EmitContext&) { | ||
| 287 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 288 | } | ||
| 289 | |||
| 290 | void EmitSetTRFlag(EmitContext&) { | ||
| 291 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 292 | } | ||
| 293 | |||
| 294 | void EmitSetMXFlag(EmitContext&) { | ||
| 295 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 296 | } | ||
| 297 | |||
| 266 | Id EmitWorkgroupId(EmitContext& ctx) { | 298 | Id EmitWorkgroupId(EmitContext& ctx) { |
| 267 | return ctx.OpLoad(ctx.U32[3], ctx.workgroup_id); | 299 | return ctx.OpLoad(ctx.U32[3], ctx.workgroup_id); |
| 268 | } | 300 | } |