Summary: | Weird colors on external display connected to nvidia dGPU after 6bd07ad6b30e34f43652934630d30234ad65ac7c | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | fanzhuyifan |
Component: | platform-drm | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kde, kdedev, nate, xaver.hugl |
Priority: | NOR | Keywords: | regression |
Version First Reported In: | git master | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/-/commit/fe5db7f97d25362c3fe63cfa07c183e666536455 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: |
old behavior (good)
new behavior (bad) On external display white background is darker than mouse On internal display white background is the same color as cursor |
Description
fanzhuyifan
2024-08-12 17:13:47 UTC
Created attachment 172550 [details]
old behavior (good)
Created attachment 172551 [details]
new behavior (bad)
Does it work correctly again if you comment out the code about post blending pipelines here? https://invent.kde.org/plasma/kwin/-/blob/cfc0f05c942eec50d4596d5531b183356e504784/src/backends/drm/drm_crtc.cpp#L52 (In reply to Zamundaaa from comment #3) > Does it work correctly again if you comment out the code about post blending > pipelines here? > https://invent.kde.org/plasma/kwin/-/blob/ > cfc0f05c942eec50d4596d5531b183356e504784/src/backends/drm/drm_crtc.cpp#L52 That fixes the issues with fonts appearing bold. But the colors still seem a bit off -- white appears as grey instead of white. That is particularly noticeable if I put the cursor on white background -- there is color difference on the external monitor, but no color difference on the internal display. I will check if https://invent.kde.org/plasma/kwin/-/merge_requests/6221 fixes the later issue. I still get these in my logs though: Aug 12 12:04:27 arch kwin_wayland[29246]: kwin_scene_opengl: 0x500: GL_INVALID_ENUM error generated. Invalid <face>. Aug 12 12:04:27 arch kwin_wayland[29246]: kwin_scene_opengl: Invalid framebuffer status: "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT" Aug 12 12:04:27 arch kwin_wayland[29246]: kwin_scene_opengl: 0x502: GL_INVALID_OPERATION error generated. <image> and <target> are incompatible Aug 12 12:04:27 arch kwin_wayland[29246]: kwin_scene_opengl: Invalid framebuffer status: "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT" Aug 12 12:04:27 arch kwin_wayland[29246]: kwin_wayland_drm: Failed to create framebuffer: Invalid argument Aug 12 12:04:27 arch kwin_wayland[29246]: kwin_wayland_drm: Failed to create framebuffer: Invalid argument Created attachment 172559 [details] On external display white background is darker than mouse The grayer colors are not fixed by https://invent.kde.org/plasma/kwin/-/merge_requests/6221 Created attachment 172560 [details]
On internal display white background is the same color as cursor
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/6237 This doesn't happen for me on driver 555, could you test if that works for you too?
> But the colors still seem a bit off -- white appears as grey instead of white. That is particularly noticeable if I put the cursor on white background -- there is color difference on the external monitor, but no color difference on the internal display.
That's with all the post blending CRTC stuff commented out? With HDR enabled, the cursor is brighter than the rest here too, but only with DEGAMMA_LUT used (as the linked MR explains)
(In reply to Zamundaaa from comment #8) > This doesn't happen for me on driver 555, could you test if that works for > you too? On 555, without commenting out the lines, I get the same issue with fonts appearing bolded on external display/weird colors. Git commit fe5db7f97d25362c3fe63cfa07c183e666536455 by Xaver Hugl. Committed on 15/08/2024 at 13:26. Pushed by zamundaaa into branch 'master'. backends/drm: disable degamma_lut and ctm on NVidia The NVidia driver maps them to hardware planes, which means they do not apply to the cursor because the cursor plane doesn't have these color operations. M +2 -2 src/backends/drm/drm_crtc.cpp https://invent.kde.org/plasma/kwin/-/commit/fe5db7f97d25362c3fe63cfa07c183e666536455 |