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)
Fri, Dec 6, 2:15 AM
Unknown Object (File)
Mon, Nov 25, 5:27 PM
Unknown Object (File)
Nov 18 2024, 9:43 PM
Unknown Object (File)
Nov 17 2024, 8:52 AM
Unknown Object (File)
Nov 17 2024, 8:50 AM
Unknown Object (File)
Nov 17 2024, 6:26 AM
Unknown Object (File)
Nov 1 2024, 12:39 PM
Unknown Object (File)
Oct 20 2024, 3:12 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.