Commit graph

12 commits

Author SHA1 Message Date
Ian Douglas Scott
2164c1ea5a Create shm buffer directly instead of using RawPool
Currently needed if we want an fd to pass to iced-sctk for subsurfaces.
Rather than a wl_buffer.

It would be good if this logic and the dmabuf type could be shared in
some crate.
2024-01-26 14:13:58 -08:00
Ian Douglas Scott
2b3773c88e Handle gbm::Modifier::Invalid 2024-01-25 18:35:25 -08:00
Ashley Wulber
791441ca10 refactor: single instance 2023-11-21 19:26:12 -05:00
Ian Douglas Scott
7f1f46c9c7 Error handling when creating gbm buffers 2023-11-16 13:36:38 -08:00
Ian Douglas Scott
295fee8796 Support creating wl_buffer for multi-planar dmabuf
Apparently `I915_y_tiled_ccs` is a 2 plane format.
2023-11-16 13:23:26 -08:00
Ian Douglas Scott
39401bf3c3 screencopy: Pass the node we're using to attach_buffer
Seems to make sure the compositor renders workspace with that GPU, so it
actually captures successfully.
2023-11-09 13:45:28 -08:00
Ian Douglas Scott
549d9c1ff4 Use correct stride for reading dmabufs 2023-11-08 16:28:53 -08:00
Ian Douglas Scott
f585cbc32f Inital support for allocating dmabufs 2023-11-08 15:51:12 -08:00
Ian Douglas Scott
c567cb30d3 Move Bufffer::new to AppData::create_buffer
Will be needed to add support for dmabuf buffers. Also slightly cleaner
in general.
2023-11-08 15:05:45 -08:00
Ian Douglas Scott
b29f1149a4 Split up wayland code into more files 2023-02-09 16:04:36 -08:00
Ian Douglas Scott
a5b78a4300 Clippy fixes 2023-02-09 14:29:34 -08:00
Ian Douglas Scott
8c690e9648 Split wayland buffer code into a file 2023-02-09 14:10:31 -08:00