After last nvidia update, I can’t start any game and vulkan seems to be broken. When I load snapshot before I updated system, everything works fine.
prime-run vulkaninfo
ERROR: [Loader Message] Code 0 : loader_scanned_icd_add: Could not get 'vkCreateInstance' via 'vk_icdGetInstanceProcAddr' for ICD libGLX_nvidia.so.0
ERROR: [Loader Message] Code 0 : vkCreateInstance: Found no drivers!
Cannot create Vulkan instance.
This problem is often caused by a faulty installation of the Vulkan driver or attempting to use a GPU that does not support Vulkan.
ERROR at /usr/src/debug/vulkan-tools/Vulkan-Tools-1.3.255/vulkaninfo/vulkaninfo.h:676:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER
prime-run glxinfo -B
name of display: :0
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 150 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 50
Current serial number in output stream: 51
glxinfo from working snapshot:
prime-run glxinfo -B Čt 24. srpna 2023, 22:56:29
name of display: :0
display: :0 screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
Dedicated video memory: 8192 MB
Total available memory: 8192 MB
Currently available dedicated video memory: 7912 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce RTX 3070 Laptop GPU/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 535.98
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 4.6.0 NVIDIA 535.98
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 535.98
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
535.98 was last working version as seen in my post “glxinfo from working snapshot:”. First two outputs are from not working .104, third one is from working .98
I also can’t start any games after the last nvidia update, but vulkan seems to be working (that is, the 2 commands that the OP used do not give me any errors). Here is the output of
pacman -Qs nvidia
local/egl-wayland 2:1.1.12-1
EGLStream-based Wayland external platform
local/envycontrol 3.2.0-2
CLI tool for Nvidia Optimus graphics mode switching on Linux
local/lib32-nvidia-utils 535.104.05-1
NVIDIA drivers utilities (32-bit)
local/lib32-opencl-nvidia 535.104.05-1
OpenCL implemention for NVIDIA (32-bit)
local/libvdpau 1.5-1
Nvidia VDPAU library
local/libxnvctrl 535.104.05-1
NVIDIA NV-CONTROL X extension
local/nvidia-dkms 535.104.05-1
NVIDIA drivers - module sources
local/nvidia-hook 1.3-1
pacman hook for nvidia
local/nvidia-inst 23-7
Script to setup nvidia drivers (dkms version) in EndeavourOS
local/nvidia-installer-common 23-7
Common scripts for nvidia-installer-dkms and nvidia-inst
local/nvidia-prime 1.0-4
NVIDIA Prime Render Offload configuration and utilities
local/nvidia-settings 535.104.05-1
Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 535.104.05-1
NVIDIA drivers utilities
local/opencl-nvidia 535.104.05-1
OpenCL implemention for NVIDIA
Since vulkaninfo returns error as shown in OP, this does not work eiter:
vkcube
vkEnumerateInstanceExtensionProperties failed to find the VK_KHR_surface extension.
Do you have a compatible Vulkan installable client driver (ICD) installed?
Please look at the Getting Started guide for additional information.
As you can see from my pacman -Qs nvidia command I have both nvidia-utils and lib32-nvidia-utils installed.
Setting environment variable did nothing. And I don’t use optimus, result of glxinfo can be also seen in OP both broken state and working snapshot.
So I have completely reinstalled system. Installed nvidia drivers through nvidia-inst, installed steam to get all vulkan dependencies and problem is somehow solved, vulkan is working. However I am now facing another problem with gpu memory alocation. Will create seperate post for it and paste link here if you want to see: