-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libmali g24p0-4 incorrect colors (gamma) on Mutter (GNOME Wayland) when using vulkan renderer #39
Comments
sorry, this is just a mirror repo, i don't know much about the details in mali DDK. please mail the maintainers(Rockchip's GPU team) for support, and maybe provide a rootfs image for them to reproduce: |
FWIW, this issue seems to only happen on a DSI display. With each screen mirroring one another, the issue becomes more obvious. The external monitor renders correctly but the DSI screen does not... I wonder if this is a quirk of the Rockchip DSI driver itself. IMG_6139.mov |
don't know much about that, but if it only happen on DSI, maybe not related to GPU. maybe try to use kmsgrab to dump the display buffer: usage if the buffer is correct, should be something wrong with the DSI, then you can contact the RK DSI maintainers(check the kernel driver's commit log) |
Haven't tried kmsgrab yet, but there is something I want to point out here. |
Arm doesn't allow to publish code. Maybe you can ask jacob about it: |
Why though? In theory, they should be doing it: https://developer.arm.com/downloads/-/mali-drivers/vulkan-wsi-layer |
no idea about that, please mail the maintainers for detail. |
We've been testing the latest g24p0 blob drivers with Vulkan and I'm finding that the colors are not rendering correctly with Mutter, but work fine with Weston.
Is this something that Rockchip are able to reproduce with the Mutter compositor? This happens in multiple apps (AetherSX2, Lime3DS and Chromium when trying to run with the Vulkan renderer). My guess it is something incorrect with either the swapchain configuration, or some sort of mismatch between rendering output of Vulkan and expected colorspace for Mutter.
Vulkaninfo output:
https://pastebin.com/ZvCy3YkH
Current WSI layer:
https://drive.google.com/file/d/1sor29bVrSe_wCUE4ptDZYwoqyk6fDmN_/view?usp=sharing
Steps to Reproduce:
Launch a Vulkan application under GNOME (Wayland session).
Observe incorrect color rendering (washed-out or overly saturated colors), likely due to failure to do any proper gamma correction in swapchain.
Run the same Vulkan application under Weston and observe that the color rendering is correct.
Expected Behavior:
The Vulkan application should render colors correctly, similar to its behavior on Weston, without any noticeable color distortion or incorrect gamma levels.
Actual Behavior:
Colors are rendered incorrectly, likely due to a mismatch in how Mutter (or Wayland) handles color space or the swapchain in conjunction with the closed-source driver.
Environment:
Desktop Environment: GNOME (Wayland)
Compositor: Mutter
Additional Information:
I have confirmed that my WSI (Window System Integration) layer is functioning correctly.
I have verified that the same application(s) works as expected on Weston, without any color issues.
Debugging suggests that the issue may be related to color space handling (linear vs. sRGB) and the compositing behavior of Mutter.
The text was updated successfully, but these errors were encountered: