mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-09 09:39:44 +00:00
rsx: Fix invalid format checks for DMA sections which are typeless
This commit is contained in:
parent
2152a77005
commit
41c3180276
1 changed files with 27 additions and 24 deletions
|
@ -2247,8 +2247,10 @@ namespace rsx
|
|||
dst_area = old_dst_area;
|
||||
}
|
||||
|
||||
const bool format_check = (src_is_render_target || is_format_convert);
|
||||
if (!use_null_region && cached_dest && format_check)
|
||||
if (cached_dest && cached_dest->get_context() != texture_upload_context::dma)
|
||||
{
|
||||
// NOTE: DMA sections are plain memory blocks with no format!
|
||||
if (src_is_render_target || is_format_convert)
|
||||
{
|
||||
bool src_is_depth;
|
||||
if (is_format_convert)
|
||||
|
@ -2279,6 +2281,7 @@ namespace rsx
|
|||
dst_is_depth_surface = cached_dest->is_depth_texture();
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Destination dimensions are relaxed (true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue