This is some preparatory work for vulkan child window and other features which currently live in Proton. I think this could be upstream already, and it will make rebasing patches on top of it simpler. To get vulkan child window upstream we'd probably still need to rework it a bit and maybe try to move the wait and blit to `vkQueuePresent` somehow.
The idea here is also that although Vulkan spec does not allow multiple active swapchains for the same window, Windows tends to allow it especially with D3D, and we also need to support the case where multiple APIs are use to draw onto the same window surface (as we implement D3D on top of GL/Vk for instance).
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/4533
On Tue Nov 28 11:16:55 2023 +0000, Haoyang Chen wrote:
> Hi,this patch introduces new problems in locales where UNICODE is used.
> Because str single byte \0 does not necessarily terminate the string,
> and thus a stack overflow occurs. And I am using a chinese local set.
> I still found it to be -1 in Windows.
I don't understand the comment. Please create a bug so we can move the discussion there.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/4415#note_54074
Hi,this patch introduces new problems in locales where UNICODE is used. Because str single byte \0 does not necessarily terminate the string, and thus a stack overflow occurs. And I am using a chinese local set.
I still found it to be -1 in Windows.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/4415#note_54069
This allows initializing locale from Mac locale identifiers like
'zh-Hans-US'. The current implementation recognizes it as 'zh-US'
which isn't a valid locale identifier for Windows.
This patch will try again with the 'lang-script' identifier after
get_win_locale() fails with the 'lang-region' identifier.
--
v4: ntdll/unix: Try harder to fallback to neutral locales.
ntdll/unix: Support to initialize locale from Mac language identifiers with script name.
ntdll/unix: Use different variable names for Mac locales.
https://gitlab.winehq.org/wine/wine/-/merge_requests/4357