diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-05-21 00:22:08 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:32 +0200 |
commit | 679e7146a701b961ac83b7f5f074ebd5a1bd7e45 (patch) | |
tree | 9efe15d45cae7dca9f8724f7cc8363b1837a8260 /src/shader_recompiler/backend | |
parent | glasm: Implement geometry shader attribute reads (diff) | |
download | yuzu-679e7146a701b961ac83b7f5f074ebd5a1bd7e45.tar yuzu-679e7146a701b961ac83b7f5f074ebd5a1bd7e45.tar.gz yuzu-679e7146a701b961ac83b7f5f074ebd5a1bd7e45.tar.bz2 yuzu-679e7146a701b961ac83b7f5f074ebd5a1bd7e45.tar.lz yuzu-679e7146a701b961ac83b7f5f074ebd5a1bd7e45.tar.xz yuzu-679e7146a701b961ac83b7f5f074ebd5a1bd7e45.tar.zst yuzu-679e7146a701b961ac83b7f5f074ebd5a1bd7e45.zip |
Diffstat (limited to 'src/shader_recompiler/backend')
-rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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 9b962427c..82abbdab3 100644 --- a/src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp +++ b/src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp @@ -73,7 +73,11 @@ void EmitEpilogue(EmitContext& ctx) { } void EmitEmitVertex(EmitContext& ctx, ScalarS32 stream) { - ctx.Add("EMITS {};", stream); + if (stream.type == Type::U32 && stream.imm_u32) { + ctx.Add("EMIT;"); + } else { + ctx.Add("EMITS {};", stream); + } } void EmitEndPrimitive(EmitContext& ctx, const IR::Value& stream) { |