Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

New output helper to manage buffers and renderer #3079

Open
emersion opened this issue Jul 31, 2021 · 0 comments · May be fixed by #3197
Open

New output helper to manage buffers and renderer #3079

emersion opened this issue Jul 31, 2021 · 0 comments · May be fixed by #3197
Labels

Comments

@emersion
Copy link
Member

emersion commented Jul 31, 2021

This helper would be responsible for:

  1. Create the renderer and allocator for a backend
  2. For each output, select a suitable format and create a swapchain for the primary buffers and the cursor buffers
  3. On modeset, allocate a blank buffer if none is provided
  4. Fallback to modifier-less buffers on modeset failure

All of this previously lived in the backends, and was recently lifted up to wlr_output. Extracting it in a helper would allow to simplify wlr_backend/wlr_output and make it un-opinionated (stop making decisions like picking the buffer format).

There could be a transition period during which wlr_output_attach_render uses this new helper behind-the-scenes to reduce breakage.


wlroots has migrated to gitlab.freedesktop.org. This issue has been moved to:

https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3079

emersion added a commit to emersion/wlroots that referenced this issue Sep 15, 2021
@emersion emersion linked a pull request Sep 15, 2021 that will close this issue
3 tasks
emersion added a commit to emersion/wlroots that referenced this issue Sep 16, 2021
bl4ckb0ne pushed a commit to bl4ckb0ne/wlroots that referenced this issue Sep 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging a pull request may close this issue.

1 participant