From 9449b52f36b50676dbf6ec4aa3f9df6e96a0244c Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Sun, 18 Sep 2022 15:28:23 +0100 Subject: [PATCH] Reduce minimum megabuffer alignment to 128 bytes --- app/src/main/cpp/skyline/gpu/buffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/gpu/buffer.h b/app/src/main/cpp/skyline/gpu/buffer.h index e3370c50..3ccb96d3 100644 --- a/app/src/main/cpp/skyline/gpu/buffer.h +++ b/app/src/main/cpp/skyline/gpu/buffer.h @@ -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 megaBufferTable; //!< Table of megabuffer allocations for regions of the buffer