https://bugs.winehq.org/show_bug.cgi?id=56866
Bug ID: 56866 Summary: Change of the brightness via "SetGammaRamp" function also changes the brightness globally (under X11) Product: Wine Version: 9.11 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: d3d Assignee: wine-bugs@winehq.org Reporter: kle@bluewin.ch Distribution: ---
Hi all
This bug report is an "offspring" of Mesa bug 11359. https://gitlab.freedesktop.org/mesa/mesa/-/issues/11359
It was confirmed that an in-game change of the brightness in the game "Indiana Jones and the Emperor's Tomb" also changes the brightness of the Desktop UI, in my case KDE Plasma.
So instead of changing only the brightness within the game it is changed globally. I can confirm this problem for Mesa 24.2 devel and the r600 driver.
An apitrace which reproduces the problem can be downloaded from here:
https://drive.google.com/file/d/1ToA5y43olMc0uKq0C8TXnpJd4nnTmKf2/view?usp=s...
Note, the same behavior is also present with Gallium Nine. As of the end of June 2024 that brightness change bug cannot be reproduced on radeonsi, crocus and most likely also the iris driver. On those the function seems entirely broken so a change to the brightness simply has no effect, not in-game and also not outside of it.
More information including a deeper technical analysis can be found Mesa bug 11359.
https://bugs.winehq.org/show_bug.cgi?id=56866
C. Leu kle@bluewin.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Ubuntu
https://bugs.winehq.org/show_bug.cgi?id=56866
mirh mirh@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mirh@protonmail.ch
--- Comment #1 from mirh mirh@protonmail.ch --- Changing it globally sounds pretty much the expected behavior.. if just so it wasn't that all the times this happened to me in Windows (IIRC including also windowed applications) it's not like I knew whether they were using d3d or just GDI.
https://web.archive.org/web/20010504033734/http://msdn.microsoft.com/library... https://web.archive.org/web/20040613112108/http://msdn.microsoft.com/archive... So you might have a point after all
Though are you sure about those driver differences? That is, that you aren't just testing different computers, that just so happens to be running wayland instead of X11.
https://bugs.winehq.org/show_bug.cgi?id=56866
--- Comment #2 from C. Leu kle@bluewin.ch --- Yes, indeed I can confirm that this topic is not Mesa driver related.
The "SetGammaRamp" function is changing the brightness under X11 globally most likely on any Mesa driver.
However, when Xwayland is used then a change to the brightness shows no effect. This is true also for the r600 Mesa driver. More information about that issue can be found in Xserver-bug report 1117:
https://gitlab.freedesktop.org/xorg/xserver/-/issues/1117