aboutsummaryrefslogtreecommitdiff
path: root/graphics/vulkan-tools/files/patch-werror
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/vulkan-tools/files/patch-werror')
-rw-r--r--graphics/vulkan-tools/files/patch-werror30
1 files changed, 0 insertions, 30 deletions
diff --git a/graphics/vulkan-tools/files/patch-werror b/graphics/vulkan-tools/files/patch-werror
index 129e4f155f35..4ec9e9c6c9ca 100644
--- a/graphics/vulkan-tools/files/patch-werror
+++ b/graphics/vulkan-tools/files/patch-werror
@@ -1,36 +1,6 @@
Silence Clang warnings that GCC ignores
-https://github.com/KhronosGroup/Vulkan-Tools/issues/531
https://github.com/KhronosGroup/Vulkan-Tools/issues/532
---- cube/cube.c.orig 2021-06-14 19:02:23 UTC
-+++ cube/cube.c
-@@ -3027,12 +3027,12 @@ static VkResult demo_create_display_surface(struct dem
- VkDisplayPlaneCapabilitiesKHR planeCaps;
- vkGetDisplayPlaneCapabilitiesKHR(demo->gpu, mode_props.displayMode, plane_index, &planeCaps);
- // Find a supported alpha mode
-- VkCompositeAlphaFlagBitsKHR alphaMode = VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR;
-+ VkCompositeAlphaFlagBitsKHR alphaMode = (VkCompositeAlphaFlagBitsKHR)VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR;
- VkCompositeAlphaFlagBitsKHR alphaModes[4] = {
-- VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR,
-- VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR,
-- VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR,
-- VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR,
-+ (VkCompositeAlphaFlagBitsKHR)VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR,
-+ (VkCompositeAlphaFlagBitsKHR)VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR,
-+ (VkCompositeAlphaFlagBitsKHR)VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR,
-+ (VkCompositeAlphaFlagBitsKHR)VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR,
- };
- for (uint32_t i = 0; i < sizeof(alphaModes); i++) {
- if (planeCaps.supportedAlpha & alphaModes[i]) {
-@@ -3050,7 +3050,7 @@ static VkResult demo_create_display_surface(struct dem
- create_info.planeIndex = plane_index;
- create_info.planeStackIndex = plane_props[plane_index].currentStackIndex;
- create_info.transform = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR;
-- create_info.alphaMode = alphaMode;
-+ create_info.alphaMode = (VkDisplayPlaneAlphaFlagBitsKHR)alphaMode;
- create_info.globalAlpha = 1.0f;
- create_info.imageExtent = image_extent;
-
--- cube/cube.cpp.orig 2021-06-14 19:02:23 UTC
+++ cube/cube.cpp
@@ -405,16 +405,6 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM