Ian Douglas Scott
094c28e105
cosmic-screencopy-v2
2024-03-25 10:24:47 -07:00
Ian Douglas Scott
5e290acbee
Use log instead of println!
2024-03-06 14:05:32 -08:00
Ian Douglas Scott
7106001179
Address various warnings
2024-03-05 12:25:20 -08:00
Ian Douglas Scott
78b7bfe957
Use Wayland subsurfaces, dmabuf screencopy
...
More efficient than shm screencopy, and rendering an iced image into the
window. Done right, should espeically help with multiple GPUs, but more
testing and work is needed there.
Removes mmapping of dmabuf, which errored... I guess not allocated with
right options for that. Relevant only if we want a fallback/test that
involves reading dmabufs.
Using `OnDamage` doesn't seem to work correctly currently. Likely a
compositor issue.
2024-03-01 14:35:19 -08:00
Ian Douglas Scott
fb7840d295
Let gbm choose preferred modifier
2024-02-12 15:13:28 -08:00
Ian Douglas Scott
015f61922b
Update libcosmic
2024-02-06 13:32:29 -08:00
Ian Douglas Scott
6e9119a988
Seperate node from BufferBacking
...
Should help for moving from `BufferBacking` to types provide by
iced-sctk.
2024-01-26 14:37:18 -08:00
Ian Douglas Scott
a90a3a16b2
Simplify buffer creation code
2024-01-26 14:30:23 -08:00
Ian Douglas Scott
d869a29be7
Have .mmap member for Buffer for both shm and dmabuf
2024-01-26 14:23:04 -08:00
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