Skip to content

Commit

Permalink
VK_KHR_incremental_present: Fix usage flags.
Browse files Browse the repository at this point in the history
Besides swapchain support we also need
vkGetPhysicalDeviceImageFormatProperties support. Use just the
needed flags instead. As COLOR_ATTACHMENT is required in
VK_KHR_surface, we don't need to check for it.

Affected tests:

dEQP-VK.wsi.*.incremental_present.*

Components: Vulkan
VK-GL-CTS issue: 1395

Change-Id: I4dd0f95da0a8f31c11efe7ce58f12cfbe160a71e
  • Loading branch information
Bas Nieuwenhuizen committed Oct 1, 2018
1 parent e7d9812 commit 858f539
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -966,7 +966,7 @@ std::vector<vk::VkSwapchainCreateInfoKHR> generateSwapchainConfigs (vk::VkSurfac
vk::VkPresentModeKHR presentMode)
{
const deUint32 imageLayers = 1u;
const vk::VkImageUsageFlags imageUsage = properties.supportedUsageFlags;
const vk::VkImageUsageFlags imageUsage = vk::VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT;
const vk::VkBool32 clipped = VK_FALSE;
vector<vk::VkSwapchainCreateInfoKHR> createInfos;

Expand Down

0 comments on commit 858f539

Please sign in to comment.