mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
vk: Ensure MSAA surfaces are in RW state before attempting to transfer data.
This commit is contained in:
parent
1a73b0a0da
commit
675c9a7945
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue