Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
44313e3dd9 Fix license headers in vk_buffer_cache.h 2025-08-14 16:21:44 +02:00
7c4c4cb4dc [VK] Potential fix for Vertex explosions
Please test with games that have vertex explosions
2025-08-14 15:42:08 +02:00
2 changed files with 6 additions and 3 deletions

View file

@ -709,7 +709,7 @@ void BufferCache<P>::BindHostIndexBuffer() {
} else {
buffer.MarkUsage(offset, size);
runtime.BindIndexBuffer(draw_state.topology, draw_state.index_buffer.format,
draw_state.index_buffer.first, draw_state.index_buffer.count,
draw_state.base_index, draw_state.index_buffer.count,
buffer, offset, size);
}
}

View file

@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
@ -111,8 +114,8 @@ public:
void ClearBuffer(VkBuffer dest_buffer, u32 offset, size_t size, u32 value);
void BindIndexBuffer(PrimitiveTopology topology, IndexFormat index_format, u32 num_indices,
u32 base_vertex, VkBuffer buffer, u32 offset, u32 size);
void BindIndexBuffer(PrimitiveTopology topology, IndexFormat index_format, u32 base_vertex,
u32 num_indices, VkBuffer buffer, u32 offset, u32 size);
void BindQuadIndexBuffer(PrimitiveTopology topology, u32 first, u32 count);