linux-dmabuf-v1: don't use wlr_renderer to send legacy format list

The wlr_renderer field will go away in a subsequent commit.

Build the legacy device list from the default feedback instead.
This commit is contained in:
Simon Ser 2022-11-30 13:24:46 +01:00
parent d45cffb865
commit 88493d1f7c
2 changed files with 23 additions and 8 deletions

View file

@ -14,6 +14,7 @@
#include <wayland-server-core.h>
#include <wlr/types/wlr_buffer.h>
#include <wlr/render/dmabuf.h>
#include <wlr/render/drm_format_set.h>
struct wlr_surface;
@ -65,6 +66,7 @@ struct wlr_linux_dmabuf_v1 {
// private state
struct wlr_linux_dmabuf_feedback_v1_compiled *default_feedback;
struct wlr_drm_format_set default_formats; // for legacy clients
struct wl_list surfaces; // wlr_linux_dmabuf_v1_surface.link
int main_device_fd; // to sanity check FDs sent by clients