mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 09:48:37 +12:00
rsx: Fixup - undo vertex cache 'improvements'
This commit is contained in:
parent
5b6e1420f3
commit
f1c3b46d60
1 changed files with 2 additions and 29 deletions
|
@ -884,38 +884,11 @@ namespace rsx
|
||||||
|
|
||||||
for (auto &v : vertex_ranges[local_addr])
|
for (auto &v : vertex_ranges[local_addr])
|
||||||
{
|
{
|
||||||
if (v.buffer_format == fmt && v.data_length >= data_length)
|
// NOTE: This has to match exactly. Using sized shortcuts such as >= comparison causes artifacting in some applications (UC1)
|
||||||
|
if (v.buffer_format == fmt && v.data_length == data_length)
|
||||||
return &v;
|
return &v;
|
||||||
}
|
}
|
||||||
#if 0
|
|
||||||
for (const auto &range : vertex_ranges)
|
|
||||||
{
|
|
||||||
if (range.first > local_addr)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
for (const auto &v : range.second)
|
|
||||||
{
|
|
||||||
if (v.buffer_format == fmt)
|
|
||||||
{
|
|
||||||
const auto entry_end = v.local_address + v.data_length;
|
|
||||||
if (data_end <= entry_end)
|
|
||||||
{
|
|
||||||
const u32 offset = (local_addr - v.local_address);
|
|
||||||
if (offset % 16)
|
|
||||||
continue; // TexelBuffer alignment rules
|
|
||||||
|
|
||||||
storage_type e = v;
|
|
||||||
e.data_length = data_length;
|
|
||||||
e.local_address = local_addr;
|
|
||||||
e.offset_in_heap += offset;
|
|
||||||
|
|
||||||
auto& ret = vertex_ranges[local_addr].emplace_back(e);
|
|
||||||
return &ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue