Try to building mesa for Linux with only venus driver, the zink driver not working
mesa 22.0
meson build/guest \
-Dprefix=/usr \
-Dgallium-drivers=zink \
-Dbuildtype=debugoptimized \
-Dllvm=disabled \
-Dglx=dri \
-Degl=enabled \
-Dgbm=enabled \
-Dgallium-vdpau=disabled \
-Dvulkan-drivers=virtio-experimental \
-Dvalgrind=disabled
The testing result:
lygstate@lygstate-Standard-PC-Q35-ICH9-2009:/usr/share/vulkan$ glxinfo
name of display: :0
Error: couldn't find RGB GLX visual or fbconfig
lygstate@lygstate-Standard-PC-Q35-ICH9-2009:/usr/share/vulkan$ vulkaninfo | grep deviceName
deviceName = Virtio-GPU Venus (llvmpipe (LLVM 13.0.0, 256 bits))
vulkan: No DRI3 support detected - required for presentation
Note: you can probably enable DRI3 in your Xorg config
vulkan: No DRI3 support detected - required for presentation
Note: you can probably enable DRI3 in your Xorg config
lygstate@lygstate-Standard-PC-Q35-ICH9-2009:/usr/share/vulkan$ vulkaninfo | grep version
VK_LAYER_MESA_device_select (Linux device selection layer) Vulkan version 1.2.73, layer version 1:
VK_LAYER_MESA_overlay (Mesa Overlay layer) Vulkan version 1.1.73, layer version 1:
vulkan: No DRI3 support detected - required for presentation
Note: you can probably enable DRI3 in your Xorg config
vulkan: No DRI3 support detected - required for presentation
Note: you can probably enable DRI3 in your Xorg config
VkPhysicalDeviceSamplerYcbcrConversionFeatures:
samplerYcbcrConversion = false
samplerYcbcrConversion = false
lygstate@lygstate-Standard-PC-Q35-ICH9-2009:/usr/share/vulkan$