1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2025-02-01 04:51:49 +01:00

rsx: Always force typeless copy if memory is crossing aspect boundary

This commit is contained in:
kd-11 2020-09-22 00:00:11 +03:00 committed by kd-11
parent cf61198fe3
commit 7ed82c0791

View File

@ -2807,15 +2807,20 @@ namespace rsx
if (helpers::is_gcm_depth_format(typeless_info.src_gcm_format) !=
helpers::is_gcm_depth_format(typeless_info.dst_gcm_format))
{
if (!typeless_info.src_is_typeless && !typeless_info.dst_is_typeless)
// Make the depth side typeless because the other side is guaranteed to be color
if (helpers::is_gcm_depth_format(typeless_info.src_gcm_format))
{
// Make the depth side typeless
if (helpers::is_gcm_depth_format(typeless_info.src_gcm_format))
// SRC is depth, transfer must be done typelessly
if (!typeless_info.src_is_typeless)
{
typeless_info.src_is_typeless = true;
typeless_info.src_gcm_format = helpers::get_sized_blit_format(src_is_argb8, false, false);
}
else
}
else
{
// DST is depth, transfer must be done typelessly
if (!typeless_info.dst_is_typeless)
{
typeless_info.dst_is_typeless = true;
typeless_info.dst_gcm_format = helpers::get_sized_blit_format(dst_is_argb8, false, false);