Skip to content

Commit

Permalink
Nicer variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
kd-11 committed Jun 16, 2023
1 parent 06459eb commit d5654d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rpcs3/Emu/RSX/VK/VKGSRender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2915,11 +2915,11 @@ void VKGSRender::begin_conditional_rendering(const std::vector<rsx::reports::occ

// Range latching. Because of how the query pool manages allocations using a stack, we get an inverse sequential set of handles/indices that we can easily group together.
// This drastically boosts performance on some drivers like the NVIDIA proprietary one that seems to have a rather high cost for every individual query transer command.
std::pair<u32, u32> query_range = { umax, 0 };
struct { u32 first, last; } query_range = { umax, 0 };

auto copy_query_range_impl = [&]()
{
const auto count = (query_range.second - query_range.first + 1);
const auto count = (query_range.last - query_range.first + 1);
m_occlusion_query_manager->get_query_result_indirect(*m_current_command_buffer, query_range.first, count, scratch->value, dst_offset);
dst_offset += count * 4;
};
Expand All @@ -2944,9 +2944,9 @@ void VKGSRender::begin_conditional_rendering(const std::vector<rsx::reports::occ
}

// Tail?
if ((query_range.second + 1) == index)
if ((query_range.last + 1) == index)
{
query_range.second = index;
query_range.last = index;
continue;
}

Expand Down

0 comments on commit d5654d6

Please sign in to comment.