Gamescope caches wl_shm
buffers and does not upload new contents to vulkan texture
#1749
Open
3 of 6 tasks
Is there an existing issue for this?
Are you using any gamescope patches or a forked version of gamescope?
Current Behavior
wl_shm
backedwl_buffer
s are not updated after the first time they are committed, leading some applications to appear frozen.Steps To Reproduce
0.14.0-dev.3234+e5174c744
, I think the minimum nightly you will need is version0.14.0-dev.3179+933ba935c
)https://codeberg.org/klaji/shimizu
Hardware information
Software information
Which gamescope backends have the issue you are reporting?
Logging, screenshots, or anything else
I'll copy the text from my tracking issue for shimizu: https://codeberg.org/klaji/shimizu/issues/1
Running the gradient example under gamescope results in what appears to be a still image:
gamescope --expose-wayland -- ./shimizu_example_02_gradient
gradient-under-gamescope-session.mp4
Which differs from the result I see when running under niri (and other wayland sessions).
./shimizu_example_02_gradient
gradient-under-niri-session.mp4
As far as I can tell, this issue appears because gamescope caches the imported buffer, and doesn't update it:
A potential fix on the
shimizu
side is destroying thewl_buffer
every time and recreating when we grab a framebuffer to render to.It's not clear to me whether this is a
shimizu
bug, or a gamescope bug. The protocol spec doesn't call out this specific case, and the closest thing answer is this paragraph in thewl_surface:attach
request:So perhaps this is something that needs clarification from
wayland-protocols
.The text was updated successfully, but these errors were encountered: