mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
rsx: Fixup calculate_required_range
This commit is contained in:
parent
2022098b13
commit
e2d4d400ff
4 changed files with 51 additions and 11 deletions
|
|
@ -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())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue