diff options
author | FernandoS27 <fsahmkow27@gmail.com> | 2021-04-19 01:03:38 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:29 +0200 |
commit | b541f5e5e333a8ec8c3569e02d67e59ad14217c2 (patch) | |
tree | 5b19bdd92d74ce8e32be75cfa2c27a4612a663de /src/shader_recompiler/backend | |
parent | shader: Implement delegation of Exit to dispatcher on CFG (diff) | |
download | yuzu-b541f5e5e333a8ec8c3569e02d67e59ad14217c2.tar yuzu-b541f5e5e333a8ec8c3569e02d67e59ad14217c2.tar.gz yuzu-b541f5e5e333a8ec8c3569e02d67e59ad14217c2.tar.bz2 yuzu-b541f5e5e333a8ec8c3569e02d67e59ad14217c2.tar.lz yuzu-b541f5e5e333a8ec8c3569e02d67e59ad14217c2.tar.xz yuzu-b541f5e5e333a8ec8c3569e02d67e59ad14217c2.tar.zst yuzu-b541f5e5e333a8ec8c3569e02d67e59ad14217c2.zip |
Diffstat (limited to 'src/shader_recompiler/backend')
-rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv.h | 1 | ||||
-rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv_control_flow.cpp | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv.h b/src/shader_recompiler/backend/spirv/emit_spirv.h index 4562db45b..c352bbd84 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv.h +++ b/src/shader_recompiler/backend/spirv/emit_spirv.h @@ -25,6 +25,7 @@ void EmitBranchConditional(EmitContext& ctx, Id condition, Id true_label, Id fal void EmitLoopMerge(EmitContext& ctx, Id merge_label, Id continue_label); void EmitSelectionMerge(EmitContext& ctx, Id merge_label); void EmitReturn(EmitContext& ctx); +void EmitJoin(EmitContext& ctx); void EmitUnreachable(EmitContext& ctx); void EmitDemoteToHelperInvocation(EmitContext& ctx, Id continue_label); void EmitBarrier(EmitContext& ctx); diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_control_flow.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_control_flow.cpp index 335603f88..d3a1db340 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv_control_flow.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv_control_flow.cpp @@ -26,6 +26,10 @@ void EmitReturn(EmitContext& ctx) { ctx.OpReturn(); } +void EmitJoin(EmitContext&) { + throw NotImplementedException("Join shouldn't be emitted"); +} + void EmitUnreachable(EmitContext& ctx) { ctx.OpUnreachable(); } |