mesa/src
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
..
amd ci/radv: Add known flakes for #8817 2023-04-20 02:22:41 +00:00
android_stub util/log: improve logger_android 2023-02-22 17:55:40 +00:00
asahi asahi: Add resource debugging 2023-04-07 03:23:04 +00:00
broadcom v3dv/ci: drop fixed failure from fails.txt 2023-04-16 20:49:05 +01:00
c11 c11: Remove _MTX_INITIALIZER_NP for windows 2022-11-09 04:38:28 +00:00
compiler spirv: Add --optimize flag to spirv2nir tool 2023-04-20 00:15:23 +00:00
drm-shim drm-shim: Use hide_drm_device_path() to hide other drm devices 2022-12-30 15:51:11 -08:00
egl egl: inline driver.GetProcAddress() as it's always _glapi_get_proc_address() 2023-04-19 13:57:59 +00:00
etnaviv ci/etnaviv: Polish the gc2000 xfails a bit. 2023-03-29 07:52:45 +00:00
freedreno ci/freedreno: Demote a530 to manual again. 2023-04-20 02:22:41 +00:00
gallium zink: use a perf_debug() macro for debug message logging of copy box warning 2023-04-20 02:52:16 +00:00
gbm gbm: drop unnecessary vulkan dependency 2023-02-23 18:31:22 +00:00
getopt
glx glx: Fix error handling yet again in CreateContextAttribs 2023-04-06 21:29:54 +00:00
gtest
imagination pvr: Handle special built-in variable loading in vertex shader 2023-04-19 17:26:22 +00:00
imgui
intel anv: enable shaderStorageImageReadWithoutFormat on Gfx12.5+ 2023-04-19 06:04:52 +00:00
loader loader: Add Xe KMD support 2023-04-12 10:41:21 +00:00
mapi mesa: Add EXT_instanced_arrays support 2023-04-11 10:22:35 +00:00
mesa nir: don't remove dead IO variables in nir_lower_io_passes for st_link_nir 2023-04-19 21:42:11 +00:00
microsoft dzn: Remove #if D3D12_SDK_VERSION blocks now that 610 is required 2023-04-14 23:59:33 +00:00
nouveau nv50/ir: ignore CL system values 2023-04-14 07:41:54 +00:00
panfrost pan/va: fix typo in IADD_IMM.i32 description 2023-04-18 19:44:48 +03:00
tool pps: Fix build errors. 2023-03-13 01:22:46 +00:00
util util/debug: move null checks out of debug message macro 2023-04-20 02:52:16 +00:00
virtio venus: forward ARM driverVersion for ANGLE workarounds 2023-04-11 03:17:56 +00:00
vulkan vulkan/wsi: fix -Wnarrowing warning 2023-04-20 03:33:51 +00:00
meson.build hgl: remove 2023-02-18 00:44:43 +00:00