Skip to content

Commit 6acfdd5

Browse files
buffer_cache: Bump usable address space to 40bits
* Fixes crashes in games that use the upper region of user area
1 parent 9e618c0 commit 6acfdd5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/video_core/buffer_cache/buffer_cache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class BufferCache {
4242

4343
struct Traits {
4444
using Entry = BufferId;
45-
static constexpr size_t AddressSpaceBits = 39;
45+
static constexpr size_t AddressSpaceBits = 40;
4646
static constexpr size_t FirstLevelBits = 14;
4747
static constexpr size_t PageBits = CACHING_PAGEBITS;
4848
};

src/video_core/buffer_cache/memory_tracker_base.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace VideoCore {
1414

1515
class MemoryTracker {
1616
public:
17-
static constexpr size_t MAX_CPU_PAGE_BITS = 39;
17+
static constexpr size_t MAX_CPU_PAGE_BITS = 40;
1818
static constexpr size_t HIGHER_PAGE_BITS = 22;
1919
static constexpr size_t HIGHER_PAGE_SIZE = 1ULL << HIGHER_PAGE_BITS;
2020
static constexpr size_t HIGHER_PAGE_MASK = HIGHER_PAGE_SIZE - 1ULL;

0 commit comments

Comments
 (0)