swapchain: fill ImageCreateInfo from SwapchainCreateInfo 58/74158/1
authordeasung.kim <deasung.kim@samsung.com>
Fri, 10 Jun 2016 05:48:39 +0000 (14:48 +0900)
committerdeasung.kim <deasung.kim@samsung.com>
Mon, 13 Jun 2016 03:32:52 +0000 (12:32 +0900)
Change-Id: I955df19a9428bf99d90eabb2d0663ed641ba9675

src/wsi/swapchain.c

index e777e64..435446f 100644 (file)
@@ -144,13 +144,13 @@ vk_CreateSwapchainKHR(VkDevice                                                     device,
                        info->imageFormat,
                        { info->imageExtent.width, info->imageExtent.height, 0 },
                        1, /* mip level. */
-                       1, /* array layers. */
+                       info->imageArrayLayers,
                        VK_SAMPLE_COUNT_1_BIT,
                        VK_IMAGE_TILING_LINEAR,
-                       VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT,
-                       VK_SHARING_MODE_EXCLUSIVE,
-                       0,
-                       NULL,
+                       info->imageUsage,
+                       info->imageSharingMode,
+                       info->queueFamilyIndexCount,
+                       info->pQueueFamilyIndices,
                        VK_IMAGE_LAYOUT_UNDEFINED,
                };