lavapipe renders black screen for vkcube (and fails other Vulkan programs)
System information
$ inxi -GSC -xx
System: Host: themachine Kernel: 5.14.9-200.fc34.x86_64 x86_64 bits: 64 compiler: gcc v: 2.35.2-5.fc34 Desktop: sway 1.6
dm: GDM Distro: Fedora release 34 (Thirty Four)
CPU: Info: Quad Core model: Intel Core i7-6700K bits: 64 type: MT MCP arch: Skylake-S rev: 3 cache: L2: 8 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 63999
Speed: 800 MHz min/max: 800/4200 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800 8: 800
Graphics: Device-1: Intel HD Graphics 530 vendor: ASUSTeK driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:1912
Device-2: NVIDIA GM204 [GeForce GTX 970] vendor: Micro-Star MSI driver: vfio-pci v: 0.2 bus-ID: 01:00.0
chip-ID: 10de:13c2
Display: wayland server: X.Org 1.21.1.2 compositor: sway driver: loaded: modesetting unloaded: fbdev,vesa
resolution: 2160x3840~60Hz s-dpi: 96
OpenGL: renderer: Mesa Intel HD Graphics 530 (SKL GT2) v: 4.6 Mesa 21.1.8 direct render: Yes
Describe the issue
Running vkcube
on my Fedora 34 displays a black screen with the lavapipe driver. I'm using the Sway window manager.
FWIW, Gio programs result in a crash (X11) or errors (Wayland):
$ go run gioui.org/example/hello@d864fcd60bb5cd2
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
XIO: fatal IO error 0 (Success) on X server ":0"
after 146 requests (146 known processed) with 0 events remaining.
exit status 1
$ go run -tags nox11 gioui.org/example/hello@d864fcd60bb5cd2
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
error marshalling arguments for create_prime_buffer: dup failed: Bad file descriptor
Error marshalling request: Bad file descriptor
2021/10/09 15:49:17 eglInitialize failed: 0x3001
exit status 1
(the eglInitialize error is caused by Gio trying, and failing, to fall back to OpenGL ES).