镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

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

Open
greatgitsby wants to merge 32 commits into
commaai:masterfrom
greatgitsby:liberation
Open

greatgitsby wants to merge 32 commits into
commaai: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

maxime-desroches and others added 30 commits November 27, 2024 23:27
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Comma Device <device@comma.ai>
maxime-desroches and others added 2 commits November 11, 2025 14:43
Co-authored-by: Comma Device <device@comma.ai>
…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.

3 participants