summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-05-20 19:22:08 -0300
committerGravatar ameerj2021-07-22 21:51:32 -0400
commit679e7146a701b961ac83b7f5f074ebd5a1bd7e45 (patch)
tree9efe15d45cae7dca9f8724f7cc8363b1837a8260 /src
parentglasm: Implement geometry shader attribute reads (diff)
downloadyuzu-679e7146a701b961ac83b7f5f074ebd5a1bd7e45.tar.gz
yuzu-679e7146a701b961ac83b7f5f074ebd5a1bd7e45.tar.xz
yuzu-679e7146a701b961ac83b7f5f074ebd5a1bd7e45.zip
glasm: Optimize EmitVertex into EMIT
Diffstat (limited to 'src')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp6
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) {
73} 73}
74 74
75void EmitEmitVertex(EmitContext& ctx, ScalarS32 stream) { 75void EmitEmitVertex(EmitContext& ctx, ScalarS32 stream) {
76 ctx.Add("EMITS {};", stream); 76 if (stream.type == Type::U32 && stream.imm_u32) {
77 ctx.Add("EMIT;");
78 } else {
79 ctx.Add("EMITS {};", stream);
80 }
77} 81}
78 82
79void EmitEndPrimitive(EmitContext& ctx, const IR::Value& stream) { 83void EmitEndPrimitive(EmitContext& ctx, const IR::Value& stream) {