Fix typo in buffered_section::overlaps_page

If "address" is not page-aligned, the calculated end address for the
corresponding page is incorrect which can lead to false positives,
causing some textures to be re-uploaded unnecessarily.

This commit fixes this typo.
This commit is contained in:
Rui Pinheiro 2018-08-11 22:46:54 +01:00 committed by kd-11
parent 9d8c9c2460
commit f82ce06fdc
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ namespace rsx
std::tuple<bool, std::pair<u32, u32>> overlaps_page(const std::pair<u32, u32>& old_range, u32 address, overlap_test_bounds bounds) const
{
const u32 page_base = address & ~4095;
const u32 page_limit = address + 4096;
const u32 page_limit = page_base + 4096;
const u32 compare_min = std::min(old_range.first, page_base);
const u32 compare_max = std::max(old_range.second, page_limit);