I encountered a case where a game provides an empty fragment shader, one that disassembles to just:
```
ps_5_0
dcl_globalFlags refactoringAllowed
```
which gets translated to:
```
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main"
OpExecutionMode %main OriginUpperLeft
OpName %main "main"
%void = OpTypeVoid
%3 = OpTypeFunction %void
%main = OpFunction %void None %3
%4 = OpLabel
OpFunctionEnd
```
This patch is to detect that the OpLabel has not been terminated by a corresponding top-level return, and add it.
--
v2: vkd3d-shader: Ensure that the OpLabel emitted vkd3d_spirv_builder_begin_main_function() gets terminated.
https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/212
I encountered a case where a game provides an empty fragment shader, one that disassembles to just:
```
ps_5_0
dcl_globalFlags refactoringAllowed
```
which gets translated to:
```
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main"
OpExecutionMode %main OriginUpperLeft
OpName %main "main"
%void = OpTypeVoid
%3 = OpTypeFunction %void
%main = OpFunction %void None %3
%4 = OpLabel
OpFunctionEnd
```
This patch is to detect that the OpLabel has not been terminated by a corresponding top-level return, and add it.
--
https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/212
This fixes some upside-down videos in Secret of Mana. The game plays a NV12 video using MF session and EVR, then calls GetCurrentImage to get the frame RGB data and display it itself.
--
v2: evr: Respect RGB format stride in GetCurrentImage.
evr/tests: Test IMFVideoDisplayControl_GetCurrentImage orientation.
https://gitlab.winehq.org/wine/wine/-/merge_requests/2883
> There is noting abort wine. But on wine-ce, Every thread should manages life by self. Because there are two types of threads: Native thread and Emulate thread. a thread can't manage other threads which are different type.
That sounds like the wrong approach. I'm not quite sure why you are doing it that way, but it's not something we'd want to do it in upstream Wine.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/2814#note_33905