mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-27 01:04:16 +01:00
Reduce minimum megabuffer alignment to 128 bytes
This commit is contained in:
parent
b3cf9c40ba
commit
9449b52f36
@ -84,7 +84,7 @@ namespace skyline::gpu {
|
||||
size_t sequenceNumber; //!< Sequence number of when the allocation was made
|
||||
};
|
||||
|
||||
static constexpr int MegaBufferTableShiftMin{std::countr_zero(0x100U)}; //!< The minimum shift for megabuffer table entries, giving an alignment of at least 256 bytes
|
||||
static constexpr int MegaBufferTableShiftMin{std::countr_zero(0x80U)}; //!< The minimum shift for megabuffer table entries, giving an alignment of at least 128 bytes
|
||||
static constexpr size_t MegaBufferTableMaxEntries{0x500U}; //!< Maximum number of entries in the megabuffer table, `megaBufferTableShift` is set based on this and the total buffer size
|
||||
int megaBufferTableShift; //!< Shift to apply to buffer offsets to get their megabuffer table index
|
||||
std::vector<MegaBufferTableEntry> megaBufferTable; //!< Table of megabuffer allocations for regions of the buffer
|
||||
|
Loading…
Reference in New Issue
Block a user