If `<arch>_CFLAGS`/`<arch>_LDFLAGS` are passed to configure they are ignored and replaced with the default flags. This prefers the user-provided flags if any, and falls back to `CROSSCFLAGS` / `CROSSLDLAGS` then to the default flags.
--
v2: configure: Use per-architecture cross flags if they are provided.
https://gitlab.winehq.org/wine/wine/-/merge_requests/7139
On Sun Jan 12 20:25:27 2025 +0000, Nikolay Sivov wrote:
> Do we need this intersection check at all?
I believe we do. The code in `media_engine_transfer_d3d11` performs a `CopySubresourceRegion` directly to the application supplied texture, which only supports copy; it doesn't support any stretch. So `media_engine_transfer_d3d11` is used as an optimisation for when the application supplied texture has the same (or larger) dimensions as the output sample from the MF pipeline.
This check ensures we fallback when stretching is required. The fallback writes to a media engine supplied texture, that is then applied to a quad that can be stretched (before being written to the application texture).
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/7124#note_91816
For example, when GPU 1 has adapter 1 and GPU 2 has adapter 2, without this fix, the `adapter`
variable in the for loop is always zero when forming GDI display names \\.\DISPLAY* because these
two adapters are on different GPUs. Thus "\\.\DISPLAY1" is incorrectly passed to xrandr14_get_id()
for the second adapter and eventually gets the wrong current display mode for the second adapter.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57610
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/7136
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57610
This is a simple workaround to fix the regression. The issue seems to be residing in inconsistent values returned by XRandR, and arguably a host driver bug, but it probably could be better fixed by enumerating the XRandR tree only on startup and when it is updated, but this would be a much larger change.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/7126
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57610
This attempt to fix a regression which is caused by XRandR enumerated output/crtc changing during the display device initial enumeration.
The user setup uses an external display and somehow XRandR enumerates the first (non-primary) monitor and its mode without being able to find a primary output/crtc (and uses that first monitor position as primary as fallback). Then, when the second (primary) monitor and its modes are enumerated it actually finds it and uses its as it should. This results in both monitor modes being positioned at 0x0, which breaks various things later on.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/7110