Is xvfb (with Mesa 19.2) compatible with Vulkan?

天大地大妈咪最大 提交于 2021-01-27 05:31:40

问题


I'm trying to run a Vulkan-based graphical application on a headless Ubuntu 19.10 virtual machine, via xvfb.

Starting from a bare Ubuntu 19.10 image (created using lxc), I prep the machine as follows:

> sudo apt update
> sudo apt install -y xvfb mesa-vulkan-drivers vulkan-tools

I then run the following two commands:

In Terminal 1: Start XVFB

Xvfb :1 -screen 0 1024x768x24

In Terminal 2: Run vulkaninfo

> DISPLAY=:1 vulkaninfo 
==========
VULKANINFO
==========

Vulkan Instance Version: 1.1.114

/build/vulkan-tools-IZAxVX/vulkan-tools-1.1.114.0+dfsg1/vulkaninfo/vulkaninfo.c:5884: 
failed with VK_ERROR_INITIALIZATION_FAILED

(Running my own custom Vulkan application yields a similar failure.)

From what I understand, Xvfb depends on mesa, and I'm using Mesa 19.2.1

And, based on the Mesa 19.2.1 release notes, it is supposed to support Vulkan:

"Mesa 19.2.1 implements the Vulkan 1.1 API, but the version reported by the apiVersion property of the VkPhysicalDeviceProperties struct depends on the particular driver being used."

Question: Is it reasonable to expect that vulkan apps would work with xvfb on Ubuntu 19.10, especially since the latest mesa releases claim to support Vulkan?

Versions of relevant some packages that I'm using:

> apt-cache show xvfb | grep Version
Version: 2:1.20.5+git20191008-0ubuntu1
> apt-cache show mesa-vulkan-drivers | grep Version
Version: 19.2.1-1ubuntu1
> apt-cache show libvulkan1 | grep Version
Version: 1.1.114.0-1
> apt-cache show vulkan-tools | grep Version
Version: 1.1.114.0+dfsg1-1

来源:https://stackoverflow.com/questions/58631962/is-xvfb-with-mesa-19-2-compatible-with-vulkan

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!