screencopy-v1: use DRM format code for shm buffers

Will allow us to simplify common shm/DMA-BUF logic later on.
This commit is contained in:
Simon Ser 2022-09-21 10:11:35 +02:00 committed by Simon Zeni
parent 4885c08f38
commit 77b829e15f
2 changed files with 11 additions and 10 deletions

View file

@ -37,8 +37,7 @@ struct wlr_screencopy_frame_v1 {
struct wlr_screencopy_v1_client *client;
struct wl_list link; // wlr_screencopy_manager_v1.frames
enum wl_shm_format shm_format;
uint32_t dmabuf_format;
uint32_t shm_format, dmabuf_format; // DRM format codes
struct wlr_box box;
int stride;