Henri Verbeet pushed to branch master at wine / vkd3d
Commits: a595b96f by Elizabeth Figura at 2024-10-28T18:01:06+01:00 vkd3d: Initialize vk_extensions in vk_init_device_caps().
Without LTO, gcc doesn't know that hresult_from_vk_result() will always return a failure HRESULT for a failure VkResult, and so thinks that we might exit from vkd3d_check_device_extensions() with a success HRESULT but without initializing vk_extensions.
- - - - - 5883e010 by Elizabeth Figura at 2024-10-28T18:01:06+01:00 vkd3d-shader/fx: Remove an unnecessary hlsl_is_numeric_type().
Constants can only be numeric.
- - - - - 08253504 by Elizabeth Figura at 2024-10-28T18:01:06+01:00 vkd3d-shader: Make an assert into an explicit check.
For some reason gcc without LTO thinks that component_count can overflow the array here.
- - - - - 3511b540 by Elizabeth Figura at 2024-10-28T18:01:06+01:00 vkd3d-shader/hlsl: Use early return in allocate_register().
Partly to avoid a spurious maybe-uninitialized warning, and partly because it's a more idiomatic structure.
- - - - - 96c13aeb by Elizabeth Figura at 2024-10-28T18:01:06+01:00 tests: Silence a bogus -Wmaybe-uninitialized.
- - - - -
5 changed files:
- libs/vkd3d-shader/fx.c - libs/vkd3d-shader/hlsl_codegen.c - libs/vkd3d-shader/spirv.c - libs/vkd3d/device.c - tests/shader_runner_vulkan.c
View it on GitLab: https://gitlab.winehq.org/wine/vkd3d/-/compare/51888831426d61883324f82aabc7d...