summaryrefslogtreecommitdiffstats
path: root/src/common/address_space.h
diff options
context:
space:
mode:
authorLevi Behunin <l3ehunin@gmail.com>2023-01-29 21:54:13 +0100
committerBehunin <l3ehunin@gmail.com>2023-01-30 01:49:42 +0100
commitd5fc56db4bdebcf4f45e39e9c9d0f40229de8cea (patch)
tree4bbcaee76bde35ddc6eff9a1c639866cf278b353 /src/common/address_space.h
parentMerge pull request #9699 from ameerj/texture-pass-desc (diff)
downloadyuzu-d5fc56db4bdebcf4f45e39e9c9d0f40229de8cea.tar
yuzu-d5fc56db4bdebcf4f45e39e9c9d0f40229de8cea.tar.gz
yuzu-d5fc56db4bdebcf4f45e39e9c9d0f40229de8cea.tar.bz2
yuzu-d5fc56db4bdebcf4f45e39e9c9d0f40229de8cea.tar.lz
yuzu-d5fc56db4bdebcf4f45e39e9c9d0f40229de8cea.tar.xz
yuzu-d5fc56db4bdebcf4f45e39e9c9d0f40229de8cea.tar.zst
yuzu-d5fc56db4bdebcf4f45e39e9c9d0f40229de8cea.zip
Diffstat (limited to '')
-rw-r--r--src/common/address_space.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/common/address_space.h b/src/common/address_space.h
index 9222b2fdc..8683c23c3 100644
--- a/src/common/address_space.h
+++ b/src/common/address_space.h
@@ -12,7 +12,8 @@
namespace Common {
template <typename VaType, size_t AddressSpaceBits>
-concept AddressSpaceValid = std::is_unsigned_v<VaType> && sizeof(VaType) * 8 >= AddressSpaceBits;
+concept AddressSpaceValid = std::is_unsigned_v<VaType> && sizeof(VaType) * 8 >=
+AddressSpaceBits;
struct EmptyStruct {};
@@ -21,7 +22,7 @@ struct EmptyStruct {};
*/
template <typename VaType, VaType UnmappedVa, typename PaType, PaType UnmappedPa,
bool PaContigSplit, size_t AddressSpaceBits, typename ExtraBlockInfo = EmptyStruct>
-requires AddressSpaceValid<VaType, AddressSpaceBits>
+ requires AddressSpaceValid<VaType, AddressSpaceBits>
class FlatAddressSpaceMap {
public:
/// The maximum VA that this AS can technically reach
@@ -109,7 +110,7 @@ private:
* initial, fast linear pass and a subsequent slower pass that iterates until it finds a free block
*/
template <typename VaType, VaType UnmappedVa, size_t AddressSpaceBits>
-requires AddressSpaceValid<VaType, AddressSpaceBits>
+ requires AddressSpaceValid<VaType, AddressSpaceBits>
class FlatAllocator
: public FlatAddressSpaceMap<VaType, UnmappedVa, bool, false, false, AddressSpaceBits> {
private: