vulkaninfo/vulkaninfo.c:3339: failed with VK_ERROR_INITIALIZATION_FAILED

Told to KhronosGroup via Khronosdotorg repo’s github issue system that,
with akmod, GeForce GT710, on FC29, I have this issue.
I can reproduce it on my own code and I seen that
the first call to vkEnumeratePhysicalDevices fails
returning VK_ERROR_INITIALIZATION_FAILED.

I have another machine where my code works,
but only the chip set Intel(R) HD Graphics 630
(Kaby Lake GT2) responds to this enumeration.
While a NVIDIA Corporation G86 GeForce 8400 GS is plugged in.

How to have it work?

The legacy driver for the 8400GS does not have Vulkan support. So no dice there.
With the GT710, do I understand correctly that only the first call to vkEnumeratePhysicalDevices fails but subsequent ones succeed? Is X running on the GT710?

Ok for the 8400GS.

X11 is running (wayland unactivated).
I just tryed, 4 subsequend calls and 4 times the same behaviour :
VK_ERROR_INITIALIZATION_FAILED.

How did I installed the drivers :
dnf install xorg-x11-drv-nvidia-340xx akmod-nvidia-340xx

lsmod | grep nvidia :
nvidia 10584064 85
drm 487424 6 nvidia

Nothing about nouveau loaded.

Driver 340 is legacy, doesn’t support Vulkan. Install the current 415 driver, that should support the GT710 and contains Vulkan.

How to do that with akmod?

dnf remove xorg-x11-drv-nvidia-340xx akmod-nvidia-340xx
dnf install xorg-x11-drv-nvidia akmod-nvidia

done, now fedora says that it wasn’t able to build module and fall back to nouveau.

Made akmods --force as root, says :
Checking kmods exist for 4.19.4-300.fc29.x86_64 [ OK ]
Files needed for building modules against kernel
4.19.4-300.fc29.x86_64 could not be found as the following
directories are missing:
/usr/src/kernels/4.19.4-300.fc29.x86_64/
/lib/modules/4.19.4-300.fc29.x86_64/build/Is the correct ke[FAILED]el package installed?

I wish i’ve never been installing the 340’s version… searching what file to modify…

I have a kernel update pending, trying to get dnf -y update relaunch akmod…

Works perfectly!!! Thanks for all!

In short, for other users:

dnf remove xorg-x11-drv-nvidia-340xx akmod-nvidia-340xx
dnf install xorg-x11-drv-nvidia akmod-nvidia

akmods --force

If that do not works, wait for the next kernel update.

dnf -y update can force it if available.