wlroots/render
Simon Ser 4f06ce2550 render/gbm_allocator: avoid drmPrimeHandleToFD
Some drivers (e.g. nouveau) need to do some book-keeping when exporting
a BO handle to a DMA-BUF [1]. Using drmPrimeHandleToFD directly hides
the export from the user-space drivers and causes some ref'counting
issues.

So we can't properly handle BOs with a different handle for each plane
until [2] lands.

[1]: https://gitlab.freedesktop.org/drm/nouveau/-/issues/43#note_772661
[2]: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5442

Suggested-by: Ilia Mirkin <imirkin@alum.mit.edu>
2021-01-23 16:41:54 +01:00
..
gles2 render/gles2: make EGL context current in bind_buffer 2021-01-16 09:06:17 +01:00
allocator.c render/allocator: ignore NULL in wlr_allocator_destroy 2020-12-17 20:34:19 +01:00
dmabuf.c render/dmabuf: add wlr_dmabuf_attributes_copy 2019-06-07 09:06:11 -04:00
drm_format_set.c render/drm_format_set: add special case for LINEAR-only formats 2020-12-30 11:17:43 +01:00
egl.c Revert "render: add wlr_egl_create_from_drm_fd function" 2021-01-20 21:32:50 +01:00
gbm_allocator.c render/gbm_allocator: avoid drmPrimeHandleToFD 2021-01-23 16:41:54 +01:00
meson.build render: extract gles2 build files to subdir 2021-01-15 22:13:04 +01:00
swapchain.c render/swapchain: add support for buffer age 2020-11-15 22:48:42 +01:00
wlr_renderer.c Revert "render: add wlr_egl_create_from_drm_fd function" 2021-01-20 21:32:50 +01:00
wlr_texture.c render/texture: make write_pixels optional 2020-04-28 21:45:14 +02:00