github GlassHaven/Haven v4.13.0
v4.13.0: GPU-accelerated Wayland compositing

latest releases: v5.94.61, v5.94.60, v5.94.59...
7 months ago

GPU-accelerated scene compositing

The Wayland compositor's scene rendering now runs on the GPU via OpenGL ES 3.2 on the Mali-G715.

What changed

Before (v4.12.0): scene → pixman (CPU) → SHM buffer → memcpy → display
After (v4.13.0): scene → GLES2 (GPU) → AHardwareBuffer → CPU readback → display

The GPU handles all scene compositing (client surfaces, SSD decorations, shadows, cursors). Display still uses CPU readback from the GPU buffer — Phase 4 will replace this with ASurfaceControl for zero-copy presentation.

Technical details

  • AHardwareBuffer allocator — allocates GPU-accessible buffers with GPU_SAMPLED_IMAGE | GPU_FRAMEBUFFER | COMPOSER_OVERLAY | CPU_READ_OFTEN usage flags
  • EGL_ANDROID_image_native_buffer — imports AHardwareBuffers into the GLES2 renderer as EGL images, bypassing the EGL_EXT_image_dma_buf_import extension (not available on Android)
  • Android format advertisement — populates wlroots' render format sets (ABGR8888, XBGR8888, ARGB8888, XRGB8888) when the DMA-BUF extension is absent
  • DMA-BUF from native_handle_t — extracts FDs from AHardwareBuffer_getNativeHandle() for swapchain compatibility
  • CPU readback via AHardwareBuffer_lock — begin_data_ptr_access implementation for the existing CPU blit path (transitional)

GPU acceleration roadmap

Phase Status Description
1. Build GLES2 Done wlroots with -Drenderers=gles2 on Android
2. EGL init Done Android EGL 1.5, Mali-G715, GL ES 3.2
3. AHardwareBuffer Done GPU compositing active, CPU readback for display
4. ASurfaceControl Next Zero-copy display, eliminates CPU readback
5. Integration Planned Cleanup, optimize

Tracking: #47

Full Changelog: v4.12.0...v4.13.0

Don't miss a new Haven release

NewReleases is sending notifications on new releases.