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

Corrupted Vulkan windows and Gnome File Manager with 2024.Q4.2+ #393

Open
kmshanah opened this issue Jan 1, 2025 · 8 comments · Fixed by GPUOpen-Drivers/pal#108
Open

Comments

@kmshanah
Copy link

kmshanah commented Jan 1, 2025

When updating from amdvlk 2024.Q4.1 to amdvlk 2024.Q4.2 (same issue persists with 2024.Q4.3), I started having problems with corrupted gnome file manager window and also simple vulkan applications (for example, vkgears is busted). The rest of the desktop and my usual applications (terminal, firefox) work fine.

Screenshot From 2025-01-01 10-51-19

On a related note, Gnome File manager still doesn't look 100% right with 2024.Q4.1, but it is usable:

Screenshot From 2025-01-01 11-16-20

System is running Arch Linux:
linux 6.12.7.arch1-1
linux-firmware 20241210.b00a7f7e-1
mesa 1:24.3.2-1

The system is a Asus G15 AMD Advantage laptop (G513QY) which has both integrated (Ryzen 9 5900HX, Vega 8 GPU) and discrete (RX 6800M) GPUs. The applications all appear to be using the discrete GPU (e.g. according to vkgears -info).

@HurricanePootis
Copy link

This is a known issue upstream with GTK I believe. I think you can force GTK apps to use an alternative renderer besides Vulkan in the mean time.

@kmshanah
Copy link
Author

kmshanah commented Jan 26, 2025

I've tracked this down to the PAL setting UseZwpDmaBufProtocol.
The default was changed from false in 2024.Q4.1 to true in 2024.Q4.2.
When I set this to false via the settings file, the corruption shown in the first screenshot above does not occur with the newer versions.

@daftaupe
Copy link

daftaupe commented Feb 2, 2025

I've tracked this down to the PAL setting UseZwpDmaBufProtocol. The default was changed from false in 2024.Q4.1 to true in 2024.Q4.2. When I set this to false via the settings file, the corruption shown in the first screenshot above does not occur with the newer versions.

I can confirm that using 2024.Q4.3, and putting the followingent content into /etc/amd/amdVulkanSettings.cfg, I get almost rid of the window corruptions.

UseZwpDmaBufProtocol,0

Especially the black border as seen in the second capture can be mitigated by expanding the window to fill the screen.

@jinjianrong
Copy link
Member

The black border issue is fixed with 2025.Q1.1 release, please check it.

@kmshanah
Copy link
Author

kmshanah commented Feb 7, 2025

2025.Q1.1 fixes the black border issue, but seems to be missing the m_presentOnSameGpu fix so the windows are corrupted for me.

@jinjianrong
Copy link
Member

The m_presentOnSameGpu fix caused a performance regression so is not included in this release. it will be in next release

@qiaojbao
Copy link
Collaborator

qiaojbao commented Feb 8, 2025

The latest fix has been ported into dev branch.
GPUOpen-Drivers/pal@32f57f3
@kmshanah , could you help to verify it, please?

@kmshanah
Copy link
Author

kmshanah commented Feb 8, 2025

The latest fix has been ported into dev branch.
GPUOpen-Drivers/pal@32f57f3
@kmshanah , could you help to verify it, please?

Yes, can confirm this works for me 👍

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

Successfully merging a pull request may close this issue.

5 participants