From: Chris Forbes Date: Thu, 6 Oct 2016 00:00:07 +0000 (+1300) Subject: tests: Set surface and usage for swapchain creation X-Git-Tag: accepted/tizen/3.0.m2/mobile/20170105.023708~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4fdc3fdf200359c77fba589502c0039bfb031216;p=platform%2Fupstream%2FVulkan-LoaderAndValidationLayers.git tests: Set surface and usage for swapchain creation Signed-off-by: Chris Forbes --- diff --git a/tests/layer_validation_tests.cpp b/tests/layer_validation_tests.cpp index e37bc02..ac4ea46 100644 --- a/tests/layer_validation_tests.cpp +++ b/tests/layer_validation_tests.cpp @@ -2464,6 +2464,8 @@ TEST_F(VkWsiEnabledLayerTest, TestEnabledWsi) { swapchain_create_info.sType = VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR; swapchain_create_info.pNext = NULL; swapchain_create_info.flags = 0; + swapchain_create_info.imageUsage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT; + swapchain_create_info.surface = surface; m_errorMonitor->SetDesiredFailureMsg(VK_DEBUG_REPORT_ERROR_BIT_EXT, "called before calling vkGetPhysicalDeviceSurfaceCapabilitiesKHR()."); err = vkCreateSwapchainKHR(m_device->device(), &swapchain_create_info, NULL, &swapchain);