Bug 1221216

Summary: [15.6]: xdriinfo: MESA: error: ZINK: vkEnumeratePhysicalDevices failed (VK_ERROR_INITIALIZATION_FAILED)
Product: [openSUSE] openSUSE Distribution Reporter: Felix Miata <mrmazda>
Component: X.OrgAssignee: Gfx Bugs <gfx-bugs>
Status: RESOLVED UPSTREAM QA Contact: Gfx Bugs <gfx-bugs>
Severity: Minor    
Priority: P3 - Medium CC: ecsos
Version: Leap 15.6   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Felix Miata 2024-03-11 02:04:03 UTC
original summary:
[15.6]: xdriinfo: MESA: error: ZINK: vkEnumeratePhysicalDevices failed (VK_ERROR_INITIALIZATION_FAILED)

# xdriinfo
MESA: error: ZINK: vkEnumeratePhysicalDevices failed (VK_ERROR_INITIALIZATION_FAILED)
MESA: error: ZINK: failed to choose pdev
glx: failed to create drisw screen
failed to load driver: zink
Screen 0: swrast
# zypsei Mesa
i+ | libOSMesa8                | package | 22.3.5-150600.76.pm.9 | x86_64 | PackmanE
il | Mesa                      | package | 23.3.4-150600.81.1    | x86_64 | OSS
il | Mesa-demo-egl             | package | 9.0.0-lp155.82.1      | x86_64 | (System Packages)
il | Mesa-demo-x               | package | 8.3.0-1.33            | x86_64 | OSS
il | Mesa-dri                  | package | 23.3.4-150600.81.1    | x86_64 | OSS
il | Mesa-gallium              | package | 23.3.4-150600.81.1    | x86_64 | OSS
il | Mesa-libEGL1              | package | 23.3.4-150600.81.1    | x86_64 | OSS
il | Mesa-libGL1               | package | 23.3.4-150600.81.1    | x86_64 | OSS
il | Mesa-libOpenCL            | package | 23.3.4-150600.81.1    | x86_64 | OSS
il | Mesa-libglapi0            | package | 23.3.4-150600.81.1    | x86_64 | OSS
il | Mesa-libva                | package | 23.3.4-150600.81.1    | x86_64 | OSS
il | Mesa-vulkan-device-select | package | 23.3.4-150600.81.1    | x86_64 | OSS
# rpm -ql Mesa-demo-egl
/usr/bin/eglgears_x11
/usr/bin/eglinfo
/usr/bin/egltri_x11
/usr/bin/peglgears
/usr/bin/xeglgears
/usr/bin/xeglthreads
# zypper se -s demo-egl
...
S  | Name          | Type    | Version          | Arch   | Repository
---+---------------+---------+------------------+--------+------------------
il | Mesa-demo-egl | package | 9.0.0-lp155.82.1 | x86_64 | (System Packages)
# inxi -S
System:
  Host: gx780 Kernel: 6.4.0-150600.9-default arch: x86_64 bits: 64
  Desktop: KDE v: 3.5.10 Distro: openSUSE Leap 15.6 Beta
# inxi -Gaz
Graphics:
  Device-1: Intel 4 Series Integrated Graphics vendor: Dell driver: i915
    v: kernel arch: Gen-5 process: Intel 45nm built: 2008 ports:
    active: DP-1,VGA-1 empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:2e12
    class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.11 compositor: kwin driver: X:
    loaded: modesetting unloaded: fbdev,vesa alternate: intel dri: swrast
    gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3600x1200 s-dpi: 120 s-size: 762x254mm (30.00x10.00")
    s-diag: 803mm (31.62")
  Monitor-1: DP-1 pos: primary,left model: NEC EA243WM serial: <filter>
    built: 2011 res: 1920x1200 hz: 60 dpi: 94 gamma: 1.2
    size: 519x324mm (20.43x12.76") diag: 612mm (24.1") ratio: 16:10 modes:
    max: 1920x1200 min: 640x480
  Monitor-2: VGA-1 pos: right model: Dell P2213 serial: <filter> built: 2012
    res: 1680x1050 hz: 60 dpi: 90 gamma: 1.2 size: 473x296mm (18.62x11.65")
    diag: 558mm (22") ratio: 16:10 modes: max: 1680x1050 min: 720x400
  API: EGL v: 1.5 hw: drv: intel crocus platforms: device: 0 drv: crocus
    device: 1 drv: swrast surfaceless: drv: crocus x11: drv: swrast
    inactive: gbm,wayland
  API: OpenGL v: 4.5 compat-v: 2.1 vendor: mesa v: 23.3.4 glx-v: 1.4
    direct-render: yes renderer: llvmpipe (LLVM 17.0.6 128 bits)
    device-ID: ffffffff:ffffffff memory: 7.42 GiB unified: yes
# rpm -qi Mesa-demo-egl
Name        : Mesa-demo-egl
Version     : 9.0.0
Release     : lp155.82.1
Architecture: x86_64
Install Date: Thu Oct 12 23:26:59 2023
Group       : Development/Tools/Other
Size        : 609008
License     : MIT
Signature   : RSA/SHA256, Sun Sep 10 18:02:06 2023, Key ID 8b23a9a7780504e9
Source RPM  : Mesa-demo-9.0.0-lp155.82.1.src.rpm
Build Date  : Sun Sep 10 18:01:41 2023
Build Host  : h02-ch1b
Relocations : (not relocatable)
Packager    : https://www.suse.com/
Vendor      : obs://build.opensuse.org/X11
URL         : https://www.mesa3d.org
Summary     : EGL-based demos
Description :
This package contains some common EGL-based demos.
Distribution: X11:XOrg / openSUSE_Leap_15.5
# zypper lr
Repository priorities in effect:                                                                                                                             (See 'zypper lr -P' for details)
      90 (raised priority)  :  1 repository
      99 (default priority) :  8 repositories

# | Alias        | Enabled | GPG Check | URI
--+--------------+---------+-----------+------------------------------------------------------------------------
1 | KDE3         | Yes     | (r ) Yes  | http://download.opensuse.org/repositories/KDE:/KDE3/15.6/
2 | NonOSS       | Yes     | (r ) Yes  | http://download.opensuse.org/distribution/leap/15.6/repo/non-oss/
3 | OSS          | Yes     | (r ) Yes  | http://download.opensuse.org/distribution/leap/15.6/repo/oss/
4 | PackmanE     | Yes     | (r ) Yes  | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_Leap_15.6/Essentials
5 | Update       | Yes     | (r ) Yes  | http://download.opensuse.org/update/leap/15.6/oss/
6 | UpdateBP     | Yes     | (r ) Yes  | http://download.opensuse.org/update/leap/15.6/backports/
7 | UpdateNonOSS | Yes     | (r ) Yes  | http://download.opensuse.org/update/leap/15.6/non-oss/
8 | UpdateSLE    | Yes     | (r ) Yes  | http://download.opensuse.org/update/leap/15.6/sle/
9 | openh264     | Yes     | (r ) Yes  | http://codecs.opensuse.org/openh264/openSUSE_Leap/
# opi eglinfo
Searching repos for: eglinfo
No package found.
#

xdriinfo fails same in IceWM session.

Is bug 1218581 connected to this?

Is eglinfo is not currently packaged anywhere for Leap?
# inxi -S
System:
  Host: gx780 Kernel: 6.6.13-200.fc39.x86_64 arch: x86_64 bits: 64
  Console: pty pts/0 Distro: Fedora Linux 39 (Thirty Nine)
# rpm -ql egl-utils
/usr/bin/eglinfo
/usr/bin/es2_info
/usr/lib/.build-id
/usr/lib/.build-id/50/a40d1343f4d47779481a03c95f0ba9746fe684.1
/usr/lib/.build-id/d7/3ac362feebb69683b38faca459c9bec3a69f59.1
Comment 1 Felix Miata 2024-03-11 05:01:17 UTC
I've found other GPUs and releases have produced same or similar errors here as far back as TW20231228, which I paid no attention to at the time, and also in Leap 15.5, Mageia 9 and Debian Trixie/13:
GeForce NV34 10de:0322
Intel 845G 8086:2562
Radeon Express RC410 1002:5a61
Radeon RV516 1002:7183

Other oldies produce varying messages:
Radeon RV200 1002:5157 (15.5)
# xdriinfo
radeon: Invalid PCI ID.
libGL error: glx: failed to create dri2 screen
libGL error: failed to load driver: radeonsi
Screen 0: swrast

Intel 865G 8086:2572 (TW20231228)
# xdriinfo
MESA: warning: Driver does not support the 0x2572 PCI ID.
libGL error: glx: failed to create dri2 screen
libGL error: failed to load driver: iris
Screen 0: swrast

Which upstream do these error messages belong to?
Comment 2 Stefan Dirsch 2024-03-11 09:22:08 UTC
eglinfo --> Mesa-demo-egl

The assumed bug you see is a feature. Instead of falling back to software-only 'swrast' GL driver, Mesa now tries to open zink as OpenGL wrapper driver for a possibly existing Vulkan driver. But in the end you see the fallback to "swrast" driver.

xdriinfo
[...]
Screen 0: swrast

I agree it's misleading.
Comment 3 Stefan Dirsch 2024-03-12 11:37:35 UTC
(In reply to Stefan Dirsch from comment #2)
> eglinfo --> Mesa-demo-egl
> 
> The assumed bug you see is a feature. Instead of falling back to
> software-only 'swrast' GL driver, Mesa now tries to open zink as OpenGL
> wrapper driver for a possibly existing Vulkan driver. But in the end you see
> the fallback to "swrast" driver.
> 
> xdriinfo
> [...]
> Screen 0: swrast
> 
> I agree it's misleading.

I opened a ticket now upstream:

  https://gitlab.freedesktop.org/mesa/mesa/-/issues/10802
Comment 4 Stefan Dirsch 2024-03-12 11:39:17 UTC
(In reply to Stefan Dirsch from comment #2)
> eglinfo --> Mesa-demo-egl

I've openend a separate bug now for this (boo#1221286).
Comment 5 Stefan Dirsch 2024-03-12 11:39:50 UTC
(In reply to Stefan Dirsch from comment #3)
> > The assumed bug you see is a feature. Instead of falling back to
> > software-only 'swrast' GL driver, Mesa now tries to open zink as OpenGL
> > wrapper driver for a possibly existing Vulkan driver. But in the end you see
> > the fallback to "swrast" driver.
> > 
> > xdriinfo
> > [...]
> > Screen 0: swrast
> > 
> > I agree it's misleading.
> 
> I opened a ticket now upstream:
> 
>   https://gitlab.freedesktop.org/mesa/mesa/-/issues/10802

Closing as upstream. Feel free to watch it.