Skip to content

fix: skip GL compositor when only Mesa software rendering is available#482

Merged
srperens merged 1 commit intomainfrom
fix/opengl-software-detect
Apr 9, 2026
Merged

fix: skip GL compositor when only Mesa software rendering is available#482
srperens merged 1 commit intomainfrom
fix/opengl-software-detect

Conversation

@srperens
Copy link
Copy Markdown
Collaborator

@srperens srperens commented Apr 8, 2026

Summary

  • Auto-selection for compositor backend checked only if glvideomixerelement existed in the GStreamer registry, but Mesa makes it always available via llvmpipe software rendering
  • This caused auto mode to pick the GL path even without a real GPU, which is slower than the CPU compositor due to GL API overhead on software rendering
  • Adds gpu::has_hardware_gl() that checks the GL renderer string probed at startup and rejects llvmpipe/softpipe/swrast — both vision mixer and compositor block now require a hardware GL renderer before choosing glvideomixerelement

Test plan

  • Verify on a system without GPU that auto mode selects CPU compositor
  • Verify on a system with NVIDIA GPU that auto mode still selects GL compositor
  • Verify that explicit "gpu" preference still forces GL even on Mesa (no behavior change for explicit selection)

🤖 Generated with Claude Code

Auto-selection checked if glvideomixerelement existed in the GStreamer
registry, but Mesa makes it always available via llvmpipe. This caused
auto mode to pick the GL path even without a real GPU, which is slower
than the CPU compositor due to GL API overhead on software rendering.

Add gpu::has_hardware_gl() that checks the GL renderer string probed at
startup and rejects llvmpipe/softpipe/swrast. Both vision mixer and
compositor block auto-selection now require a hardware GL renderer
before choosing glvideomixerelement.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@srperens srperens merged commit b6cdafe into main Apr 9, 2026
13 of 14 checks passed
@srperens srperens deleted the fix/opengl-software-detect branch April 9, 2026 07:44
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