Page MenuHomeFreeBSD

graphics/mesa-dri: Enable lavapipe
AbandonedPublic

Authored by manu on Feb 25 2022, 9:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 22, 5:34 AM
Unknown Object (File)
Sat, Apr 13, 9:34 PM
Unknown Object (File)
Mon, Mar 25, 4:01 PM
Unknown Object (File)
Jan 7 2024, 11:19 AM
Unknown Object (File)
Jan 7 2024, 11:19 AM
Unknown Object (File)
Jan 7 2024, 11:19 AM
Unknown Object (File)
Jan 7 2024, 11:19 AM
Unknown Object (File)
Jan 7 2024, 10:55 AM
Subscribers

Details

Reviewers
None
Group Reviewers
x11
Summary

Lavapipe is a vulkan driver using llvm.
Useful for platform without native vulkan support.

To squash with 21.3.7 update

MFC: 2022Q1
PR: 257303
Sponsored by: Beckhoff Automation GmbH & Co. KG

Test Plan

Tested with vkcube on rockpro64 without panfrost driver.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

manu requested review of this revision.Feb 25 2022, 9:22 AM
manu created this revision.

That doesn't seems to help vkcube on rockchip.
vkcube still enumerates the GPUs and fails here.
But maybe this will help on other platform (or maybe I've missed something)

manu added a subscriber: br.
In D34371#778459, @manu wrote:

vkcube still enumerates the GPUs and fails here.

For vulkan-loader to find lavapipe it needs corresponding .json file under /usr/local/share/vulkan/icd.d/ that points to .so file.

https://wiki.archlinux.org/title/Vulkan#Software_Vulkan:_lavapipe
https://github.com/KhronosGroup/Vulkan-Loader/blob/master/docs/LoaderInterfaceArchitecture.md#table-of-debug-environment-variables

Add the icd file for lavapipe

In D34371#778459, @manu wrote:

That doesn't seems to help vkcube on rockchip.

Maybe add panfrost to -Dvulkan-drivers=<...>. See https://gitlab.freedesktop.org/mesa/mesa/-/commit/d970fe2e9d6a

In D34371#778459, @manu wrote:

vkcube still enumerates the GPUs and fails here.

For vulkan-loader to find lavapipe it needs corresponding .json file under /usr/local/share/vulkan/icd.d/ that points to .so file.

https://wiki.archlinux.org/title/Vulkan#Software_Vulkan:_lavapipe
https://github.com/KhronosGroup/Vulkan-Loader/blob/master/docs/LoaderInterfaceArchitecture.md#table-of-debug-environment-variables

Yeah thanks.

In D34371#778459, @manu wrote:

That doesn't seems to help vkcube on rockchip.

Maybe add panfrost to -Dvulkan-drivers=<...>. See https://gitlab.freedesktop.org/mesa/mesa/-/commit/d970fe2e9d6a

This will not help for boards without panfrost.
Also panfrost vulkan wasn't tested yet so I'll add the driver when we now it works.