rsx: tiny zcull optimizations

This commit is contained in:
scribam 2018-09-11 23:44:41 +02:00 committed by Ivan
parent cd11ae5d8b
commit 4cb98014a2
2 changed files with 5 additions and 5 deletions

View file

@ -1711,8 +1711,7 @@ work_item& GLGSRender::post_flush_request(u32 address, gl::texture_cache::thrash
{
std::lock_guard lock(queue_guard);
work_queue.emplace_back();
work_item &result = work_queue.back();
work_item &result = work_queue.emplace_back();
result.address_to_flush = address;
result.section_data = std::move(flush_data);
return result;

View file

@ -3201,11 +3201,12 @@ namespace rsx
const auto memory_end = memory_address + memory_range;
u32 sync_address = 0;
for (const auto &writer : m_pending_writes)
for (auto It = m_pending_writes.crbegin(); It != m_pending_writes.crend(); ++It)
{
if (writer.sink >= memory_address && writer.sink < memory_end)
if (It->sink >= memory_address && It->sink < memory_end)
{
sync_address = writer.sink;
sync_address = It->sink;
break;
}
}