diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-11-20 18:08:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-20 18:08:08 +0100 |
commit | 7f1c6def1f0bab38c8f89766ca9de670fd126a25 (patch) | |
tree | 9cb97c5f241d967faed05c27e802b1f12cdc0442 /src/video_core/renderer_vulkan/vk_rasterizer.cpp | |
parent | Merge pull request #9238 from german77/cabinet_applet (diff) | |
parent | video_core: Reimplement inline index buffer binding (diff) | |
download | yuzu-7f1c6def1f0bab38c8f89766ca9de670fd126a25.tar yuzu-7f1c6def1f0bab38c8f89766ca9de670fd126a25.tar.gz yuzu-7f1c6def1f0bab38c8f89766ca9de670fd126a25.tar.bz2 yuzu-7f1c6def1f0bab38c8f89766ca9de670fd126a25.tar.lz yuzu-7f1c6def1f0bab38c8f89766ca9de670fd126a25.tar.xz yuzu-7f1c6def1f0bab38c8f89766ca9de670fd126a25.tar.zst yuzu-7f1c6def1f0bab38c8f89766ca9de670fd126a25.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_rasterizer.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp index 67b88621a..12b13cc59 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 |