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

gpu-next: Heavy shaders cause presentation glitches on Vulkan #15513

Open
6 tasks done
Artoriuz opened this issue Dec 13, 2024 · 3 comments
Open
6 tasks done

gpu-next: Heavy shaders cause presentation glitches on Vulkan #15513

Artoriuz opened this issue Dec 13, 2024 · 3 comments

Comments

@Artoriuz
Copy link

Artoriuz commented Dec 13, 2024

mpv Information

mpv f753049 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
 built on Dec  5 2024 00:33:43
libplacebo version: v7.350.0
FFmpeg version: 6be17a1
FFmpeg library versions:
   libavcodec      61.19.100
   libavdevice     61.3.100
   libavfilter     10.4.100
   libavformat     61.7.100
   libavutil       59.39.100
   libswresample   5.3.100
   libswscale      8.3.100

Other Information

- Windows version: Microsoft Windows NT 10.0.26100.0/26100.2605
- GPU model, driver and version: 6600 XT, Adrenalin 24.12.1
- Source of mpv: https://nightly.link/mpv-player/mpv/workflows/build/master
- Latest known working version: None
- Issue started after the following happened: No idea

Reproduction Steps

Play a video with any sufficiently heavy combination of shaders to cause rampant frame drops.

Expected Behavior

Frames should be gracefully dropped, which they are on D3D11.

Actual Behavior

On Vulkan, the dropped frames create presentation glitches.

Log File

vulkan.txt

d3d11.txt

Sample Files

This is the shader I used to reproduce it, but it may or may not be enough on a faster GPU:
ArtCNN_C8F32.txt

In the case it isn't, polar downsampling is often very heavy too.

I carefully read all instruction and confirm that I did the following:

  • I tested with the latest mpv version to validate that the issue is not already fixed.
  • I provided all required information including system and mpv version.
  • I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
  • I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • I attached the full, untruncated log file.
  • I attached the backtrace in the case of a crash.
@Artoriuz
Copy link
Author

I'll attach some videos showing the issue here, and I apologise for the horrible quality.

Vulkan:
https://github.com/user-attachments/assets/bf32f080-6f1b-4fdc-a71b-500c8490f5fb

D3D11:
https://github.com/user-attachments/assets/256466d2-b21e-4cbc-bfa9-d8bde58e39e0

@Artoriuz
Copy link
Author

There's a similar issue open (#13811) but this other one seems related to hwdec while I can reproduce the presentation glitches regardless of it. I've also been informed that people with Nvidia GPUs have the exact same problem so it's unlikely this is related to AMD.

@Jules-A
Copy link

Jules-A commented Dec 14, 2024

I can reproduce on my 6700XT with default display-sync but not display-resample.

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

3 participants