mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-19 12:40:29 +00:00
rsx: Improve aliased data preservation
- Carve out inherited region if any - Perform pitch compatibility test before assigning old_surface
This commit is contained in:
parent
738cfccbba
commit
1de90bdb1f
@ -469,7 +469,11 @@ namespace rsx
|
||||
auto aliased_surface = secondary_storage->find(address);
|
||||
if (aliased_surface != secondary_storage->end())
|
||||
{
|
||||
old_surface = Traits::get(aliased_surface->second);
|
||||
if (Traits::surface_is_pitch_compatible(aliased_surface->second, pitch))
|
||||
{
|
||||
old_surface = Traits::get(aliased_surface->second);
|
||||
split_surface_region<!depth>(command_list, address, old_surface, (u16)width, (u16)height, bpp, antialias);
|
||||
}
|
||||
|
||||
Traits::notify_surface_invalidated(aliased_surface->second);
|
||||
invalidated_resources.push_back(std::move(aliased_surface->second));
|
||||
|
Loading…
x
Reference in New Issue
Block a user