1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

vk: Ensure MSAA surfaces are in RW state before attempting to transfer data.

This commit is contained in:
kd-11 2021-05-12 01:27:50 +03:00 committed by kd-11
parent 1a73b0a0da
commit 675c9a7945

View File

@ -530,6 +530,18 @@ namespace vk
resolve(cmd);
}
if (samples() > 1)
{
// Ensure a writable surface exists for this surface
get_resolve_target_safe(cmd);
}
if (src_texture->samples() > 1)
{
// Ensure a readable surface exists for the source
src_texture->get_resolve_target_safe(cmd);
}
hw_blitter.scale_image(
cmd,
src_texture->get_surface(rsx::surface_access::transfer_read),