From 18d9efc93b20645c94f8193dc69affee4de719b8 Mon Sep 17 00:00:00 2001 From: DrChat Date: Mon, 16 Apr 2018 13:02:05 -0500 Subject: [PATCH] [Vulkan] Bump down BufferCache alignment --- src/xenia/gpu/vulkan/buffer_cache.cc | 5 +++-- src/xenia/gpu/vulkan/render_cache.cc | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/xenia/gpu/vulkan/buffer_cache.cc b/src/xenia/gpu/vulkan/buffer_cache.cc index 60a2219d7..23e93e67a 100644 --- a/src/xenia/gpu/vulkan/buffer_cache.cc +++ b/src/xenia/gpu/vulkan/buffer_cache.cc @@ -104,7 +104,7 @@ BufferCache::BufferCache(RegisterFile* register_file, Memory* memory, device_, VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT | VK_BUFFER_USAGE_INDEX_BUFFER_BIT | VK_BUFFER_USAGE_STORAGE_BUFFER_BIT, - capacity, 4096); + capacity, 256); } BufferCache::~BufferCache() { Shutdown(); } @@ -287,7 +287,8 @@ VkResult BufferCache::CreateConstantDescriptorSet() { return VK_SUCCESS; } -void xe::gpu::vulkan::BufferCache::FreeConstantDescriptorSet() { + +void BufferCache::FreeConstantDescriptorSet() { if (constant_descriptor_set_) { vkFreeDescriptorSets(*device_, constant_descriptor_pool_, 1, &constant_descriptor_set_); diff --git a/src/xenia/gpu/vulkan/render_cache.cc b/src/xenia/gpu/vulkan/render_cache.cc index 1991ee2b4..4f9072adb 100644 --- a/src/xenia/gpu/vulkan/render_cache.cc +++ b/src/xenia/gpu/vulkan/render_cache.cc @@ -201,7 +201,7 @@ CachedTileView::CachedTileView(ui::vulkan::VulkanDevice* device, device->DbgSetObjectName( reinterpret_cast(image), VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT, - xe::format_string("%.8X pitch %.8X(%d)", key.tile_offset, key.tile_width, + xe::format_string("RT %.8X %.8X(%d)", key.tile_offset, key.tile_width, key.tile_width)); VkMemoryRequirements memory_requirements;