mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-11 18:50:55 +00:00
rsx: Rebase output region when using upload-fallback path
This commit is contained in:
parent
dbc8e70ddd
commit
86ad204636
1 changed files with 6 additions and 0 deletions
|
@ -2620,6 +2620,12 @@ namespace rsx
|
||||||
dst_is_argb8 ? rsx::texture_create_flags::default_component_order :
|
dst_is_argb8 ? rsx::texture_create_flags::default_component_order :
|
||||||
rsx::texture_create_flags::swapped_native_component_order;
|
rsx::texture_create_flags::swapped_native_component_order;
|
||||||
|
|
||||||
|
// Translate dst_area into the 'full' dst block based on dst.rsx_address as (0, 0)
|
||||||
|
dst_area.x1 += dst.offset_x;
|
||||||
|
dst_area.x2 += dst.offset_x;
|
||||||
|
dst_area.y1 += dst.offset_y;
|
||||||
|
dst_area.y2 += dst.offset_y;
|
||||||
|
|
||||||
if (!dst_area.x1 && !dst_area.y1 && dst_area.x2 == dst_dimensions.width && dst_area.y2 == dst_dimensions.height)
|
if (!dst_area.x1 && !dst_area.y1 && dst_area.x2 == dst_dimensions.width && dst_area.y2 == dst_dimensions.height)
|
||||||
{
|
{
|
||||||
cached_dest = create_new_texture(cmd, rsx_range, dst_dimensions.width, dst_dimensions.height, 1, 1, dst.pitch,
|
cached_dest = create_new_texture(cmd, rsx_range, dst_dimensions.width, dst_dimensions.height, 1, 1, dst.pitch,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue