Repository navigation
Conversation
The 14.7 firmware takes 'l10r', a 10-bit linear format laid out as ARGB2101010, and lists it beside 'BGRA' in its pixel format table. Offer XRGB2101010 and ARGB2101010 on the primary plane and send them as l10r, so compositors can drive the panel at 10 bits per channel (Hyprland bitdepth 10, which otherwise falls back to 8 bits). XRGB2101010 is sent opaque, as XRGB8888 already is. External displays keep 8 bits: 10 bits were only tested on the internal panel. Assisted-by: Claude:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Ilyas Akin <[email protected]>
2 tasks done
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.
What this changes and why
On the 14.7 firmware path (
iomfb_v14_7.c), the primary plane offers onlyXRGB8888andARGB8888. A compositor asked for 10 bits per channel (Hyprlandbitdepth = 10) falls back to 8 bits.The firmware already has a 10-bit format: its pixel format table lists
l10r(10-bit linear, laid out as ARGB2101010) in the same class asw30r, next toBGRA. This PR:XRGB2101010andARGB2101010on the 14.7 primary plane;l10r, through a small DRM → firmware format mapping thatatomic_checkand the present path share;XRGB2101010opaque, asXRGB8888already is.External displays keep 8 bits.
atomic_checkrefuses the 10-bit formats there, because I could only test the internal panel.What was tested
DDF38191-…(macOS 14.7.5–14.7.8).linux-aurorarecipe, pointed at the commit withtools/aurora-ci/prepare-recipe.py, then installed and booted.bitdepth = 10,currentFormatXRGB8888XRGB2101010drmModeGetFB2)XR24XR30bitdepth = 8and10at runtime withhyprctlfive times. Each switch reported the right format, and nothing was logged by the DCP or DRM.make W=1ofiomfb_v14_7.oandplane.o(clang) is clean, withCONFIG_DRM_APPLE_KUNIT_TESTon. checkpatch is clean apart from the trailers.What was NOT tested
Risk
l10ron the internal panel. That is the only behaviour change.AI assistance
🤖 Generated with Claude Code