[radeon/nvidia] Very big regressions.
System information
System:
- Host: th-arch Kernel: 5.12.13-172-tkg-pds x86_64 bits: 64 compiler: gcc
- v: 11.1.0 Desktop: GNOME 40.2 tk: GTK 3.24.29 wm: gnome-shell
- dm: GDM, LightDM Distro: Artix Linux base: Arch Linux
CPU:
- Info: Dual Core model: AMD Athlon II X2 280 bits: 64 type: MCP arch: K10
- rev: 3 cache: L2: 2 MiB
- flags: lm nx pae sse sse2 sse3 sse4a svm bogomips: 14465
- Speed: 800 MHz min/max: 800/3600 MHz Core speeds (MHz): 1: 800 2: 800
Graphics:
- Device-1: AMD Juniper XT [Radeon HD 6770] vendor: Gigabyte driver: radeon
- v: kernel bus-ID: 01:00.0 chip-ID: 1002:68ba
- Display: x11 server: X.org 1.20.11 compositor: gnome-shell driver:
- loaded: ati,radeon unloaded: fbdev,modesetting,vesa
- resolution: <missing: xdpyinfo>
- OpenGL:
- renderer: AMD JUNIPER (DRM 2.50.0 / 5.12.13-172-tkg-pds LLVM 12.0.0)
- v: 3.3 Mesa 21.1.3 compat-v: 3.1 direct render: Yes
Describe the issue
After the upgrade to version 21 of mesa and higher, various regressions began to pour in, here and there found in games, mostly this is especially noticeable in Minecraft. I'm not even talking about the sometimes sagging FPS - it can be seen with the naked eye, but for some reason the Wine works without any regressions.
Log files as attachment
Log chunk from Minecraft 1.16.5 with Optifine and shaders.
[01:31:42] [main/ERROR]: OpenGL API ERROR: 1 (GL_INVALID_ENUM in glCreateShaderObjectARB(GL_GEOMETRY_SHADER))
java.lang.Exception: Stack trace
at org.lwjgl.opengl.ARBShaderObjects.glCreateShaderObjectARB(Native Method) ~[lwjgl-opengl-3.2.2.jar:build 10]
at net.optifine.shaders.Shaders.createGeomShader(Shaders.java:2813) [Shaders.class:?]
at net.optifine.shaders.Shaders.setupProgram(Shaders.java:2613) [Shaders.class:?]
at net.optifine.shaders.Shaders.init(Shaders.java:2359) [Shaders.class:?]
at net.optifine.shaders.Shaders.beginRender(Shaders.java:4108) [Shaders.class:?]
at dzz.a(GameRenderer.java:949) [dzz.class:?]
at dzz.a(GameRenderer.java:693) [dzz.class:?]
at djz.e(SourceFile:1048) [djz.class:?]
at djz.e(SourceFile:681) [djz.class:?]
at net.minecraft.client.main.Main.main(SourceFile:215) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_292]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_292]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_292]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_292]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:159) [launchwrapper-of-2.2.jar:2.2]
at net.minecraft.launchwrapper.Launch.main(Launch.java:30) [launchwrapper-of-2.2.jar:2.2]
[01:31:42] [main/ERROR]: [Shaders] OpenGL error: 1280 (Invalid enum), program: none, at: create
This error occurs many times in the entire log, as soon as you enable the shader. Downgrading mesa back to version 20.3 solves the problem completely.