Package: vulkan-tools
Version: 1.4.304.0+dfsg1-1
Severity: normal
X-Debbugs-Cc: cele...@gmail.com

Hi,

On my system - an HP Zbook Fury G8 with Intel UHD iGPU + Nvidia Quadro
T1200, running Sid - I think I have all the necessary GPU driver,
tools, and Vulkan pieces installed (all from the official Sid repos),
but vulkaninfo doesn't work when run as an ordinary user:

~$ vulkaninfo --summary
ERROR at ./vulkaninfo/./vulkaninfo.h:1413:vkGetPhysicalDeviceSurfaceSupportKHR 
failed with ERROR_INITIALIZATION_FAILED

Debug messages don't seem to show the problem, just that the failure
occurs when trying the first GPU in its list, the Intel iGPU:

~$ VK_LOADER_DEBUG=all vulkaninfo --summary

...

[Vulkan Loader] DRIVER:         vkCreateDevice layer callstack setup to:
[Vulkan Loader] DRIVER:            <Application>
[Vulkan Loader] DRIVER:              ||
[Vulkan Loader] DRIVER:            <Loader>
[Vulkan Loader] DRIVER:              ||
[Vulkan Loader] DRIVER:            <Device>
[Vulkan Loader] DRIVER:                Using "Intel(R) UHD Graphics (TGL GT1)" 
with driver: "libvulkan_intel.so"
[Vulkan Loader] DEBUG | LAYER:  Unloading layer library 
libVkLayer_MESA_device_select.so
ERROR at ./vulkaninfo/./vulkaninfo.h:1413:vkGetPhysicalDeviceSurfaceSupportKHR 
failed with ERROR_INITIALIZATION_FAILED

Vulkaninfo works fine when run as root:

~# vulkaninfo --summary
'DISPLAY' environment variable not set... skipping surface info
==========
VULKANINFO
==========

Vulkan Instance Version: 1.4.309


Instance Extensions: count = 24

...

Instance Layers: count = 4
--------------------------
VK_LAYER_INTEL_nullhw       INTEL NULL HW                1.1.73   version 1
VK_LAYER_MESA_device_select Linux device selection layer 1.4.303  version 1
VK_LAYER_MESA_overlay       Mesa Overlay layer           1.4.303  version 1
VK_LAYER_NV_optimus         NVIDIA Optimus layer         1.3.242  version 1

Devices:
========
GPU0:
        apiVersion         = 1.4.305
        driverVersion      = 25.0.5
        vendorID           = 0x8086
        deviceID           = 0x9a60
        deviceType         = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU
        deviceName         = Intel(R) UHD Graphics (TGL GT1)
        driverID           = DRIVER_ID_INTEL_OPEN_SOURCE_MESA
        driverName         = Intel open-source Mesa driver
        driverInfo         = Mesa 25.0.5-1
        conformanceVersion = 1.4.0.0
        deviceUUID         = 8680609a-0100-0000-0002-000000000000
        driverUUID         = 7361cdff-533c-3698-35b8-b33c6a136f07
GPU1:
        apiVersion         = 1.3.242
        driverVersion      = 535.247.1.0
        vendorID           = 0x10de
        deviceID           = 0x1fbc
        deviceType         = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU
        deviceName         = NVIDIA T1200 Laptop GPU
        driverID           = DRIVER_ID_NVIDIA_PROPRIETARY
        driverName         = NVIDIA
        driverInfo         = 535.247.01
        conformanceVersion = 1.3.5.0
        deviceUUID         = fd865416-f13f-50e7-3e57-03512ed070f1
        driverUUID         = 71e5ec5e-e2f3-57c8-97d3-cae30f2d0a98
GPU2:
        apiVersion         = 1.4.305
        driverVersion      = 0.0.1
        vendorID           = 0x10005
        deviceID           = 0x0000
        deviceType         = PHYSICAL_DEVICE_TYPE_CPU
        deviceName         = llvmpipe (LLVM 19.1.7, 256 bits)
        driverID           = DRIVER_ID_MESA_LLVMPIPE
        driverName         = llvmpipe
        driverInfo         = Mesa 25.0.5-1 (LLVM 19.1.7)
        conformanceVersion = 1.3.1.1
        deviceUUID         = 6d657361-3235-2e30-2e35-2d3100000000
        driverUUID         = 6c6c766d-7069-7065-5555-494400000000

I don't know if the difference between running as user or as root is based on 
the difference in
permissions or the difference in environment.

I've come across various online discussions of similar problems, but no
explanations / solutions that seem applicable to my case:

https://forums.developer.nvidia.com/t/problem-with-vulkaninfo-under-wayland-and-driver-495-44/194989/3
https://forums.developer.nvidia.com/t/vkgetphysicaldevicesurfacesupportkhr-fails-on-wayland/192180
https://old.reddit.com/r/debian/comments/1h32s4v/little_assistance_with_wayland_and_nvidia_drivers/
https://old.reddit.com/r/vulkan/comments/lcr8ne/vulkaninfo_only_works_with_sudo/

My post to debian-user:
https://lists.debian.org/debian-user/2025/05/msg00242.html

-- System Information:
Debian Release: 13.0
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.12.27-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages vulkan-tools depends on:
ii  libc6               2.41-7
ii  libgcc-s1           14.2.0-19
ii  libstdc++6          14.2.0-19
ii  libvulkan1          1.4.309.0-1
ii  libwayland-client0  1.23.1-3
ii  libx11-6            2:1.8.12-1
ii  libxcb1             1.17.0-2+b1

vulkan-tools recommends no packages.

vulkan-tools suggests no packages.

-- debconf-show failed

Reply via email to