mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-10-12 02:09:17 +00:00
rsx/zcull: Fix find_query behavior
- Use umax instead of 0 to mean not-found.
This commit is contained in:
@@ -755,11 +755,11 @@ namespace rsx
|
||||
query_search_result ZCULL_control::find_query(vm::addr_t sink_address, bool all)
|
||||
{
|
||||
query_search_result result{};
|
||||
u32 stat_id = 0;
|
||||
u32 stat_id = umax;
|
||||
|
||||
for (auto It = m_pending_writes.crbegin(); It != m_pending_writes.crend(); ++It)
|
||||
{
|
||||
if (stat_id) [[unlikely]]
|
||||
if (stat_id != umax) [[unlikely]]
|
||||
{
|
||||
if (It->counter_tag != stat_id)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user