Skip to content

hyprland: detect software rendering from the GL renderer - #649

Merged
maralcbr merged 4 commits into
omacom:masterfrom
scottjones:m3/hyprland-software-renderer
Sep 27, 2026
Merged

maralcbr merged 4 commits into
omacom:masterfrom
scottjones:m3/hyprland-software-renderer

Conversation

@scottjones

@scottjones scottjones commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Carries a v0.56.2 backport of hyprwm/Hyprland#16343 so Hyprland decides whether it is software rendering from the GL renderer (llvmpipe/softpipe) rather than the DRM driver name, matching renderer names case-insensitively as the upstream review asked. Display-only KMS devices such as simpledrm paired with llvmpipe were previously missed. Automatic upstream updates are held with sync: false while the backport is needed. The patch can be rebased onto newer releases after software- and accelerated-rendering tests; the README also explains when to remove the hold and patch together.

Merging publishes to edge, rc and stable (release_ring: fast). It does not automatically rebuild omareel: the separate six-hour sync-rebuilds job checks dependency versions in the official and ALARM repositories, rather than this recipe.

Test plan

  • Patch applies at zero fuzz; aarch64 package builds
  • Package files and depends unchanged from 0.56.2-3 (still libaquamarine.so=14)
  • M3 Air (simpledrm + llvmpipe, implicit sync): desktop renders correctly, retested after the case-insensitive refresh
  • M2 Max (Asahi GPU, explicit sync): renderer Apple M2 Max (G14C B1), classified as hardware, no regressions

Runtime comparison results and limitations: #649 (comment)

🤖 Generated with Claude Code

scottjones and others added 2 commits September 25, 2026 21:31
Carry a v0.56.2 backport of hyprwm/Hyprland#16343 so display-only KMS
drivers paired with llvmpipe are classified as software rendering.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@scottjones
scottjones marked this pull request as draft September 26, 2026 03:55
@scottjones

Copy link
Copy Markdown
Contributor Author

Temporarily marking this PR as draft pending runtime validation. Source review and the CI build/tests passed, and the M3 is running the exact binary from our patched package.

The M3 currently has Aquamarine 0.15.0 installed, while Hyprland was built against 0.15.1. Existing compositor logs also contain renderer initialization errors whose significance has not yet been established. Neither finding has been attributed to this patch.

Before marking this ready, we will compare patched and unpatched Hyprland with the same dependency versions, validate the simpledrm/llvmpipe path, and complete an accelerated-rendering regression check. The separate installer runtime/addon/boot package alignment work is not a prerequisite for this PR once Hyprland itself is validated.

Refresh the #16343 backport to carry the upstream follow-up that
matches llvmpipe/softpipe/Software Rasterizer with ASCII
case-insensitive, string_view-based matching.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

@maralcbr maralcbr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Holding this for now. The code looks right: g_pHyprOpenGL exists before the new constructor runs, and m_software only switches glFlush() to glFinish() when explicit sync isn't available, so M1/M2 on the Asahi GPU behave exactly as before. Since Hyprland is on the fast ring, though, merging ships straight to edge, rc and stable, so I'd like a few things closed first:

  1. Runtime comparison: your earlier comment planned a patched-vs-unpatched comparison with the same dependency versions, and an explanation of the renderer init errors in the existing logs. Could you post those results (M3 simpledrm/llvmpipe and the accelerated M2 Max check) against the -4 candidate?
  2. README hold wording: #16343 is still open upstream, and 0.56.2 is still the latest release. Please add that the patch can be rebased onto a newer release after testing, so ARM doesn't stay pinned at 0.56.2 if upstream takes a while.
  3. omareel claim: merging won't automatically rebuild omareel. rebuild_on is picked up by the separate six-hour sync-rebuilds job, which reads dependency versions from the official and ALARM repos, not from this recipe. Please drop that line or say how omareel will actually be rebuilt.

@scottjones

Copy link
Copy Markdown
Contributor Author

Runtime comparison is complete on the M3 and M2 Max against the exact 0.56.2-4 CI candidate. The running binary SHA-256 was verified against the package artifact on both machines. All installed package versions other than Hyprland stayed identical within each comparison, including runtime Aquamarine 0.15.1-1.1 and Mesa 1:26.2.3-1.

  • M3, simpledrm, explicit sync unavailable: -4 → -3 → -4. On -3, the operator observed tearing, incomplete rendering, and cursor trails. On -4 before and after, those visual problems were absent. The approximately 15 FPS baseline was an operator estimate, not a benchmark.
  • M2 Max, accelerated: -3 → -4. Both runs report Apple M2 Max (G14C B1) with explicit sync supported, the same 3024×1964 @ 120 Hz monitor mode, and hardware cursors enabled. After the switch, the operator confirmed normal operation when asked to exercise window movement/resizing, typing, and workspace switching. No configuration errors were reported in either run.

The M3 renderer errors occur in both versions, including the visually working -4 run. Aquamarine's EGL-device-to-DRM matching fails to create its DRM renderer; the secondary-renderer initialization/update paths log the failure, and applyCommit continues after logging the update error. That explains why the messages can coexist with a working compositor. They are not candidate-only errors and this patch does not eliminate them; we have not established that they have no performance impact. The corresponding device-matching/renderer-init errors are absent on the M2 Max.

Source: EGL device matching and renderer creation, secondary renderer initialization, and applyCommit logging.

Limit: the published -3 package and candidate -4 were built in different environments (including Aquamarine, Hyprutils, and Mesa versions). This holds runtime dependencies constant but does not isolate the source patch through otherwise identical rebuilds. These fresh M3 logs confirm simpledrm and missing explicit sync; they do not themselves capture the GL renderer string.

Both machines are now running -4. The README correction allowing tested rebases onto newer releases is prepared locally. The PR description correction is also prepared: merging does not automatically rebuild omareel; the separate six-hour sync-rebuilds job reads dependency versions from the official/ALARM repositories.

@maralcbr
maralcbr merged commit 4d0c217 into omacom:master Sep 27, 2026
6 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Publish succeeded → live

Packages: hyprland (aarch64, PR artifact)

  • edge/aarch64: hyprland-0.56.2-4-aarch64, hyprpm-0.56.2-4-aarch64
  • rc/aarch64: hyprland-0.56.2-4-aarch64, hyprpm-0.56.2-4-aarch64
  • stable/aarch64: hyprland-0.56.2-4-aarch64, hyprpm-0.56.2-4-aarch64

Commit 4d0c217 · run

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.

2 participants