ublue-os / bazzite

Bazzite is a custom image built upon Fedora Atomic Desktops that brings the best of Linux gaming to all of your devices - including your favorite handheld.
https://bazzite.gg
Apache License 2.0
3.26k stars 178 forks source link

Gamescope not working on RX 580 #1066

Open massatt212 opened 2 months ago

massatt212 commented 2 months ago

Gamescope not working on Polaris so gamemode ui doesnt work for me, but my rx 5600 rx 6600 and rx 6400 works fine

ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
vulkan: selecting physical device 'AMD Radeon RX 580 Series (RADV POLARIS10)': queue family 1 (general queue family 0)
vulkan: physical device does not support DRM format modifiers
wlserver: [backend/headless/backend.c:67] Creating headless backend
xdg_backend: Seat name: 
vulkan: supported DRM formats for sampling usage:
gamescope: types/wlr_linux_dmabuf_v1.c:532: feedback_compile: Assertion `table_len > 0' failed.
Aborted (core dumped)

i tried launch warframe in lutris didnt boot either with gamescope enabled, it worked fine when i disabled gamescope.

massatt212 commented 2 months ago

https://github.com/ValveSoftware/gamescope/issues/1218

massatt212 commented 2 months ago

i think the latest version of gamescope for fedora fixes Polaris cards

TeamLinux01 commented 2 months ago

I don't know if this is the same issue, but Game Mode (Big Picture Mode) just stopped working for me on my RX 580. I was working before rebooting into the latest image I updated to on Bazzite-Deck.

Edit: I just tried the previous ostree grub boot entry and it works, so it was an update that broke it.

massatt212 commented 2 months ago

That version of gamescope doesn't work on Polaris cards, he has to upgrade or downgrade it.

TeamLinux01 commented 2 months ago

I found out how to check which version ships with each version of Fedora. https://src.fedoraproject.org/rpms/gamescope

I do see right now that F40 is using gamescope-3.14.2-1.fc40, I wonder if it is possible to tell it to pull gamescope-3.13.19-1.fc39 of the package instead for now.

Edit: I now realize that Bazzite ships with whatever version of gamescope is entered in the gamescope.spec file, so it looks like it is currently 3.14.13. Unfortunately, this still seems to be a problem for my RX 580. I do hope this gets fixed upstream.

Finally found the command to tell me which version of a package is installed. rpm -qf /usr/bin/gamescope

gamescope-100.3.14.13-1.bazzite.x86_64
KyleGospo commented 1 month ago

Latest release has a patch for older gpus

sdolbey commented 1 month ago

Latest release has a patch for older gpus

Is this what my system installed when I ran the update app from desktop mode? I'm fully up-to-date on the stable HTPC branch and my system with an RX 580 is still unable to open gaming mode. It was working fine for a couple months, but the recent-ish updates seem to have broken it.

I'd be happy to do some debugging for you, but I am not a Linux guy, so you'll have to spell out what you need me to do.

b- commented 1 month ago

I didn't have a working older build to rollback to, but I can confirm that rebasing to bazzite-deck:40-stable-20240424 works on my RX580-based machine.

HikariKnight commented 3 weeks ago

For those still with this issue. The newest update should have gamescope session functional again (only with a controller). remember to pin your current deployment first as a backup sudo ostree admin pin 0 replace 0 with the index from rpm-ostree status -vb Also enable the grub menu to make it easier to select the older deployment in case you still run into issues, you can enable the grub menu through ujust configure-grub Would also recommend having ssh enabled on the computer so you can still access the command line remotely in case of issues sudo systemctl enable --now sshd since the tty will be inaccessible due to the keyboard and mouse input not working in gamemode session with the workaround.

In desktop mode and desktop images if you want to use gamescope you will have to use gamescope --backend sdl as the launch option for your games (no way to set this in lutris as far as i know?)

For gamescope-session/gamemode session, it is applied automatically when a Polaris card is detected through

lspci -nn | grep -P "(VGA compatible|3D) controller"

If your card is not detected then please provide the output of the above command to us here so we can update the detection (i only had 2 different Polaris cards to test with so i might have missed a variant)

KNOWN ISSUES

sdolbey commented 3 weeks ago

I can confirm that game mode does work again on my HTPC build, which is great. There's even a GPU TDP slider that appears to work. However, I'm now having a new issue: game mode is stuck in 720p. There are no resolution options in the Steam big picture UI. Switching to desktop mode does use the correct resolution (1080p) for my TV. Switching back to game mode switches the resolution back to 720p.

HikariKnight commented 3 weeks ago

I can confirm that game mode does work again on my HTPC build, which is great. There's even a GPU TDP slider that appears to work. However, I'm now having a new issue: game mode is stuck in 720p. There are no resolution options in the Steam big picture UI. Switching to desktop mode does use the correct resolution (1080p) for my TV. Switching back to game mode switches the resolution back to 720p.

the workaround is using a completely different backend (sdl instead of drm) for gamescope, it might need its own patches to get things like native resolution working again among other things. for now you will just have to set resolution per game i believe. the backend switch was recently added to gamescope so it is fairly new and the sdl backend was added mainly for cards that do not support the drm backend i believe.

devjaizon commented 2 weeks ago

Hi, new version dropped in 2 days ago. Did the rx580 fix came as well? I would install it first before asking, but I don't have any spare SSDs

syhretsit commented 2 weeks ago

Hi, new version dropped in 2 days ago. Did the rx580 fix came as well? I would install it first before asking, but I don't have any spare SSDs

Нi, i have RX470 (also Polaris) Gamesope working, but the user interface is at 720p (needed to add a parameter to the config to fix this) and constantly crashed in games. I rebase to 20240424. It version works fine but in mangohud don't show gpu temperature (in latest version it fixed)

devjaizon commented 2 weeks ago

Hi, new version dropped in 2 days ago. Did the rx580 fix came as well? I would install it first before asking, but I don't have any spare SSDs

Нi, i have RX470 (also Polaris) Gamesope working, but the user interface is at 720p (needed to add a parameter to the config to fix this) and constantly crashed in games. I rebase to 20240424. It version works fine but in mangohud don't show gpu temperature (in latest version it fixed)

Thank you for the reply. I'll test out later on with my RX580.

massatt212 commented 1 week ago

Will Polaris support return or that's it?

devjaizon commented 1 week ago

I tried the new update but it didn't fix for me!