GS/Vulkan: Actually store the readback buffer size

This being missing was causing the buffer to be reallocated every
download.
This commit is contained in:
Connor McLaughlin 2022-09-30 00:05:08 +10:00 committed by refractionpcsx2
parent da8a79a857
commit c2cafd1a80
2 changed files with 2 additions and 0 deletions

View File

@ -1401,6 +1401,7 @@ bool GSDevice12::CheckStagingBufferSize(u32 required_size)
return false; return false;
} }
m_readback_staging_buffer_size = required_size;
return true; return true;
} }

View File

@ -1804,6 +1804,7 @@ bool GSDeviceVK::CheckStagingBufferSize(u32 required_size)
} }
m_readback_staging_buffer_map = ai.pMappedData; m_readback_staging_buffer_map = ai.pMappedData;
m_readback_staging_buffer_size = required_size;
return true; return true;
} }