mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-11 18:50:55 +00:00
vk: Ensure MSAA surfaces are in RW state before attempting to transfer data.
This commit is contained in:
parent
1a73b0a0da
commit
675c9a7945
1 changed files with 12 additions and 0 deletions
|
@ -530,6 +530,18 @@ namespace vk
|
||||||
resolve(cmd);
|
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(
|
hw_blitter.scale_image(
|
||||||
cmd,
|
cmd,
|
||||||
src_texture->get_surface(rsx::surface_access::transfer_read),
|
src_texture->get_surface(rsx::surface_access::transfer_read),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue