From f8447c46483ff4c97c0264ae6d89d892b862cf22 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sat, 9 Dec 2017 15:59:21 +0100 Subject: [PATCH] Set correct buffer size. --- gfx/common/vulkan_common.c | 2 +- gfx/common/vulkan_common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/common/vulkan_common.c b/gfx/common/vulkan_common.c index d7f9d2e239..cab3af0bd3 100644 --- a/gfx/common/vulkan_common.c +++ b/gfx/common/vulkan_common.c @@ -987,7 +987,7 @@ struct vk_buffer vulkan_create_buffer( vkAllocateMemory(context->device, &alloc, NULL, &buffer.memory); vkBindBufferMemory(context->device, buffer.buffer, buffer.memory, 0); - buffer.size = alloc.allocationSize; + buffer.size = size; vkMapMemory(context->device, buffer.memory, 0, buffer.size, 0, &buffer.mapped); diff --git a/gfx/common/vulkan_common.h b/gfx/common/vulkan_common.h index 26ade3cd30..732e7173e1 100644 --- a/gfx/common/vulkan_common.h +++ b/gfx/common/vulkan_common.h @@ -22,7 +22,7 @@ #define VULKAN_DESCRIPTOR_MANAGER_BLOCK_SETS 16 #define VULKAN_MAX_DESCRIPTOR_POOL_SIZES 16 -#define VULKAN_BUFFER_BLOCK_SIZE (4 * 1024) +#define VULKAN_BUFFER_BLOCK_SIZE (64 * 1024) #define VULKAN_MAX_SWAPCHAIN_IMAGES 8