mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
rsx: Validate memory blocks before checking for overlap
This commit is contained in:
parent
3787108ee7
commit
f47333997f
@ -898,12 +898,14 @@ namespace rsx
|
||||
|
||||
// Range test helper to quickly discard blocks
|
||||
// Fortunately, render targets tend to be clustered anyway
|
||||
if (test_range.overlaps(m_render_targets_memory_range))
|
||||
if (m_render_targets_memory_range.valid() &&
|
||||
test_range.overlaps(m_render_targets_memory_range))
|
||||
{
|
||||
process_list_function(m_render_targets_storage, false);
|
||||
}
|
||||
|
||||
if (test_range.overlaps(m_depth_stencil_memory_range))
|
||||
if (m_depth_stencil_memory_range.valid() &&
|
||||
test_range.overlaps(m_depth_stencil_memory_range))
|
||||
{
|
||||
process_list_function(m_depth_stencil_storage, true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user