summaryrefslogtreecommitdiff
path: root/src/video_core/buffer_cache
diff options
context:
space:
mode:
authorGravatar liamwhite2022-12-28 20:59:23 -0500
committerGravatar GitHub2022-12-28 20:59:23 -0500
commit9fdacb5e3a03928a5671670d0db1e0058daf344e (patch)
tree286cf97c02dc915ba828da1f6a0fa4dc5440e795 /src/video_core/buffer_cache
parentMerge pull request #9504 from liamwhite/pg2 (diff)
parentvideo_core: Implement other missing vulkan topology (diff)
downloadyuzu-9fdacb5e3a03928a5671670d0db1e0058daf344e.tar.gz
yuzu-9fdacb5e3a03928a5671670d0db1e0058daf344e.tar.xz
yuzu-9fdacb5e3a03928a5671670d0db1e0058daf344e.zip
Merge pull request #9423 from vonchenplus/vulkan_quad_strip
video_core: Implement all vulkan topology
Diffstat (limited to 'src/video_core/buffer_cache')
-rw-r--r--src/video_core/buffer_cache/buffer_cache.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h
index 6c8d98946..f1c60d1f3 100644
--- a/src/video_core/buffer_cache/buffer_cache.h
+++ b/src/video_core/buffer_cache/buffer_cache.h
@@ -666,9 +666,10 @@ void BufferCache<P>::BindHostGeometryBuffers(bool is_indexed) {
666 BindHostIndexBuffer(); 666 BindHostIndexBuffer();
667 } else if constexpr (!HAS_FULL_INDEX_AND_PRIMITIVE_SUPPORT) { 667 } else if constexpr (!HAS_FULL_INDEX_AND_PRIMITIVE_SUPPORT) {
668 const auto& draw_state = maxwell3d->draw_manager->GetDrawState(); 668 const auto& draw_state = maxwell3d->draw_manager->GetDrawState();
669 if (draw_state.topology == Maxwell::PrimitiveTopology::Quads) { 669 if (draw_state.topology == Maxwell::PrimitiveTopology::Quads ||
670 runtime.BindQuadArrayIndexBuffer(draw_state.vertex_buffer.first, 670 draw_state.topology == Maxwell::PrimitiveTopology::QuadStrip) {
671 draw_state.vertex_buffer.count); 671 runtime.BindQuadIndexBuffer(draw_state.topology, draw_state.vertex_buffer.first,
672 draw_state.vertex_buffer.count);
672 } 673 }
673 } 674 }
674 BindHostVertexBuffers(); 675 BindHostVertexBuffers();