#Vulkan not working - AMD GPU/CPU

10 messages · Page 1 of 1 (latest)

chilly nova
#

I have a AMD A6 7400K - Radeon R5 and any game that uses Vulkan just refuses to work. Even Godot 4 simply has 1 fps and visual glitches.
I can use Godot 3 fine because it uses GLES2 / GLES3. I have both Linux and Windows installed. This problem only affects Linux Mint.
I can boot on Windows and Godot 4 runs flawlessly, and so does any Vulkan game (Portal 2 with -vulkan, etc).

And recently, after i've updated to Linux Mint 21.3 Virginia, even Minecraft refuses to work. Vanilla minecraft (as well as modded) crashes to desktop with this error:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f2045672615, pid=128, tid=129
#
# JRE version: OpenJDK Runtime Environment 21.9 (17.0.9+7) (build 17.0.9+7)
# Java VM: OpenJDK 64-Bit Server VM 21.9 (17.0.9+7, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  [radeonsi_dri.so+0x7f0615]
#
# Core dump will be written. Default location: Core dumps may be processed with "/lib/systemd/systemd-coredump %P %u %g %s %t 9223372036854775808 %h" (or dumping to /home/[USER]/.var/app/org.prismlauncher.PrismLauncher/data/PrismLauncher/instances/1.20.4/.minecraft/core.128)
#
# An error report file with more information is saved as:
# /home/[USER]/.var/app/org.prismlauncher.PrismLauncher/data/PrismLauncher/instances/1.20.4/.minecraft/hs_err_pid128.log
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Process crashed with exitcode 6.```
This seems related to the Radeon GPU. (I've replaced my name with [USER] in the logs).
elder wraith
#

Well, that thing is not fast, but I think that iGPU is a GCN core, so it should be covered by the amdgpu driver. Please share the output of inxi -Gxxxz, so we can check what is loaded for it.

chilly nova
#

Hi. Sorry for the late reply. Between me posting and your answer i tried on my own to switch the kernel driver to use amdgpu instead of radeon. Once i reverted to radeon somehow, minecraft works. But still, anything Vulkan refuses to work. Let me run the command..

elder wraith
#

That iGPU is very old, it will at best have partial Vulkan support. But from my memory, Minecraft will use openGL anyway. The AMD openGL driver in amdgpu has quite recently improved a lot, which gave it huge gains in (among other things) Minecraft. But I am not sure if this applies to your old GCN chip.

chilly nova
#

Here's the result of the command. I forgot to send

#
  Device-1: AMD Kaveri [Radeon R5 Graphics] vendor: ASRock driver: radeon
    v: kernel ports: active: HDMI-A-1 empty: DVI-D-1,VGA-1 bus-ID: 00:01.0
    chip-ID: 1002:1315 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.4 compositor: xfwm v: 4.18.0 driver:
    X: loaded: ati,radeon unloaded: fbdev,modesetting,vesa gpu: radeon
    display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 2560x1080 s-dpi: 96 s-size: 677x285mm (26.7x11.2")
    s-diag: 735mm (28.9")
  Monitor-1: HDMI-0 mapped: HDMI-A-1 model: LG (GoldStar) 25UM58G
    serial: <filter> res: 2560x1080 hz: 60 dpi: 97 size: 673x284mm (26.5x11.2")
    diag: 730mm (28.8") modes: max: 2560x1080 min: 720x400
  OpenGL: renderer: KAVERI ( LLVM 15.0.7 DRM 2.50 5.15.0-100-generic)
    v: 4.5 Mesa 23.2.1-1ubuntu3.1~22.04.2 direct render: Yes```
#

What confuses me is that the Vulkan stuff works in Windows, just not in Linux. For example: Godot 4 will run fine in Windows, but absolutely dies in Linux.

#

So i figured it'd be something with drivers, and from there i don't understand enough to fix it myself

elder wraith
#

This here is probably the issue: driver: radeon
The current, up-to-date driver is amdgpu. I checked, and support for this extends all the way back to the GCN architecture (Graphics Core Next, an AMD-internal codename). Your iGPU should be GCN, so it should be supported by amdgpu. It is possible that you can change or force this, but I would not know how. With the amdgpu driver, you should have Vulkan support. The radeon driver is ancient, likely lacking that support.
Here is a relevant discussion, perhaps the fix is in there: https://askubuntu.com/questions/1266616/how-can-i-use-amdgpu-instead-of-radeon-drivers-on-20-04