From 5b6b77b8dceac346b4d279b8e5c0d8eebec2f0e8 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Wed, 27 Sep 2017 00:24:03 +0200 Subject: vo_gpu: vulkan: normalize use of *Flags and *FlagBits FlagBits is just the name of the enum. The actual data type representing a combination of these flags follows the *Flags convention. (The relevant difference is that the latter is defined to be uint32_t instead of left implicit) For consistency, use *Flags everywhere instead of randomly switching between *Flags and *FlagBits. Also fix a wrong type name on `stageFlags`, pointed out by @atomnuker --- video/out/vulkan/context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video/out/vulkan/context.c') diff --git a/video/out/vulkan/context.c b/video/out/vulkan/context.c index d2445fbda7..c2cc2d5081 100644 --- a/video/out/vulkan/context.c +++ b/video/out/vulkan/context.c @@ -148,7 +148,7 @@ static bool update_swapchain_info(struct priv *p, VK(vkGetPhysicalDeviceSurfaceCapabilitiesKHR(vk->physd, vk->surf, &caps)); // Sorted by preference - static const VkCompositeAlphaFlagBitsKHR alphaModes[] = { + static const VkCompositeAlphaFlagsKHR alphaModes[] = { VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR, VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR, }; @@ -166,7 +166,7 @@ static bool update_swapchain_info(struct priv *p, goto error; } - static const VkSurfaceTransformFlagBitsKHR rotModes[] = { + static const VkSurfaceTransformFlagsKHR rotModes[] = { VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR, VK_SURFACE_TRANSFORM_INHERIT_BIT_KHR, }; -- cgit v1.2.3