diff options
author | Feng Chen <vonchenplus@gmail.com> | 2022-11-09 08:57:42 +0100 |
---|---|---|
committer | Feng Chen <vonchenplus@gmail.com> | 2022-11-15 05:10:44 +0100 |
commit | cb971ad654256f2de89119a7f9e2a98bb312241f (patch) | |
tree | 80c81ed8e12ab907c2d983467cccd88de47ec887 /src/video_core/renderer_vulkan | |
parent | Merge pull request #9199 from liamwhite/service-oops (diff) | |
download | yuzu-cb971ad654256f2de89119a7f9e2a98bb312241f.tar yuzu-cb971ad654256f2de89119a7f9e2a98bb312241f.tar.gz yuzu-cb971ad654256f2de89119a7f9e2a98bb312241f.tar.bz2 yuzu-cb971ad654256f2de89119a7f9e2a98bb312241f.tar.lz yuzu-cb971ad654256f2de89119a7f9e2a98bb312241f.tar.xz yuzu-cb971ad654256f2de89119a7f9e2a98bb312241f.tar.zst yuzu-cb971ad654256f2de89119a7f9e2a98bb312241f.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_rasterizer.cpp | 15 | ||||
-rw-r--r-- | src/video_core/renderer_vulkan/vk_rasterizer.h | 2 |
2 files changed, 0 insertions, 17 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp index f79fa8313..6f94dcbc7 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp +++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp @@ -191,8 +191,6 @@ void RasterizerVulkan::Draw(bool is_indexed, u32 instance_count) { pipeline->SetEngine(maxwell3d, gpu_memory); pipeline->Configure(is_indexed); - BindInlineIndexBuffer(); - BeginTransformFeedback(); UpdateDynamicStates(); @@ -1029,17 +1027,4 @@ void RasterizerVulkan::ReleaseChannel(s32 channel_id) { query_cache.EraseChannel(channel_id); } -void RasterizerVulkan::BindInlineIndexBuffer() { - if (maxwell3d->inline_index_draw_indexes.empty()) { - return; - } - const auto data_count = static_cast<u32>(maxwell3d->inline_index_draw_indexes.size()); - auto buffer = buffer_cache_runtime.UploadStagingBuffer(data_count); - std::memcpy(buffer.mapped_span.data(), maxwell3d->inline_index_draw_indexes.data(), data_count); - buffer_cache_runtime.BindIndexBuffer( - maxwell3d->regs.draw.topology, maxwell3d->regs.index_buffer.format, - maxwell3d->regs.index_buffer.first, maxwell3d->regs.index_buffer.count, buffer.buffer, - static_cast<u32>(buffer.offset), data_count); -} - } // namespace Vulkan diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.h b/src/video_core/renderer_vulkan/vk_rasterizer.h index b0bc306f5..fa2238c5f 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.h +++ b/src/video_core/renderer_vulkan/vk_rasterizer.h @@ -141,8 +141,6 @@ private: void UpdateVertexInput(Tegra::Engines::Maxwell3D::Regs& regs); - void BindInlineIndexBuffer(); - Tegra::GPU& gpu; ScreenInfo& screen_info; |