summaryrefslogtreecommitdiffstats
path: root/src/core/device_memory_manager.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2024-01-07 04:50:06 +0100
committerLiam <byteslice@airmail.cc>2024-01-19 03:12:30 +0100
commit067284733075fb0604dbcdc6238d23cfa27c5355 (patch)
tree3f554af90fd6e120b156f037485641c620829a46 /src/core/device_memory_manager.h
parentSMMU: Fix 8Gb layout. (diff)
downloadyuzu-067284733075fb0604dbcdc6238d23cfa27c5355.tar
yuzu-067284733075fb0604dbcdc6238d23cfa27c5355.tar.gz
yuzu-067284733075fb0604dbcdc6238d23cfa27c5355.tar.bz2
yuzu-067284733075fb0604dbcdc6238d23cfa27c5355.tar.lz
yuzu-067284733075fb0604dbcdc6238d23cfa27c5355.tar.xz
yuzu-067284733075fb0604dbcdc6238d23cfa27c5355.tar.zst
yuzu-067284733075fb0604dbcdc6238d23cfa27c5355.zip
Diffstat (limited to 'src/core/device_memory_manager.h')
-rw-r--r--src/core/device_memory_manager.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/device_memory_manager.h b/src/core/device_memory_manager.h
index f9cb13a7a..cc9fd023f 100644
--- a/src/core/device_memory_manager.h
+++ b/src/core/device_memory_manager.h
@@ -62,13 +62,13 @@ public:
DAddr subbits = static_cast<DAddr>(address & page_mask);
const u32 base = compressed_device_addr[(address >> page_bits)];
if ((base >> MULTI_FLAG_BITS) == 0) [[likely]] {
- const DAddr d_address = static_cast<DAddr>(base << page_bits) + subbits;
+ const DAddr d_address = (static_cast<DAddr>(base) << page_bits) + subbits;
operation(d_address);
return;
}
InnerGatherDeviceAddresses(buffer, address);
for (u32 value : buffer) {
- operation(static_cast<DAddr>(value << page_bits) + subbits);
+ operation((static_cast<DAddr>(value) << page_bits) + subbits);
}
}