mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 18:28:35 +12:00
vk: Remove old useless hack that interferes with memory inheritance
This commit is contained in:
parent
3be4b474d9
commit
d8e45c86e6
1 changed files with 2 additions and 6 deletions
|
@ -155,12 +155,10 @@ namespace rsx
|
||||||
rtt->native_pitch = (u16)width * get_format_block_size_in_bytes(format);
|
rtt->native_pitch = (u16)width * get_format_block_size_in_bytes(format);
|
||||||
rtt->surface_width = (u16)width;
|
rtt->surface_width = (u16)width;
|
||||||
rtt->surface_height = (u16)height;
|
rtt->surface_height = (u16)height;
|
||||||
|
rtt->old_contents = old_surface;
|
||||||
rtt->queue_tag(address);
|
rtt->queue_tag(address);
|
||||||
rtt->dirty = true;
|
rtt->dirty = true;
|
||||||
|
|
||||||
if (old_surface != nullptr && old_surface->info.format == requested_format)
|
|
||||||
rtt->old_contents = old_surface;
|
|
||||||
|
|
||||||
return rtt;
|
return rtt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -201,12 +199,10 @@ namespace rsx
|
||||||
ds->attachment_aspect_flag = range.aspectMask;
|
ds->attachment_aspect_flag = range.aspectMask;
|
||||||
ds->surface_width = (u16)width;
|
ds->surface_width = (u16)width;
|
||||||
ds->surface_height = (u16)height;
|
ds->surface_height = (u16)height;
|
||||||
|
ds->old_contents = old_surface;
|
||||||
ds->queue_tag(address);
|
ds->queue_tag(address);
|
||||||
ds->dirty = true;
|
ds->dirty = true;
|
||||||
|
|
||||||
if (old_surface != nullptr && old_surface->info.format == requested_format)
|
|
||||||
ds->old_contents = old_surface;
|
|
||||||
|
|
||||||
return ds;
|
return ds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue