diff --git a/src/gallium/drivers/zink/zink_bo.c b/src/gallium/drivers/zink/zink_bo.c index e673efefb3e..6a554ec91f2 100644 --- a/src/gallium/drivers/zink/zink_bo.c +++ b/src/gallium/drivers/zink/zink_bo.c @@ -263,7 +263,7 @@ bo_create_internal(struct zink_screen *screen, mai.memoryTypeIndex = screen->heap_map[heap]; if (screen->info.mem_props.memoryTypes[mai.memoryTypeIndex].propertyFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT) { alignment = MAX2(alignment, screen->info.props.limits.minMemoryMapAlignment); - mai.allocationSize = align(mai.allocationSize, screen->info.props.limits.minMemoryMapAlignment); + mai.allocationSize = align64(mai.allocationSize, screen->info.props.limits.minMemoryMapAlignment); } VkResult ret = VKSCR(AllocateMemory)(screen->dev, &mai, NULL, &bo->mem); if (!zink_screen_handle_vkresult(screen, ret))