mirror of https://github.com/RPCS3/rpcs3.git
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:
parent
9d8c9c2460
commit
f82ce06fdc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue