Skip to content

Commit

Permalink
buffer_cache: Revert some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelthegreat authored Jan 2, 2025
1 parent ca5bfd8 commit bbe29fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video_core/buffer_cache/buffer_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ bool BufferCache::IsRegionRegistered(VAddr addr, size_t size) {
const VAddr end_addr = addr + size;
const u64 page_end = Common::DivCeil(end_addr, CACHING_PAGESIZE);
for (u64 page = addr >> CACHING_PAGEBITS; page < page_end;) {
const BufferId* buffer_id = page_table.find(page);
if (!buffer_id || !*buffer_id) {
const BufferId buffer_id = page_table[page];
if (!buffer_id) {
++page;
continue;
}
Expand Down

0 comments on commit bbe29fa

Please sign in to comment.