summaryrefslogtreecommitdiff
path: root/src/video_core/buffer_cache
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/buffer_cache')
-rw-r--r--src/video_core/buffer_cache/buffer_base.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/buffer_cache/buffer_base.h b/src/video_core/buffer_cache/buffer_base.h
index 0c00ae280..a39505903 100644
--- a/src/video_core/buffer_cache/buffer_base.h
+++ b/src/video_core/buffer_cache/buffer_base.h
@@ -476,6 +476,9 @@ private:
476 current_size = 0; 476 current_size = 0;
477 on_going = false; 477 on_going = false;
478 } 478 }
479 if (empty_bits == PAGES_PER_WORD) {
480 break;
481 }
479 page += empty_bits; 482 page += empty_bits;
480 483
481 const int continuous_bits = std::countr_one(word >> page); 484 const int continuous_bits = std::countr_one(word >> page);