[Vulkan] Bump down BufferCache alignment

This commit is contained in:
DrChat 2018-04-16 13:02:05 -05:00
parent b90465e2e5
commit 18d9efc93b
2 changed files with 4 additions and 3 deletions

View File

@ -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_);

View File

@ -201,7 +201,7 @@ CachedTileView::CachedTileView(ui::vulkan::VulkanDevice* device,
device->DbgSetObjectName(
reinterpret_cast<uint64_t>(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;