rsx: Fixup calculate_required_range

This commit is contained in:
Eladash 2023-08-22 11:13:13 +03:00 committed by Elad Ashkenazi
parent 2022098b13
commit e2d4d400ff
4 changed files with 51 additions and 11 deletions

View file

@ -514,10 +514,19 @@ void GLGSRender::emit_geometry(u32 sub_index)
// Rebase vertex bases instead of
for (auto& info : m_vertex_layout.interleaved_blocks)
{
info->vertex_range.second = 0;
const auto vertex_base_offset = rsx::method_registers.vertex_data_base_offset();
info->real_offset_address = rsx::get_address(rsx::get_vertex_offset_from_base(vertex_base_offset, info->base_offset), info->memory_location);
}
}
else
{
// Discard cached results
for (auto& info : m_vertex_layout.interleaved_blocks)
{
info->vertex_range.second = 0;
}
}
if (vertex_state && !m_vertex_layout.validate())
{