Repository navigation
Conversation
XRGB2101010 is advertised for the primary plane and scanned out as the DCP "l10r" format, which carries alpha, so the two padding bits of an XRGB2101010 framebuffer are read as alpha. The 8-bit X formats and XBGR2101010 already get the premultiplied-over-black workaround; give XRGB2101010 the same treatment. With Hyprland bitdepth = 10 on a Studio Display XDR the 10-bit picture was visibly wrong next to 8-bit. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: Brian Toll <[email protected]>
hitori-chan
added a commit
to hitori-chan/linux
that referenced
this pull request
Nov 11, 2026
XRGB2101010 is handed to DCP as l10r, the format of ARGB2101010, but unlike the other X formats it was not marked premultiplied: DCP then blends by the two undefined X bits, and a client whose buffer leaves them 0 shows black, one with noise there shows noise. Blend it premultiplied over black, as XRGB8888, XBGR8888 and XBGR2101010 are. Not seen on the panel here: Hyprland's own 10-bit buffers carry 3 there. Another fork has the same fix (omacom#411).
hitori-chan
added a commit
to hitori-chan/linux
that referenced
this pull request
Nov 14, 2026
XRGB2101010 is handed to DCP as l10r, the format of ARGB2101010, but unlike the other X formats it was not marked premultiplied: DCP then blends by the two undefined X bits, and a client whose buffer leaves them 0 shows black, one with noise there shows noise. Blend it premultiplied over black, as XRGB8888, XBGR8888 and XBGR2101010 are. Not seen on the panel here: Hyprland's own 10-bit buffers carry 3 there. Another fork has the same fix (omacom#411).
hitori-chan
added a commit
to hitori-chan/linux
that referenced
this pull request
Nov 19, 2026
XRGB2101010 is handed to DCP as l10r, the format of ARGB2101010, but unlike the other X formats it was not marked premultiplied: DCP then blends by the two undefined X bits, and a client whose buffer leaves them 0 shows black, one with noise there shows noise. Blend it premultiplied over black, as XRGB8888, XBGR8888 and XBGR2101010 are. Not seen on the panel here: Hyprland's own 10-bit buffers carry 3 there. Another fork has the same fix (omacom#411).
hitori-chan
added a commit
to hitori-chan/linux
that referenced
this pull request
Nov 19, 2026
XRGB2101010 is handed to DCP as l10r, the format of ARGB2101010, but unlike the other X formats it was not marked premultiplied: DCP then blends by the two undefined X bits, and a client whose buffer leaves them 0 shows black, one with noise there shows noise. Blend it premultiplied over black, as XRGB8888, XBGR8888 and XBGR2101010 are. Not seen on the panel here: Hyprland's own 10-bit buffers carry 3 there. Another fork has the same fix (omacom#411).
hitori-chan
added a commit
to hitori-chan/linux
that referenced
this pull request
Nov 20, 2026
XRGB2101010 is handed to DCP as l10r, the format of ARGB2101010, but unlike the other X formats it was not marked premultiplied: DCP then blends by the two undefined X bits, and a client whose buffer leaves them 0 shows black, one with noise there shows noise. Blend it premultiplied over black, as XRGB8888, XBGR8888 and XBGR2101010 are. Not seen on the panel here: Hyprland's own 10-bit buffers carry 3 there. Another fork has the same fix (omacom#411).
hitori-chan
added a commit
to hitori-chan/linux
that referenced
this pull request
Nov 20, 2026
XRGB2101010 is handed to DCP as l10r, the format of ARGB2101010, but unlike the other X formats it was not marked premultiplied: DCP then blends by the two undefined X bits, and a client whose buffer leaves them 0 shows black, one with noise there shows noise. Blend it premultiplied over black, as XRGB8888, XBGR8888 and XBGR2101010 are. Not seen on the panel here: Hyprland's own 10-bit buffers carry 3 there. Another fork has the same fix (omacom#411).
hitori-chan
added a commit
to hitori-chan/linux
that referenced
this pull request
Nov 30, 2026
XRGB2101010 is handed to DCP as l10r, the format of ARGB2101010, but unlike the other X formats it was not marked premultiplied: DCP then blends by the two undefined X bits, and a client whose buffer leaves them 0 shows black, one with noise there shows noise. Blend it premultiplied over black, as XRGB8888, XBGR8888 and XBGR2101010 are. Not seen on the panel here: Hyprland's own 10-bit buffers carry 3 there. Another fork has the same fix (omacom#411).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
drm: apple: blend XRGB2101010 as premultiplied like the other X formats
Target: omacom/linux-aurora, branch
integration/aurora. One commit (branchdcp-xrgb2101010). Split out of #157 so it can go in on its own; it does not depend on the colour patches there.Problem
plane.cadvertises XRGB2101010 for the primary plane and scans it out as the DCPl10rformat.l10rcarries alpha, so the two padding bits of an XRGB2101010 framebuffer are read as alpha. The 8-bit X formats and XBGR2101010 already get the premultiplied-over-black workaround for exactly this; XRGB2101010 was left out.On a Studio Display XDR with Hyprland
bitdepth = 10(XRGB2101010 scanout, confirmed inhyprctl monitors) the 10-bit picture was visibly wrong next to the same desktop at 8-bit.Fix
Add
DRM_FORMAT_XRGB2101010to the list of formats blended as premultiplied alpha over a black background, and say in the comment whyl10rneeds it.Tested
MacBook Pro 14" M1 Max (j314c), DCP firmware 13.5, Studio Display XDR at 5120x2880@60 over a Thunderbolt DP tunnel, Hyprland 0.56.2 for the side-by-side test, 0.57.1 in daily use since.
bitdepth = 10on the XDR shows the same picture as 8-bit, both on plaincm = "srgb"and under a per-monitor ICC profile. In daily use since 2026-10-19 (local kernel releases 12 through 16).drivers/gpu/drm/apple/builds onintegration/aurora8eddf5a with the Omarchy config (W=1, clang); checkpatch --strict reports only theCo-Authored-Bytrailer spelling.🤖 Generated with Claude Code