mesa/src/vulkan/wsi
Michel Zou d5871d21a5 vulkan/wsi: fix -Wnarrowing warning
else I get this output:

[11/600] Compiling C++ object src/vulkan/wsi/libvulkan_wsi.a.p/wsi_common_win32.cpp.obj
../src/vulkan/wsi/wsi_common_win32.cpp: In function 'VkResult wsi_win32_surface_create_swapchain_dxgi(wsi_win32_surface*, VkDevice, wsi_win32*, const VkSwapchainCreateInfoKHR*, wsi_win32_swapchain*)':
../src/vulkan/wsi/wsi_common_win32.cpp:757:65: warning: narrowing conversion of '((((int)chain->wsi_win32_swapchain::base.wsi_swapchain::present_mode) == ((int)VK_PRESENT_MODE_IMMEDIATE_KHR)) ? ((int)DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING) : 0)' from 'int' to 'UINT' {aka 'unsigned int'} [-Wnarrowing]
  757 |       chain->base.present_mode == VK_PRESENT_MODE_IMMEDIATE_KHR ?
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
  758 |          DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING : 0
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

fixes: d7730fcf22

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22475>
2023-04-20 03:33:51 +00:00
..
meson.build vulkan/wsi: Fix Windows build 2023-03-16 16:07:14 +00:00
wsi_common.c vulkan/wsi: Fix Windows build 2023-03-16 16:07:14 +00:00
wsi_common.h vk/util: Generate defines to help casting structs with vk_find_struct 2023-03-24 15:49:25 +00:00
wsi_common_display.c vulkan/wsi/display: set pDisplay to NULL on error 2023-04-05 06:21:26 +00:00
wsi_common_display.h vulkan/wsi/display: Wrap wsi_display_fence in a vk_sync 2021-11-16 10:54:27 -06:00
wsi_common_drm.c vulkan/wsi: Use the newly imported dma-buf.h 2023-01-11 22:33:40 +00:00
wsi_common_drm.h vk/wsi: C++-proof wsi_common_drm.h 2023-03-24 15:49:25 +00:00
wsi_common_headless.c vulkan/wsi: add a headless swapchain implementation/option 2023-03-14 14:03:31 +00:00
wsi_common_private.h vulkan/wsi: add a headless swapchain implementation/option 2023-03-14 14:03:31 +00:00
wsi_common_queue.h util/vector: make util_vector_init harder to misuse 2021-10-08 00:15:11 +00:00
wsi_common_wayland.c vulkan/wsi: fix crash in failed swapchain creation for wayland 2023-03-08 17:33:00 +00:00
wsi_common_win32.cpp vulkan/wsi: fix -Wnarrowing warning 2023-04-20 03:33:51 +00:00
wsi_common_x11.c wsi: remove get_sorted_vk_formats duplication 2023-04-12 22:07:32 +00:00