Bug 494907

Summary: Regression in KWin Wayland 6.1.90 showing in RetroArch's vulkan driver
Product: [Plasma] kwin Reporter: Syboxez <syboxez>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: minor CC: xaver.hugl
Priority: NOR    
Version First Reported In: 6.1.90   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Syboxez 2024-10-17 03:59:10 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY


STEPS TO REPRODUCE
1. Install KWin 6.1.90 and login to a Wayland session
2. Start RetroArch with the Vulkan video driver (make sure it's a native install and not the flatpak, as the issue does not occur in the flatpak)
3. Start any game with a black screen

OBSERVED RESULT
Black is RGB hex code 060606 instead of 000000

EXPECTED RESULT
Black should be 000000.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Arch Linux 
KDE Plasma Version: 6.2.1
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0

ADDITIONAL INFORMATION
When using KWin 6.1.5, it works fine, with black appearing as RGB hex code 000000.  It also works fine in KWin's X11 session (version 6.2.1.1). It also works fine in the latest weston, and using RetroArch's OpenGL (both glcore and gl) drivers in the Wayland session.

Other Vulkan applications do not show this issue (tested with PCSX2 and rpcs3)

I have RetroArch installed using the `retroarch-git` AUR package, and I have tried pinning the commit to the latest stable version with the same results, so it is not a RetroArch issue as far as I'm aware.
Comment 1 Zamundaaa 2024-10-17 10:55:35 UTC
Do you have my Vulkan HDR layer installed?
Comment 2 Syboxez 2024-10-17 22:43:36 UTC
(In reply to Zamundaaa from comment #1)
> Do you have my Vulkan HDR layer installed?

Yes. I have vk-hdr-layer-kwin6 installed.
Comment 3 Syboxez 2024-10-17 22:44:04 UTC
Worth noting I have HDR disabled, though.
Comment 4 Syboxez 2024-10-17 22:52:06 UTC
Can confirm that removing the HDR layer fixes the issue. Not sure why the update to KWin changed how that layer works, though.
Comment 5 Zamundaaa 2024-10-23 12:43:00 UTC

*** This bug has been marked as a duplicate of bug 494854 ***