nv2a/vk: Download any dirty surfaces covering vertex buffers

This commit is contained in:
Matt Borgerson 2024-07-26 17:21:02 -07:00 committed by mborgerson
parent ad0aec9adb
commit f08d4a89fb
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ void pgraph_vk_update_vertex_ram_buffer(PGRAPHState *pg, hwaddr offset,
{
PGRAPHVkState *r = pg->vk_renderer_state;
pgraph_vk_download_surfaces_in_range_if_dirty(pg, offset, size);
size_t offset_bit = offset / 4096;
size_t nbits = size / 4096;
if (find_next_bit(r->uploaded_bitmap, nbits, offset_bit) < nbits) {