diff options
| author | David <25727384+ogniK5377@users.noreply.github.com> | 2019-09-22 23:13:02 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-22 23:13:02 +1000 |
| commit | 9d69206cd00982e02f90845c98d7d6c9887645c3 (patch) | |
| tree | 51ec8f19f2e91f49a1f77baaffecd4cb7677e911 /src/video_core/shader/shader_ir.cpp | |
| parent | 822ca65d695d85d8f017bc2f8c8dd5b6806c2e7d (diff) | |
| parent | 68f5aff64f231e77fed726b91619061e308b7b2d (diff) | |
Merge pull request #2870 from FernandoS27/multi-draw
Implement a MME Draw commands Inliner and correct host instance drawing
Diffstat (limited to 'src/video_core/shader/shader_ir.cpp')
| -rw-r--r-- | src/video_core/shader/shader_ir.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/video_core/shader/shader_ir.cpp b/src/video_core/shader/shader_ir.cpp index bbbab0bca..2c357f310 100644 --- a/src/video_core/shader/shader_ir.cpp +++ b/src/video_core/shader/shader_ir.cpp @@ -114,6 +114,18 @@ Node ShaderIR::GetOutputAttribute(Attribute::Index index, u64 element, Node buff break; } } + if (index == Attribute::Index::TessCoordInstanceIDVertexID) { + switch (element) { + case 2: + uses_instance_id = true; + break; + case 3: + uses_vertex_id = true; + break; + default: + break; + } + } if (index == Attribute::Index::ClipDistances0123 || index == Attribute::Index::ClipDistances4567) { const auto clip_index = |
