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

Artefacts in Vulkan game (RX 6800XT) #8498

Open
Riptils opened this issue Dec 13, 2024 · 7 comments
Open

Artefacts in Vulkan game (RX 6800XT) #8498

Riptils opened this issue Dec 13, 2024 · 7 comments
Labels
bug Not working as intended

Comments

@Riptils
Copy link

Riptils commented Dec 13, 2024

  • Sway Version:
    sway version 1.10-dev-f293418d (Dec 11 2024, branch 'master')

  • Debug Log:
    swaydebug-verbose.txt
    I had some photos and videos : https://photos.app.goo.gl/G5e7azBdymTK7g7X7

  • Configuration File:

  • Description:
    When I want to use my game (beamng) with Vulkan (natively or with wine dxvk) it creates artifacts regardless of the graphics level. I have the same thing with assetto corsa but I don't have the time to reproduce it.
    PS: I find that the programs are quite slow compared to the windows installation I had done beforehand, maybe there's a problem with my gpu?

@Riptils Riptils added the bug Not working as intended label Dec 13, 2024
@emersion
Copy link
Member

Can't find anything relevant in the logs.

@auroraanna
Copy link

does this occur on the same games but on other compositors like KDE Plasma's?

@Riptils
Copy link
Author

Riptils commented Dec 28, 2024

I just tried on kde with vulkan etc. but I don't have the artifacts. On the other hand, I've noticed that on beamng I've got some sort of micro flash or the screen goes black with the game when the refresh rate drops too low.

@fenveireth
Copy link
Contributor

I have this card, and similar artefacts on several other games (consistent repro with Deep Rock Galactic + proton vkd3d)

They disappear if the game is started with RADV_DEBUG=nodisplaydcc, or if sway is started with either WLR_RENDER_NO_EXPLICIT_SYNC=1 or WLR_SCENE_DISABLE_DIRECT_SCANOUT=1

@Nefsen402
Copy link
Member

They disappear if the game is started with RADV_DEBUG=nodisplaydcc, or if sway is started with either WLR_RENDER_NO_EXPLICIT_SYNC=1 or WLR_SCENE_DISABLE_DIRECT_SCANOUT=1

This is almost certainty a RADV/amdgpu bug. KDE doesn't get affected the same way because it probably doesn't enter direct scanout in as many cases as sway does.

@rpigott
Copy link
Member

rpigott commented Jan 2, 2025

What is your wlroots version? I have an RX 6750XT with similar symptoms on scanout, including disappearing with RADV_DEBUG=nodcc, so I initially suspected a radv bug, but after discussion in #radeon I ended up bisecting the artifacts to https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/9e71c88467fc41d6330bbd4b99f82f3df49ed4ac.

Haven't had the time to further investigate.

@Nefsen402
Copy link
Member

Maybe explicit sync has a hand in this? Maybe fences aren't being passed properly and the display is trying to scan out an unfinished buffer? But that commit should have nothing to do with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended
Development

No branches or pull requests

6 participants