buffer_cache: Bump usable address space to 40bits

* Fixes crashes in games that use the upper region of user area
This commit is contained in:
IndecisiveTurtle 2024-12-06 20:00:21 +02:00
parent 43d5d22500
commit a328dcf459
2 changed files with 2 additions and 2 deletions

View file

@ -42,7 +42,7 @@ public:
struct Traits {
using Entry = BufferId;
static constexpr size_t AddressSpaceBits = 39;
static constexpr size_t AddressSpaceBits = 40;
static constexpr size_t FirstLevelBits = 14;
static constexpr size_t PageBits = CACHING_PAGEBITS;
};

View file

@ -14,7 +14,7 @@ namespace VideoCore {
class MemoryTracker {
public:
static constexpr size_t MAX_CPU_PAGE_BITS = 39;
static constexpr size_t MAX_CPU_PAGE_BITS = 40;
static constexpr size_t HIGHER_PAGE_BITS = 22;
static constexpr size_t HIGHER_PAGE_SIZE = 1ULL << HIGHER_PAGE_BITS;
static constexpr size_t HIGHER_PAGE_MASK = HIGHER_PAGE_SIZE - 1ULL;