rsx: Validate memory blocks before checking for overlap

This commit is contained in:
kd-11 2020-02-09 16:21:47 +03:00 committed by Ivan
parent 3787108ee7
commit f47333997f

View File

@ -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);
}