using hardware overlays in weston
play

Using hardware overlays in Weston Ander Conselvan de Oliveira - PowerPoint PPT Presentation

Using hardware overlays in Weston Ander Conselvan de Oliveira FOSDEM 2013 February 2nd Overview Shell Compositor Backend Renderer OS / Hardware Repaint cycle Driven by the monitor refresh Iteration over list of surfaces, drawn


  1. Using hardware overlays in Weston Ander Conselvan de Oliveira FOSDEM 2013 February 2nd

  2. Overview Shell Compositor Backend Renderer OS / Hardware

  3. Repaint cycle • Driven by the monitor refresh • Iteration over list of surfaces, drawn backwards • Optimize out redrawing of obscured areas (needs clients help)

  4. Opaque region

  5. Planes ● Planes are groups of surfaces

  6. Primary plane ● By default surfaces belong to the primary plane ● Only surfaces on the primary plane are composited with the renderer

  7. Plane assignment ● Before each repaint, the backend can move surfaces to other planes

  8. Planes on the DRM backend • Cursor plane • Scanout plane • Sprite planes

  9. Planes on the DRM backend Primary Plane Scanout Plane Sprite plane Cursor plane

  10. Scanout plane ● "Disables" composition for fullscreen clients ● Very low overhead

  11. Scanout plane

  12. Scanout plane Primary plane Scanout plane

  13. Sprite planes ● Use the hardware overlay

  14. Sprite plane

  15. Sprite plane Primary plane Sprite plane

  16. Cursor Plane ● Supports 64x64 surfaces ● SHM only, contents are copied to an appropriate buffer

  17. Cursor plane Primary plane Cursor plane

  18. Plane assignment • Current implementation is very simple • First surface that can use a plane gets to use it • We could do better

  19. Plane assignment

  20. Plane assignment

  21. Plane assignment

  22. Plane assignment

  23. Plane assignment

  24. Plane assignment

  25. We could do better

  26. Demo

  27. Questions

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend