diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-11-11 14:03:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 14:03:40 +0100 |
commit | c973029374a731e13f2de240820c818fa2899c2b (patch) | |
tree | ab20b418b3c6465e4e9b9503d8d3744f3560ad4b /src/shader_recompiler/backend/glasm/glasm_emit_context.cpp | |
parent | Merge pull request #9223 from goldenx86/threadcount (diff) | |
parent | video_core: Fix few issues in Tess stage (diff) | |
download | yuzu-c973029374a731e13f2de240820c818fa2899c2b.tar yuzu-c973029374a731e13f2de240820c818fa2899c2b.tar.gz yuzu-c973029374a731e13f2de240820c818fa2899c2b.tar.bz2 yuzu-c973029374a731e13f2de240820c818fa2899c2b.tar.lz yuzu-c973029374a731e13f2de240820c818fa2899c2b.tar.xz yuzu-c973029374a731e13f2de240820c818fa2899c2b.tar.zst yuzu-c973029374a731e13f2de240820c818fa2899c2b.zip |
Diffstat (limited to 'src/shader_recompiler/backend/glasm/glasm_emit_context.cpp')
-rw-r--r-- | src/shader_recompiler/backend/glasm/glasm_emit_context.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glasm/glasm_emit_context.cpp b/src/shader_recompiler/backend/glasm/glasm_emit_context.cpp index 89603c1c4..333a91cc5 100644 --- a/src/shader_recompiler/backend/glasm/glasm_emit_context.cpp +++ b/src/shader_recompiler/backend/glasm/glasm_emit_context.cpp @@ -95,6 +95,10 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile if (info.uses_invocation_id) { Add("ATTRIB primitive_invocation=primitive.invocation;"); } + if (info.uses_invocation_info && + (stage == Stage::TessellationControl || stage == Stage::TessellationEval)) { + Add("ATTRIB primitive_vertexcount = primitive.vertexcount;"); + } if (info.stores_tess_level_outer) { Add("OUTPUT result_patch_tessouter[]={{result.patch.tessouter[0..3]}};"); } |