Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

[SOLVED] Issues with Vulkan

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
leylanator
n00b
n00b
Posts: 32
Joined: Fri May 10, 2024 10:44 am

[SOLVED] Issues with Vulkan

  • Quote

Post by leylanator » Sun May 12, 2024 12:21 pm

Continued from another post over by Unsupported Software: viewtopic-t-1168878.html

So, I have been having issues with Vulkan as described there.
I'll post some info here:

make.conf:

Code: Select all

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-march=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

MAKEOPTS="-j16 -l16"
ACCEPT_LICENSE="*"
ACCEPT_KEYWORDS="~amd64"

#FEATURES="candy"
EMERGE_DEFAULT_OPTS="--ask"

VIDEO_CARDS="amdgpu radeon radeonsi"

USE="X alsa bluetooth brotli clang cups dbus extra extras gcc gles2 gpm haptic introspection jack jack-sdk joystick keyboard llvm lv2 mouse opengl osmesa pipewire readline sound ssl touchpad udev vaapi vdpau video vulkan vkd3d vst wacom wayland -networkmanager -ppp -systemd -wow64"
#gpm may need to be unused sometimes
#replace jack-sdk with jack-client if sample rates other than 48K are needed, loses general pipewire graph

INPUT_DEVICES="libinput evdev synaptics joystick"
# NOTE: This stage was built with the bindist Use flag enabled

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C.utf8

GENTOO_MIRRORS="https://mirror.init7.net/gentoo/ \
    rsync://mirror.init7.net/gentoo/ \
    https://mirror.bytemark.co.uk/gentoo/ \
    rsync://mirror.bytemark.co.uk/gentoo/ \
    https://www.mirrorservice.org/sites/distfiles.gentoo.org/ \
    ftp://ftp.mirrorservice.org/sites/distfiles.gentoo.org/ \
    rsync://rsync.mirrorservice.org/distfiles.gentoo.org/"

GRUB_PLATFORMS="efi-64"
inxi -Gxx output:

Code: Select all

Graphics:
  Device-1: AMD Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] vendor: Sapphire
    driver: amdgpu v: kernel arch: RDNA-2 pcie: speed: 16 GT/s lanes: 16 ports:
    active: DP-1,DP-3 empty: DP-2,HDMI-A-1,Writeback-1 bus-ID: 03:00.0
    chip-ID: 1002:73bf
  Device-2: AMD Baffin [Radeon Pro WX 4100] vendor: Hewlett-Packard
    driver: amdgpu v: kernel arch: GCN-4 pcie: speed: 8 GT/s lanes: 4 ports:
    active: none empty: DP-4, DP-5, DP-6, DP-7 bus-ID: 0a:00.0
    chip-ID: 1002:67e3
  Display: x11 server: X.org v: 1.21.1.13 with: Xwayland v: 23.2.6
    compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting,radeon
    alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 4480x1613
  Monitor-1: DP-1 mapped: DisplayPort-0 pos: primary,bottom-l
    model: Idek Iiyama PL2760Q res: 2560x1440 dpi: 109 diag: 685mm (27")
  Monitor-2: DP-3 mapped: DisplayPort-2 pos: top-right model: HP P222va
    res: 1920x1080 dpi: 102 diag: 546mm (21.5")
  API: EGL v: 1.5 platforms: device: 0 drv: radeonsi device: 2 drv: swrast
    gbm: drv: kms_swrast surfaceless: drv: radeonsi x11: drv: radeonsi
    inactive: wayland,device-1
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.0.6 glx-v: 1.4
    direct-render: yes renderer: AMD Radeon RX 6800 XT (radeonsi navi21 LLVM
    17.0.6 DRM 3.57 6.8.9-gentoo-dist) device-ID: 1002:73bf
  API: Vulkan v: 1.3.280 surfaces: xcb,xlib device: 0 type: discrete-gpu
    driver: N/A device-ID: 1002:73bf
To note: I use a 6800XT, the WX4100 is meant to be set up later for VFIO and is not yet plugged into any monitor.

vulkaninfo is where something interesting happened, here's the output in a pastebin: https://pastebin.com/bwJDZ3Am
When I was pasting this into a file using;

Code: Select all

echo "$(vulkaninfo)" >> vulkaninfo.txt
it wrote, but also threw out an error:

Code: Select all

ERROR: [../mesa-24.0.6/src/amd/vulkan/radv_physical_device.c:1813] Code 0 : Could not open device /dev/dri/renderD129: Invalid argument (VK_ERROR_INCOMPATIBLE_DRIVER)
Maybe this could be related to what's causing some games to break as soon as 3D graphics are rendered?

Code: Select all

Assertion failed!

Program:
Z:\storage\S3-4TB\extras\SteamLibrary\steamapps\common\TEKKEN 8\Polaris\Binaries\Win64\Polaris-Win64\Shipping.exe
File: ../src-wine/dlls/winevulkan/loader_thunks.c
Line: 98

Expression "!status && "vkBeginCommandBuffer""

Press OK to exit the program, or Cancel to start the Wine debugger.
I've also noticed that Red Dead Redemption 2 is flashing white lights a lot, and it's in Vulkan rendering mode. So I'm thinking I've got issues with Vulkan, rather than the previously expected WINE or Steam Proton - though, either of them could also have their own, separate or related, problems.

Any and all help is greatly appreciated :)
Last edited by leylanator on Fri Jun 07, 2024 1:31 pm, edited 1 time in total.
Top
builder_247
n00b
n00b
Posts: 1
Joined: Sun May 12, 2024 2:08 pm

  • Quote

Post by builder_247 » Sun May 12, 2024 2:11 pm

Try enabling Resizable BAR in BIOS, see https://gitlab.freedesktop.org/drm/amd/-/issues/3343
Top
leylanator
n00b
n00b
Posts: 32
Joined: Fri May 10, 2024 10:44 am

  • Quote

Post by leylanator » Sun May 12, 2024 6:05 pm

builder_247 wrote:Try enabling Resizable BAR in BIOS, see https://gitlab.freedesktop.org/drm/amd/-/issues/3343
It's looking like I need to update my BIOS, as I'm using the 2019 version. What's a good way of doing it? I don't want to unintentionally brick my motherboard is why I ask.
I'm thinking of borrowing a friend's Windows machine to flash the BIOS files onto a thumb drive, since I don't want to risk messing anything up.

Looks like I'll have to play affected games in Debian for the time being, looking like it's a kernel bug?
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Sun May 12, 2024 8:14 pm

If you are going to use the wx4100 only for vfio, then set it so that the amdgpu driver doesn't grab it.
I would set up vfio pci id options in /etc/modprobe.d/options.conf

I don't believe that polaris based chips work with vulkan.
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
leylanator
n00b
n00b
Posts: 32
Joined: Fri May 10, 2024 10:44 am

  • Quote

Post by leylanator » Mon May 13, 2024 9:46 am

leylanator wrote:
builder_247 wrote:Try enabling Resizable BAR in BIOS, see https://gitlab.freedesktop.org/drm/amd/-/issues/3343
It's looking like I need to update my BIOS, as I'm using the 2019 version. What's a good way of doing it? I don't want to unintentionally brick my motherboard is why I ask.
I decided to format a spare USB I had with FAT32, and extract the motherboard BIOS files in to update from the BIOS settings screen, and it updated just fine.
However, I'm still experiencing the same issues, even after disabling CSM (I don't know how to check if resizable bar is enabled, but it supposedly is for Gigabyte boards by default unless CSM is enabled).
Anon-E-moose wrote:If you are going to use the wx4100 only for vfio, then set it so that the amdgpu driver doesn't grab it.
I would set up vfio pci id options in /etc/modprobe.d/options.conf
Yeah I'll have to get this done at some point anyways, so it's best to get it done and see if that also has the bonus of fixing my issues.
Top
leylanator
n00b
n00b
Posts: 32
Joined: Fri May 10, 2024 10:44 am

  • Quote

Post by leylanator » Tue May 14, 2024 10:49 am

leylanator wrote:
leylanator wrote:
builder_247 wrote:Try enabling Resizable BAR in BIOS, see https://gitlab.freedesktop.org/drm/amd/-/issues/3343
It's looking like I need to update my BIOS, as I'm using the 2019 version. What's a good way of doing it? I don't want to unintentionally brick my motherboard is why I ask.
I decided to format a spare USB I had with FAT32, and extract the motherboard BIOS files in to update from the BIOS settings screen, and it updated just fine.
However, I'm still experiencing the same issues, even after disabling CSM (I don't know how to check if resizable bar is enabled, but it supposedly is for Gigabyte boards by default unless CSM is enabled).
Anon-E-moose wrote:If you are going to use the wx4100 only for vfio, then set it so that the amdgpu driver doesn't grab it.
I would set up vfio pci id options in /etc/modprobe.d/options.conf
Yeah I'll have to get this done at some point anyways, so it's best to get it done and see if that also has the bonus of fixing my issues.
Alright, so I've managed not to set up VFIO properly, which I'll get done in its own time, but what I had managed to do was to not find where Resizable BAR settings were in my BIOS. Apparently they were under Misc settings that I missed out! So, while I was in my BIOS settings, I'd found "Above 4G Decoding" was, in fact, there and disabled (I had assumed it was a default unchanging setting). I enabled it and enabled the setting that spawned from it for Resizable BAR. Might have never found that incidentally during my VFIO setup perusing.
Games are working fine now! I'll even post the solution in the previous forum topic I was on.

BIOS update needed (just drag extracted files into a FAT32 flash drive under 32GB, go into BIOS, update from the Q-Flash utility while the flash drive is plugged in (make sure you don't need a specific USB slot, refer to motherboard manual)), (assuming you're using EFI boot) CSM has to be disabled, then in Misc settings the Above 4G Decoding setting has to be enabled for then Resizable BAR support to be set to auto rather than disabled.
Top
Post Reply

6 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic