[kwin] [Bug 443148] Invert screen colors action doesn't work on Wayland with an NVIDIA GPU

2023-12-11 Thread Zamundaaa
https://bugs.kde.org/show_bug.cgi?id=443148

Zamundaaa  changed:

   What|Removed |Added

 Resolution|--- |FIXED
  Latest Commit||https://invent.kde.org/plas
   ||ma/kwin/-/commit/6f06bf1989
   ||3bcf70b7dfa4b85c8529a2d2abd
   ||f1a
 Status|ASSIGNED|RESOLVED

--- Comment #13 from Zamundaaa  ---
Git commit 6f06bf19893bcf70b7dfa4b85c8529a2d2abdf1a by Xaver Hugl.
Committed on 11/12/2023 at 22:46.
Pushed by vladz into branch 'master'.

plugins/invert: support color management

To do this, this commit adds infrastructure to include glsl files,
extracts all the color management functions and uniforms into such a
file, and makes use of it in the invert effect

A  +108  -0src/opengl/colormanagement.glsl
M  +80   -114  src/opengl/glshadermanager.cpp
M  +1-0src/opengl/glshadermanager.h
A  +9-0src/opengl/saturation.glsl
M  +10   -8src/plugins/invert/shaders/invert.frag
M  +11   -8src/plugins/invert/shaders/invert_core.frag
M  +3-1src/resources.qrc

https://invent.kde.org/plasma/kwin/-/commit/6f06bf19893bcf70b7dfa4b85c8529a2d2abdf1a

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 443148] Invert screen colors action doesn't work on Wayland with an NVIDIA GPU

2023-12-11 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=443148

Bug Janitor Service  changed:

   What|Removed |Added

 Status|CONFIRMED   |ASSIGNED

--- Comment #12 from Bug Janitor Service  ---
A possibly relevant merge request was started @
https://invent.kde.org/plasma/kwin/-/merge_requests/4782

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 443148] Invert screen colors action doesn't work on Wayland with an NVIDIA GPU

2023-12-10 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=443148

--- Comment #11 from fanzhuyi...@gmail.com ---
Checking the open source version of the nvidia drivers, it seems that this
error message is issued if the call to `nvKms->isMemoryValidForDisplay` returns
false [0].
This call checks if the relevant memory is in video ram, and returns false if
the memory is in sysmem or compressed buffers, or another gpu [1].

So the fix should just be to make sure the memory is video ram of the relevant
gpu? 

[0]:
https://github.com/NVIDIA/open-gpu-kernel-modules/blob/4c29105335610933e744f4ab2524ea63fc39edaf/kernel-open/nvidia-drm/nvidia-drm-fb.c#L153
[1]:
https://github.com/NVIDIA/open-gpu-kernel-modules/blob/4c29105335610933e744f4ab2524ea63fc39edaf/src/nvidia-modeset/kapi/src/nvkms-kapi.c#L1900

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 443148] Invert screen colors action doesn't work on Wayland with an NVIDIA GPU

2023-12-10 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=443148

--- Comment #10 from fanzhuyi...@gmail.com ---
(In reply to fanzhuyifan from comment #9)
> Currently the invert colors effect is working on wayland for me again.
> I have a prime system with intel iGPU and nvidia dGPU. This works when I
> only use my dGPU, and in a prime setup with external displays.

Correction: the invert effect is not consistently working, but rather working
with high probability.
And when it doesn't work, a `kwin_wayland --replace` often fixes things.

When it doesn't work, I see this in my dmesg
> [drm] [nvidia-drm] [GPU ID 0x0100] Framebuffer memory not appropriate for 
> scanout
and this in my journal:
> Dec 10 19:53:40 arch kwin_wayland[3380]: kwin_scene_opengl: Invalid 
> framebuffer status:  "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT"
> Dec 10 19:53:40 arch kwin_wayland[3380]: kwin_scene_opengl: Invalid 
> framebuffer status:  "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 443148] Invert screen colors action doesn't work on Wayland with an NVIDIA GPU

2023-12-10 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=443148

--- Comment #9 from fanzhuyi...@gmail.com ---
Currently the invert colors effect is working on wayland for me again.
I have a prime system with intel iGPU and nvidia dGPU. This works when I only
use my dGPU, and in a prime setup with external displays.

Not sure if this is due to an upsteam fix, or updates to kwin.

The versions of my nvidia drivers are:
lib32-nvidia-utils 545.29.06-1
lib32-opencl-nvidia 545.29.06-1
nvidia-dkms 545.29.06-1
nvidia-prime 1.0-4
nvidia-settings 545.29.06-1
nvidia-utils 545.29.06-1
opencl-nvidia 545.29.06-1

Operating System: Arch Linux 
KDE Plasma Version: 5.90.90
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.1
Kernel Version: 6.6.5-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 20 × 13th Gen Intel® Core™ i9-13900H
Memory: 15.2 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4060 Laptop GPU/PCIe/SSE2
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: ROG Zephyrus G16 GU603VV_GU603VV
System Version: 1.0

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 443148] Invert screen colors action doesn't work on Wayland with an NVIDIA GPU

2023-12-09 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=443148

fanzhuyi...@gmail.com changed:

   What|Removed |Added

   Keywords||accessibility
Version|unspecified |5.90.0

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 443148] Invert screen colors action doesn't work on Wayland with an NVIDIA GPU

2023-11-23 Thread David Edmundson
https://bugs.kde.org/show_bug.cgi?id=443148

--- Comment #8 from David Edmundson  ---
*** Bug 477304 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 443148] Invert screen colors action doesn't work on Wayland with an NVIDIA GPU

2023-11-20 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=443148

--- Comment #7 from fanzhuyi...@gmail.com ---
(In reply to fanzhuyifan from comment #6)
> *** Bug 477304 has been marked as a duplicate of this bug. ***

Actually for me the symptoms are a bit different: the colors get very dim.
Should I mark my report as a duplicate of this one?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 443148] Invert screen colors action doesn't work on Wayland with an NVIDIA GPU

2023-11-20 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=443148

fanzhuyi...@gmail.com changed:

   What|Removed |Added

 CC||fanzhuyi...@gmail.com

--- Comment #6 from fanzhuyi...@gmail.com ---
*** Bug 477304 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 443148] Invert screen colors action doesn't work on Wayland with an NVIDIA GPU

2022-08-03 Thread Nicolas Fella
https://bugs.kde.org/show_bug.cgi?id=443148

Nicolas Fella  changed:

   What|Removed |Added

 CC||nicolas.fe...@gmx.de
 Status|REPORTED|CONFIRMED
 Ever confirmed|0   |1

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 443148] Invert screen colors action doesn't work on Wayland with an NVIDIA GPU

2022-08-03 Thread Nicolas Fella
https://bugs.kde.org/show_bug.cgi?id=443148

--- Comment #5 from Nicolas Fella  ---
*** Bug 457441 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 443148] Invert screen colors action doesn't work on Wayland with an NVIDIA GPU

2021-10-04 Thread Vlad Zahorodnii
https://bugs.kde.org/show_bug.cgi?id=443148

Vlad Zahorodnii  changed:

   What|Removed |Added

   See Also||https://bugs.kde.org/show_b
   ||ug.cgi?id=442697

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 443148] Invert screen colors action doesn't work on Wayland with an NVIDIA GPU

2021-10-01 Thread hovgaard
https://bugs.kde.org/show_bug.cgi?id=443148

--- Comment #4 from hovgaard  ---
Ahh shoot

Stil doesnt work. I happened tested from  an X11 session.

Reboot to wayland... Still doesnt work.

regards

Alan

Den 01.10.2021 kl. 16.39 skrev Nate Graham:
> https://bugs.kde.org/show_bug.cgi?id=443148
>
> Nate Graham  changed:
>
> What|Removed |Added
> 
>   CC||n...@kde.org
> Keywords||wayland
>  Summary|invert screen colors|Invert screen colors action
> |shorcut in wayland session  |doesn't work on Wayland
> |doesn't work.   |with an NVIDIA GPU
>
> --- Comment #2 from Nate Graham  ---
> Works fine for me on Intel. Seems more like the effect itself isn't working 
> for
> you, rather than the shortcut not working. Probably an NVIDIA bug indeed.
>

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 443148] Invert screen colors action doesn't work on Wayland with an NVIDIA GPU

2021-10-01 Thread hovgaard
https://bugs.kde.org/show_bug.cgi?id=443148

--- Comment #3 from hovgaard  ---
This bug is now gone!

I had this update today, and after reboot all was fine So yes I 
think it might have been an nvidia bug.

kmod-nvidia-5.14.0-60.fc35.x86_64-3:470.63.01-1.fc35.x86_64

Thx for the feedbacks happy kde user from the beginnig of times. KDE 
forever! :-)

/Alan

Den 01.10.2021 kl. 16.39 skrev Nate Graham:
> https://bugs.kde.org/show_bug.cgi?id=443148
>
> Nate Graham  changed:
>
> What|Removed |Added
> 
>   CC||n...@kde.org
> Keywords||wayland
>  Summary|invert screen colors|Invert screen colors action
> |shorcut in wayland session  |doesn't work on Wayland
> |doesn't work.   |with an NVIDIA GPU
>
> --- Comment #2 from Nate Graham  ---
> Works fine for me on Intel. Seems more like the effect itself isn't working 
> for
> you, rather than the shortcut not working. Probably an NVIDIA bug indeed.
>

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 443148] Invert screen colors action doesn't work on Wayland with an NVIDIA GPU

2021-10-01 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=443148

Nate Graham  changed:

   What|Removed |Added

 CC||n...@kde.org
   Keywords||wayland
Summary|invert screen colors|Invert screen colors action
   |shorcut in wayland session  |doesn't work on Wayland
   |doesn't work.   |with an NVIDIA GPU

--- Comment #2 from Nate Graham  ---
Works fine for me on Intel. Seems more like the effect itself isn't working for
you, rather than the shortcut not working. Probably an NVIDIA bug indeed.

-- 
You are receiving this mail because:
You are watching all bug changes.