dx12/vk/gl: implement use of vertex_data_base_index when calculating index

This commit is contained in:
Jake 2018-03-29 00:42:44 -05:00 committed by kd-11
parent 3e863f2189
commit 6d6d6fa827
7 changed files with 37 additions and 26 deletions

View file

@ -89,13 +89,6 @@ namespace rsx
}
}
// The rsx internally adds the 'data_base_offset' and the 'vert_offset' and masks it
// before actually attempting to translate to the internal address. Seen happening heavily in R&C games
u32 get_vertex_offset_from_base(u32 vert_data_base_offset, u32 vert_base_offset)
{
return ((u64)vert_data_base_offset + vert_base_offset) & 0xFFFFFFF;
}
u32 get_vertex_type_size_on_host(vertex_base_type type, u32 size)
{
switch (type)