Skip to content

comma: Mesa freedreno support with legacy Adreno backward compat#25

Open
greatgitsby wants to merge 1 commit intocommaai:masterfrom
greatgitsby:liberation
Open

comma: Mesa freedreno support with legacy Adreno backward compat#25
greatgitsby wants to merge 1 commit intocommaai:masterfrom
greatgitsby:liberation

Conversation

@greatgitsby
Copy link
Copy Markdown

Summary

  • Runtime GPU driver detection: probes for eglGetPlatformDisplayEXT (Mesa freedreno path), falls back to eglGetDisplay (legacy Adreno blob path)
  • Format selection branches on detected driver: legacy uses only ABGR8888, Mesa accepts ARGB8888/XRGB8888/ABGR8888
  • Dynamic backlight discovery via /sys/class/backlight/ scan instead of hardcoded panel0-backlight

Test plan

  • Verify on device with Mesa freedreno driver (new stack)
  • Verify on device with proprietary Adreno blob (old stack)
  • Confirm backlight brightness control works on both

🤖 Generated with Claude Code

…bility

Runtime GPU driver detection using eglGetPlatformDisplayEXT probe:
- Mesa freedreno: uses eglGetPlatformDisplay, accepts ARGB/XRGB/ABGR formats
- Legacy Adreno blob: falls back to eglGetDisplay, hardcodes ABGR8888

Also makes backlight discovery dynamic (scans /sys/class/backlight/)
instead of hardcoding panel0-backlight.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant