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