Bug 501254 - Pitch black mouse cursor in HDR mode since upgrade to Mesa 25.0.1
Summary: Pitch black mouse cursor in HDR mode since upgrade to Mesa 25.0.1
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.3.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL: https://gitlab.freedesktop.org/mesa/m...
Keywords:
: 501417 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-03-09 09:16 UTC by bugreports61
Modified: 2025-03-13 11:54 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bugreports61 2025-03-09 09:16:56 UTC
SUMMARY
Mouse cursor is pitch black in HDR mode since i upgraded to Mesa 25.0.1 (was needed for my 9070 XT)
This does not happen in SDR mode.
It does not matter which pointer style you choose for the mouse cursor, it is simply pitch black.

STEPS TO REPRODUCE
1.  Use Mesa 25.0.1
2.  Switch from SDR to HDR in Kde
3.  See mouse curosr is pitch black

OBSERVED RESULT
Mouse cursor is pitch black

EXPECTED RESULT
Mouse cursor looks like in SDR Mode

SOFTWARE/OS VERSIONS

Operating System: EndeavourOS 
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.6-273-tkg-eevdf (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 5950X 16-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon Graphics

ADDITIONAL INFORMATION
This makes the mouse cursor very hard to use with dark themes or apps which have a black background.
Tried to capture the pitch black mouse cursor with spectacle, but in the screenshot the mouse cursor has the white surrounding like it does on sdr mode ?!
Comment 1 Zamundaaa 2025-03-10 14:13:28 UTC
Doesn't happen here, on a rx 7900XTX. This is definitely a driver bug, not sure if it's in Mesa or the display driver, but you can report it to Mesa and it'll be moved if necessary: https://gitlab.freedesktop.org/mesa/mesa/-/issues

Until it's fixed, you can work around it by setting https://invent.kde.org/plasma/kwin/-/wikis/Environment-Variables#kwin_force_sw_cursor
Comment 2 bugreports61 2025-03-10 14:56:28 UTC
(In reply to Zamundaaa from comment #1)
> Doesn't happen here, on a rx 7900XTX. This is definitely a driver bug, not
> sure if it's in Mesa or the display driver, but you can report it to Mesa
> and it'll be moved if necessary:
> https://gitlab.freedesktop.org/mesa/mesa/-/issues
> 
> Until it's fixed, you can work around it by setting
> https://invent.kde.org/plasma/kwin/-/wikis/Environment-
> Variables#kwin_force_sw_cursor

Hi,

thx a lot, your mentioned workaround indeed helps. Also in the game menu in Dead Island 2 the mouse cursor is red again now instead of being black. I will open an mesa issue like you proposed.

Br !
Comment 3 Zamundaaa 2025-03-13 11:47:27 UTC
*** Bug 501417 has been marked as a duplicate of this bug. ***