[Vulkan] Bump down BufferCache alignment
This commit is contained in:
parent
b90465e2e5
commit
18d9efc93b
|
@ -104,7 +104,7 @@ BufferCache::BufferCache(RegisterFile* register_file, Memory* memory,
|
||||||
device_,
|
device_,
|
||||||
VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT | VK_BUFFER_USAGE_INDEX_BUFFER_BIT |
|
VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT | VK_BUFFER_USAGE_INDEX_BUFFER_BIT |
|
||||||
VK_BUFFER_USAGE_STORAGE_BUFFER_BIT,
|
VK_BUFFER_USAGE_STORAGE_BUFFER_BIT,
|
||||||
capacity, 4096);
|
capacity, 256);
|
||||||
}
|
}
|
||||||
|
|
||||||
BufferCache::~BufferCache() { Shutdown(); }
|
BufferCache::~BufferCache() { Shutdown(); }
|
||||||
|
@ -287,7 +287,8 @@ VkResult BufferCache::CreateConstantDescriptorSet() {
|
||||||
|
|
||||||
return VK_SUCCESS;
|
return VK_SUCCESS;
|
||||||
}
|
}
|
||||||
void xe::gpu::vulkan::BufferCache::FreeConstantDescriptorSet() {
|
|
||||||
|
void BufferCache::FreeConstantDescriptorSet() {
|
||||||
if (constant_descriptor_set_) {
|
if (constant_descriptor_set_) {
|
||||||
vkFreeDescriptorSets(*device_, constant_descriptor_pool_, 1,
|
vkFreeDescriptorSets(*device_, constant_descriptor_pool_, 1,
|
||||||
&constant_descriptor_set_);
|
&constant_descriptor_set_);
|
||||||
|
|
|
@ -201,7 +201,7 @@ CachedTileView::CachedTileView(ui::vulkan::VulkanDevice* device,
|
||||||
|
|
||||||
device->DbgSetObjectName(
|
device->DbgSetObjectName(
|
||||||
reinterpret_cast<uint64_t>(image), VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT,
|
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));
|
key.tile_width));
|
||||||
|
|
||||||
VkMemoryRequirements memory_requirements;
|
VkMemoryRequirements memory_requirements;
|
||||||
|
|
Loading…
Reference in New Issue