Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vulkan-swapchain option on wayland buggy (causes blocks in mesa?) #10373

Open
Celmor opened this issue Jul 7, 2022 · 3 comments
Open

vulkan-swapchain option on wayland buggy (causes blocks in mesa?) #10373

Celmor opened this issue Jul 7, 2022 · 3 comments

Comments

@Celmor
Copy link

Celmor commented Jul 7, 2022

Important Information

Provide following Information:

  • mpv version version 0.34.0-365-g369168b9be
  • Linux Distribution and Version 5.18.5-1-MANJARO
  • Source of the mpv binary mpv-build
  • Window Manager and version sway 1.8-dev-d726e506
  • GPU driver and version amdgpu 22.0.0-1

Reproduction steps

--gpu-api=vulkan --vulkan-swap-mode=immediate --ao=pulse
or vulkan-swap-mode=fifo

Expected behavior

audio continues when mpv is backgrounded

Actual behavior

audio hangs

Log file

relevant output

[vo/gpu/vulkan/libplacebo] Requested swap mode unsupported by this device, falling back to VK_PRESENT_MODE_FIFO_KHR
AO: [pulse] 44100Hz stereo 2ch float
...
Audio device underrun detected.

Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).

full-log

@Celmor Celmor added the os:linux label Jul 7, 2022
@Dudemanguy
Copy link
Member

Dudemanguy commented Jul 7, 2022

Using an opengl swapinterval of 1 (or greater) would also cause the same thing. This is why internally the wayland context set vulkan to mailbox and opengl to swapinterval 0 (it's just a wayland limitation). Now, it would be nicer if mpv could prevent users from overwriting this, but the code for setting presentation modes/swapintervals is shared between all platforms. It's not that this is impossible or anything, but it becomes something that has to touch more than just the wayland-specific files which is ugly imo.

@Dudemanguy
Copy link
Member

Just for reference, there's actually a pending MR in mesa that would alleviate this pain of indefinite blocking.

@Dudemanguy
Copy link
Member

This will actually be fixed by #15056 and the linked mesa MR in there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants