diff --git a/src/nouveau/vulkan/nvk_buffer.c b/src/nouveau/vulkan/nvk_buffer.c index 679b11236e255ea69167ccfed58a4942e4d824a1..fbb2ed75a00ed01b72a90b156ba8063c46d92c9b 100644 --- a/src/nouveau/vulkan/nvk_buffer.c +++ b/src/nouveau/vulkan/nvk_buffer.c @@ -44,10 +44,10 @@ nvk_GetBufferMemoryRequirements2(VkDevice _device, { VK_FROM_HANDLE(nvk_device, device, _device); VK_FROM_HANDLE(nvk_buffer, buffer, pInfo->buffer); - + uint64_t alignment = 4096; pMemoryRequirements->memoryRequirements = (VkMemoryRequirements) { - .size = buffer->vk.size, - .alignment = 4096, + .size = buffer->aligned_size, + .alignment = alignment, .memoryTypeBits = BITFIELD_MASK(device->pdev->mem_type_cnt), };