`gl_FragColor' undeclared (AMDGPU) - tested stable Mesa 20.1 and latest git for 20.3 (Game/Wine/Proton)
System: Host: larsl-pc Kernel: 5.9.0-1-MANJARO x86_64 bits: 64 compiler: N/A Desktop: GNOME 3.36.6 tk: GTK 3.24.23 wm: gnome-shell dm: GDM Distro: Manjaro Linux CPU: Topology: 6-Core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen 2 L2 cache: 3072 KiB flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 86278 Speed: 2795 MHz min/max: 2800/3600 MHz Core speeds (MHz): 1: 2795 2: 2795 3: 2795 4: 2791 5: 2791 6: 2792 7: 2795 8: 2792 9: 2795 10: 2795 11: 2794 12: 2795 Graphics: Device-1: AMD Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] vendor: Tul driver: amdgpu v: kernel bus ID: 09:00.0 chip ID: 1002:731f Display: x11 server: X.Org 1.20.9 compositor: gnome-shell driver: amdgpu unloaded: modesetting alternate: ati,fbdev,vesa resolution: 1920x1080 s-dpi: 96 OpenGL: renderer: AMD Radeon RX 5700 XT (NAVI10 DRM 3.39.0 5.9.0-1-MANJARO LLVM 12.0.0) v: 4.6 Mesa 20.3.0-devel (git-447cef4a71) direct render: Yes
- DXVK version: 1.7.1
- Wine/Proton version: lutris-5.7.10-x86_64
Describe the issue
- The problem comes up with a specific game called "Foundation". Here is the incompatibility report on the Proton github page: click
- The game has been reported working on linux by other users using NVIDIA and AMD properitary drivers, but on Mesa the following error occurs: GIST
- The game works on my system using Win10.
- The fragment shader file from the log looks like this: GIST
The issue is around for (at least!) Mesa 19.0.2 / Proton 4.2-4 (~1 1/2 years?), that's when the first user mentioned the compilation error on an AMD GPU via ProtonDB (https://www.protondb.com/app/690830). As already mentioned, the error does not occur on NVIDIA and AMD properitary drivers.
Any extra information would be greatly appreciated
On my research I found a "similar" bug report by a user running MESA drivers getting the same error. The response by the dev was:
The depth engine for Azure Kinect requires OpenGL 4.4, which isn't fully supported by Mesa. Mesa and Nouveau are similar in that they're open-source implementations of the graphics driver. You'll likely need to uninstall the mesa driver in order for the proprietary Intel driver to run if you have both installed. (...) (https://github.com/microsoft/Azure-Kinect-Sensor-SDK/issues/419)
Maybe it helps somehow. If there's anything else I can provide to solve the issue, I'd be happy to help.