render: introduce shared memory allocator

It allocates in local main memory via shm_open, and provides a FD
to allow sharing with other processes.

This is suitable for software rendering under the Wayland and X11
backends.
This commit is contained in:
Simon Ser 2021-02-09 20:57:47 +01:00
parent 6c61de996c
commit c6b009ef85
3 changed files with 132 additions and 0 deletions

View file

@ -5,6 +5,7 @@ wlr_files += files(
'drm_format_set.c',
'gbm_allocator.c',
'pixel_format.c',
'shm_allocator.c',
'swapchain.c',
'wlr_renderer.c',
'wlr_texture.c',