You are not logged in.

#1 2021-04-13 16:59:44

rjahanbakhshi
Member
Registered: 2020-11-26
Posts: 12

virtio experimental vulkan driver

Virtio-experimental vulkan driver is now enabled in the mesa-git AUR package and by installing it, the virtio icd file will be placed at /usr/share/vulkan/icd.d/. For those who are interested to test this new driver, you're going to need to install the latest virglrenderer compiled with venus-experimental=true. virglrenderer-git AUR repo has been added with this option enabled which you install directly. After updating mesa and virglrenderer, you should be able to run tests using vtest on the same host by running virgl_test_server --venus in the background and setting the following environment variables before running your test vulkan applications.

VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/virtio_icd.x86_64.json 
VN_DEBUG=all

For example: 

VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/virtio_icd.x86_64.json VN_DEBUG=all vulkaninfo

Remember to have virgl_test_server --venus running with your gpu driver before running the test applications for example

VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.x86_64.json virgl_test_server --venus

I ran some vulkan demos from https://github.com/SaschaWillems/Vulkan and most of them work nicely. Except for example those that require raytracing extension.

git clone --recursive https://github.com/SaschaWillems/Vulkan.git
cd Vulkan
git submodule init
git submodule update
python download_assets.py
mkdir build
cd build
cmake ..
make
cd bin
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/virtio_icd.x86_64.json VN_DEBUG=all ./gears

With the above you should be able to see the gears or other demos using this driver. 

Furthermore, to use this driver from qemu you're gonna need the VIRTIO_GPU_F_CONTEXT_INIT in the kernel which can be found here https://gitlab.freedesktop.org/virgl/dr … text-init/ also support for VIRTIO_GPU_F_RESOURCE_BLOB by qemu which isn't available at the moment.

Offline

#2 2021-08-05 10:32:25

Quackdoc
Member
Registered: 2021-03-30
Posts: 6

Re: virtio experimental vulkan driver

Looks like a dev from collabora is getting work done in the qemu front. related patches here

https://patchwork.ozlabs.org/project/qe … ies=255477

Offline

Board footer

Powered by FluxBB