From 6d9225e84ccac63d8a6c753385bf737a89121c8e Mon Sep 17 00:00:00 2001 From: Triang3l Date: Sat, 4 Aug 2018 19:11:46 +0300 Subject: [PATCH] [D3D12] Increase shared memory tile heap size to 16 MB so we don't allocate too many of them --- src/xenia/gpu/d3d12/shared_memory.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/gpu/d3d12/shared_memory.h b/src/xenia/gpu/d3d12/shared_memory.h index 77efd4164..90c735c17 100644 --- a/src/xenia/gpu/d3d12/shared_memory.h +++ b/src/xenia/gpu/d3d12/shared_memory.h @@ -74,8 +74,8 @@ class SharedMemory { // D3D resource tiles are 64 KB in size. static constexpr uint32_t kTileSizeLog2 = 16; static constexpr uint32_t kTileSize = 1 << kTileSizeLog2; - // Heaps are 4 MB, so not too many of them are allocated. - static constexpr uint32_t kHeapSizeLog2 = 22; + // Heaps are 16 MB, so not too many of them are allocated. + static constexpr uint32_t kHeapSizeLog2 = 24; static constexpr uint32_t kHeapSize = 1 << kHeapSizeLog2; // Resident portions of the tiled buffer. ID3D12Heap* heaps_[kBufferSize >> kHeapSizeLog2] = {};