clang-format

This commit is contained in:
Lander Gallastegi 2025-06-19 21:43:23 +02:00
parent 71d5d27ab2
commit 6e5961c1b0

View File

@ -211,8 +211,8 @@ struct PageManager::Impl {
const u64 aligned_addr = page << PAGE_BITS;
const u64 aligned_end = page_end << PAGE_BITS;
ASSERT_MSG(rasterizer->IsMapped(aligned_addr, aligned_end - aligned_addr),
"Attempted to track non-GPU memory at address {:#x}, size {:#x}.",
aligned_addr, aligned_end - aligned_addr);
"Attempted to track non-GPU memory at address {:#x}, size {:#x}.", aligned_addr,
aligned_end - aligned_addr);
for (; page != page_end; ++page) {
PageState& state = cached_pages[page];
@ -277,8 +277,7 @@ struct PageManager::Impl {
const bool update = mask.Get(page);
// Apply the change to the page state
const u8 new_count =
update ? state.AddDelta<track ? 1 : -1>() : state.AddDelta<0>();
const u8 new_count = update ? state.AddDelta<track ? 1 : -1>() : state.AddDelta<0>();
if (auto new_perms = state.Perm(); new_perms != perms) [[unlikely]] {
// If the protection changed add pending (un)protect action