Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Debian 10 - vulkaninfo - failed with VK_ERROR_INITIALIZATION

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
slayer29179
Posts: 9
Joined: 2017-03-13 18:22

Debian 10 - vulkaninfo - failed with VK_ERROR_INITIALIZATION

#1 Post by slayer29179 »

[Now solved!]

Hi all,

I've been stuck with this issue for a while now so I'm turning to the experts!

I'm trying to turn my system into a gaming machine and I have Steam installed with Proton, Wine etc...

I'm trying to run Witcher 3 but every time I get the following error:
GPU does not meet minimal requirements. Support for DirectX 11 is required.
My GPU is: AMD Radeon™ R9 295X2 and the game runs on Windows 10 fine.

From my research it could be related to the fact I don't have Vulkan installed. So I installed that but everytime I run vulkaninfo I get the following error:

Code: Select all

$ vulkaninfo
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_intel.so: wrong ELF class: ELFCLASS32
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_radeon.so: wrong ELF class: ELFCLASS32
==========
VULKANINFO
==========

Vulkan Instance Version: 1.1.97

/build/vulkan-tools-6bmpQy/vulkan-tools-1.1.97+dfsg1/vulkaninfo/vulkaninfo.c:3845: failed with VK_ERROR_INITIALIZATION_FAILED

I've tried to fix it by researching the error and the closest I have come to, is that I need to be able to run

Code: Select all

amdgpu
which I don't have. (command not found)

So trying to install something called "fglrx-driver" which appears to be the proprietary display driver for AMD.

Other games work fine, so I didn't think I needed the proprietary version.

So I bite the bullet and tried to install "fglrx-driver" but Debian packages don't have it.

Now I'm lost on what to do.

The error with the missing driver I don't think journal would provide any assistance (I'm guessing!) so if you need it, I'll post it :)

Thanks for any help!
Last edited by slayer29179 on 2019-05-21 14:32, edited 2 times in total.

Wheelerof4te
Posts: 1454
Joined: 2015-08-30 20:14

Re: Debian 10 - vulkaninfo - failed with VK_ERROR_INITIALIZA

#2 Post by Wheelerof4te »

EDIT: Just searched for that card, and I see it's GCN 2.0 card, so amdgpu driver should be loaded out of the box. In any case it isn't (which you can check by running lspci -k), do the below workaround. You still need mesa-vulkan-driver to use vulkan.
slayer29179 wrote:So trying to install something called "fglrx-driver" which appears to be the proprietary display driver for AMD.
For the love of all that is Holy, don't do that and brick your system.

All you need to do is install mesa-vulkan-drivers and append this magic incarnation to the GRUB defaul Line:

Code: Select all

radeon.cik_support=0 radeon.si_support=0 amdgpu.cik_support=1 amdgpu.si_support=1
Put that in

Code: Select all

/etc/default/grub
inside the quoatation marks on

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT
Then, run:

Code: Select all

update-grub
with root priviledges. Reboot.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Debian 10 - vulkaninfo - failed with VK_ERROR_INITIALIZA

#3 Post by Head_on_a_Stick »

slayer29179 wrote:

Code: Select all

$ vulkaninfo
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_intel.so: wrong ELF class: ELFCLASS32
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_radeon.so: wrong ELF class: ELFCLASS32
==========
VULKANINFO
==========

Vulkan Instance Version: 1.1.97

/build/vulkan-tools-6bmpQy/vulkan-tools-1.1.97+dfsg1/vulkaninfo/vulkaninfo.c:3845: failed with VK_ERROR_INITIALIZATION_FAILED
Try

Code: Select all

# apt install mesa-vulkan-drivers
You've only got the 32-bit version of those drivers (as installed by the steam package, probably) but vulkaninfo is trying to find the 64-bit libraries.

Also check if amdgpu is loaded, as Wheelerof4te notes.
deadbang

CwF
Global Moderator
Global Moderator
Posts: 2709
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 201 times

Re: Debian 10 - vulkaninfo - failed with VK_ERROR_INITIALIZA

#4 Post by CwF »

Wheelerof4te wrote: ... append this magic incarnation to the GRUB defaul Line:

Code: Select all

radeon.cik_support=0 radeon.si_support=0 amdgpu.cik_support=1 amdgpu.si_support=1
I don't think it needs declared in grub, or that early in the process.
So far I see no issue with a generic addition as follows, and update initramfs instead of grub.
/etc/modprobe.d/amdgpu.conf

Code: Select all

options amdgpu si_support=1
options amdgpu cik_support=1
/etc/modprobe.d/radeon.conf

Code: Select all

options radeon si_support=0
options radeon cik_support=0

slayer29179
Posts: 9
Joined: 2017-03-13 18:22

Re: Debian 10 - vulkaninfo - failed with VK_ERROR_INITIALIZA

#5 Post by slayer29179 »

Thanks Head_on_a_Stick and Wheelerof4te!

Your solutions made it work!

It now shows me the vulkan output and runs the game. With a black screen... But looking online, that looks like I had to disable VSync and now it works.

Thank you very much!

Post Reply