ValveSoftware / gamescope

SteamOS session compositing window manager
Other
3.12k stars 211 forks source link

FSR and NIS still/again broken (black screen) on nvidia #1111

Open nonchip opened 9 months ago

nonchip commented 9 months ago

because #1005 got closed despite either being still or again broken both for me (on master branch built today) and multiple people in the comments there, i decided to file this ticket.

tried multiple programs, with and without being run by steam, native and proton, glx and vulkan, fullscreen/borderless/windowed, enabling via argument and hotkey; essentially any combination i could imagine.

in all cases, FSR and NIS both result in a completely black output image, with no helpful debug output whatsoever (only difference in output when enabling them is the pipewire video api being informed of the new resolution).

System info:

System:
  Host: firefly Kernel: 6.6.10_1 arch: x86_64 bits: 64 Desktop: KDE Plasma
    v: 5.27.10 Distro: Void Linux
Machine:
  Type: Desktop System: Gigabyte product: AX370-Gaming 3 v: N/A
    serial: <superuser required>
  Mobo: Gigabyte model: AX370-Gaming 3-CF v: x.x
    serial: <superuser required> UEFI: American Megatrends v: F24c
    date: 12/06/2018
CPU:
  Info: 6-core AMD Ryzen 5 2600 [MT MCP] speed (MHz): avg: 1547
    min/max: 1550/3400
Graphics:
  Device-1: NVIDIA GM200 [GeForce GTX 980 Ti] driver: nvidia v: 535.146.02
  Device-2: Creative Live! Cam Sync HD [VF0770]
    driver: snd-usb-audio,uvcvideo type: USB
  Display: wayland server: X.org v: 1.21.1.10 with: Xwayland v: 23.2.3
    compositor: kwin_wayland driver: X: loaded: nvidia gpu: nvidia resolution:
    1: 2560x1440 2: 1680x1050
  API: OpenGL v: 4.6.0 vendor: nvidia v: 535.146.02 renderer: NVIDIA
    GeForce GTX 980 Ti/PCIe/SSE2
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: r8169
Drives:
  Local Storage: total: raw: 7.73 TiB usable: 4.42 TiB used: 3 TiB (67.8%)
Info:
  Processes: 542 Uptime: 55m Memory: total: 32 GiB available: 31.29 GiB
  used: 11.83 GiB (37.8%) Shell: Zsh inxi: 3.3.31
exalented commented 8 months ago

Something I've noticed is that this seems to be happening with the generations Pascal and older. I have a 1080. This only happens when full-screen otherwise it's invisible. gamescope 3.14.3-1

System:
  Host: ArchTower Kernel: 6.8.9-arch1-1 arch: x86_64 bits: 64
  Desktop: Sway v: 1.9 Distro: Arch Linux
Graphics:
  Device-1: NVIDIA GP104 [GeForce GTX 1080] driver: nvidia v: 550.78
  Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 21.1.99
    compositor: Sway v: 1.9 driver: X: loaded: modesetting,nvidia
    gpu: nvidia,nvidia-nvswitch resolution: 1: 1920x1080~60Hz
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.78
    renderer: NVIDIA GeForce GTX 1080/PCIe/SSE2
SysError99 commented 7 months ago

Something I've noticed is that this seems to be happening with the generations Pascal and older. I have a 1080.

Oh my frickin god, you are my saviour! Disabling FSR sovled my issue.

And yes, I second this issue. It's happening on GTX 970.

ademlabs commented 6 months ago

Confirmed this is broken, disabling FSR works.

exalented commented 5 months ago

Is this due to B Frames support that is forced in newer versions of gamescope? https://en.wikipedia.org/wiki/Nvidia_NVENC#Versions https://github.com/ValveSoftware/gamescope/commit/039caccfeaa2174adc3526ace200113df507c49d

Impeta commented 3 months ago

Same exact issue, discrete 1050 Ti mobile card here.

@sharkautarch Do you think you could for the time being, make changes on your NVIDIA gamescope branch so that it's parallel to https://github.com/ValveSoftware/gamescope/commit/039caccfeaa2174adc3526ace200113df507c49d? It's allegedly the last commit ever before FSR got borked wholly on Pascal cards.

Pinging also @Joshua-Ashton for additional possible help.

sharkautarch commented 3 months ago

@Impeta Sure thing Edit: @Impeta I just realized I already have a version of the nvidia-fix branch that includes commit https://github.com/ValveSoftware/gamescope/commit/039caccfeaa2174adc3526ace200113df507c49d : nvidia-fix-latest-upstream

Impeta commented 3 months ago

@sharkautarch Didn't seem to do anything, sadly. Still black screen, on NIS or FSR. For reference, I downloaded the PKGBUILD off this AUR package, pointed its "url=" to your repository branch nvidia-fix-latest-upstream, and it did build successfully and I can use it, yet no dice still for working around the black screen with either former upscaling technologies.

Impeta commented 3 months ago

Tried also building off this very official Valve repository, but I got stuck on ninja -C build/;

ninja: Entering directory `build/'
ninja: error: loading 'build.ninja': No such file or directory

From the research, it seems this repository doesn't provide a "build.ninja" file...?

sharkautarch commented 3 months ago

@Impeta

Tried also building off this very official Valve repository, but I got stuck on ninja -C build/;

Did you forget to do meson setup build?

Impeta commented 3 months ago

@sharkautarch Nevermind! Actually, I was just missing a dependency for building and I skimmed over my meson log. 😅😅😅 I'm gonna try again. One second.

Impeta commented 3 months ago

Seems I can't now really fetch necessary files off gitlab.freedesktop.org, as it's down right now. I will just wait for a day or two.