* [PR PATCH] mesa: update to 21.3.3 and add Broadcom vulkan driver
@ 2021-12-31 2:47 sug0
2022-01-02 1:29 ` [PR PATCH] [Updated] " sug0
` (14 more replies)
0 siblings, 15 replies; 16+ messages in thread
From: sug0 @ 2021-12-31 2:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1465 bytes --]
There is a new pull request by sug0 against master on the void-packages repository
https://github.com/sug0/void-packages mesa-vulkan-rpi
https://github.com/void-linux/void-packages/pull/34778
mesa: update to 21.3.3 and add Broadcom vulkan driver
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, aarch64
---
This package builds successfully for `mesa` 21.3.3. Additionally, I created a new subpackage to build vulkan drivers for the Raspberry Pi 4. They seem to be working correctly, given the output of `vulkaninfo` from `Vulkan-Tools`, but I haven't actually tested any graphical workload. For whatever reason, `vkcube` is missing from `Vulkan-Tools` in `aarch64`.
A patch file from https://github.com/void-linux/void-packages/pull/34778.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-mesa-vulkan-rpi-34778.patch --]
[-- Type: text/x-diff, Size: 2693 bytes --]
From c41b56f42c8348cc93b50d1f41b22235bb96accf Mon Sep 17 00:00:00 2001
From: Tiago Carvalho <sugoiuguu@tfwno.gf>
Date: Fri, 31 Dec 2021 02:01:54 +0000
Subject: [PATCH 1/2] mesa: build rpi vulkan driver
---
srcpkgs/mesa-vulkan-broadcom | 1 +
srcpkgs/mesa/template | 10 ++++++++++
2 files changed, 11 insertions(+)
create mode 120000 srcpkgs/mesa-vulkan-broadcom
diff --git a/srcpkgs/mesa-vulkan-broadcom b/srcpkgs/mesa-vulkan-broadcom
new file mode 120000
index 000000000000..1ad1bbec7ab3
--- /dev/null
+++ b/srcpkgs/mesa-vulkan-broadcom
@@ -0,0 +1 @@
+mesa
\ No newline at end of file
diff --git a/srcpkgs/mesa/template b/srcpkgs/mesa/template
index 42bc12fbf877..c99c2a57b3a4 100644
--- a/srcpkgs/mesa/template
+++ b/srcpkgs/mesa/template
@@ -115,10 +115,12 @@ fi
if [ "$_have_arm" ]; then
_gallium_drivers+=",kmsro"
_gallium_drivers+=",v3d,vc4,freedreno,etnaviv,lima,panfrost"
+ _vulkan_drivers+=",broadcom"
# transitional dummy packages
subpackages+=" mesa-kmsro-dri mesa-v3d-dri mesa-vc4-dri"
subpackages+=" mesa-etnaviv-dri mesa-freedreno-dri"
subpackages+=" mesa-lima-dri mesa-panfrost-dri"
+ subpackages+=" mesa-vulkan-broadcom"
fi
if [ "$_have_virgl" ]; then
@@ -354,6 +356,14 @@ mesa-vulkan-radeon_package() {
}
}
+mesa-vulkan-broadcom_package() {
+ short_desc="Mesa Broadcom Vulkan driver"
+ pkg_install() {
+ vmove "usr/share/vulkan/icd.d/broadcom_icd*.json"
+ vmove "usr/lib/libvulkan_broadcom.so"
+ }
+}
+
mesa-vulkan-overlay-layer_package() {
short_desc="Vulkan layer to display information about the running application"
pkg_install() {
From 14b57013ab31a6a4faa0511656a1261387a66537 Mon Sep 17 00:00:00 2001
From: Tiago Carvalho <sugoiuguu@tfwno.gf>
Date: Fri, 31 Dec 2021 02:02:50 +0000
Subject: [PATCH 2/2] mesa: update to 21.3.3
---
srcpkgs/mesa/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/mesa/template b/srcpkgs/mesa/template
index c99c2a57b3a4..611cc0d25f57 100644
--- a/srcpkgs/mesa/template
+++ b/srcpkgs/mesa/template
@@ -1,6 +1,6 @@
# Template file for 'mesa'
pkgname=mesa
-version=21.3.2
+version=21.3.3
revision=1
build_style=meson
configure_args="-Dglvnd=true -Dshared-glapi=enabled -Dgbm=enabled -Degl=enabled
@@ -22,7 +22,7 @@ license="MIT, LGPL-2.1-or-later"
homepage="https://www.mesa3d.org/"
changelog="https://docs.mesa3d.org/relnotes/${version}.html"
distfiles="https://mesa.freedesktop.org/archive/mesa-${version}.tar.xz"
-checksum=e2e7bafb8307e7abc3bf982f39382fae3619c84b45504920a21504be52f126bd
+checksum=ad7f4613ea7c5d08d9fcb5025270199e6ceb9aa99fd72ee572b70342240a8121
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
configure_args+=" -Duse-elf-tls=false"
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR PATCH] [Updated] mesa: update to 21.3.3 and add Broadcom vulkan driver
2021-12-31 2:47 [PR PATCH] mesa: update to 21.3.3 and add Broadcom vulkan driver sug0
@ 2022-01-02 1:29 ` sug0
2022-01-02 1:37 ` [PR PATCH] [Closed]: " sug0
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: sug0 @ 2022-01-02 1:29 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1519 bytes --]
There is an updated pull request by sug0 against master on the void-packages repository
https://github.com/sug0/void-packages mesa-vulkan-rpi
https://github.com/void-linux/void-packages/pull/34778
mesa: update to 21.3.3 and add Broadcom vulkan driver
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, aarch64
---
This package builds successfully for `mesa` 21.3.3. Additionally, I created a new subpackage to build vulkan drivers for the Raspberry Pi 4. They seem to be working correctly, given the output of `vulkaninfo` from `Vulkan-Tools`, but I haven't actually tested any graphical workload. For whatever reason, `vkcube` is missing from `Vulkan-Tools` in `aarch64`.
This PR incorporates the changes from #34768
A patch file from https://github.com/void-linux/void-packages/pull/34778.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-mesa-vulkan-rpi-34778.patch --]
[-- Type: text/x-diff, Size: 2264 bytes --]
From bd17ddc7a4e4c1434581a4f4adc052cb67789c08 Mon Sep 17 00:00:00 2001
From: Tiago Carvalho <sugoiuguu@tfwno.gf>
Date: Fri, 31 Dec 2021 02:01:54 +0000
Subject: [PATCH] mesa: update to 21.3.3
---
srcpkgs/mesa-vulkan-broadcom | 1 +
srcpkgs/mesa/template | 14 ++++++++++++--
2 files changed, 13 insertions(+), 2 deletions(-)
create mode 120000 srcpkgs/mesa-vulkan-broadcom
diff --git a/srcpkgs/mesa-vulkan-broadcom b/srcpkgs/mesa-vulkan-broadcom
new file mode 120000
index 000000000000..1ad1bbec7ab3
--- /dev/null
+++ b/srcpkgs/mesa-vulkan-broadcom
@@ -0,0 +1 @@
+mesa
\ No newline at end of file
diff --git a/srcpkgs/mesa/template b/srcpkgs/mesa/template
index 42bc12fbf877..611cc0d25f57 100644
--- a/srcpkgs/mesa/template
+++ b/srcpkgs/mesa/template
@@ -1,6 +1,6 @@
# Template file for 'mesa'
pkgname=mesa
-version=21.3.2
+version=21.3.3
revision=1
build_style=meson
configure_args="-Dglvnd=true -Dshared-glapi=enabled -Dgbm=enabled -Degl=enabled
@@ -22,7 +22,7 @@ license="MIT, LGPL-2.1-or-later"
homepage="https://www.mesa3d.org/"
changelog="https://docs.mesa3d.org/relnotes/${version}.html"
distfiles="https://mesa.freedesktop.org/archive/mesa-${version}.tar.xz"
-checksum=e2e7bafb8307e7abc3bf982f39382fae3619c84b45504920a21504be52f126bd
+checksum=ad7f4613ea7c5d08d9fcb5025270199e6ceb9aa99fd72ee572b70342240a8121
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
configure_args+=" -Duse-elf-tls=false"
@@ -115,10 +115,12 @@ fi
if [ "$_have_arm" ]; then
_gallium_drivers+=",kmsro"
_gallium_drivers+=",v3d,vc4,freedreno,etnaviv,lima,panfrost"
+ _vulkan_drivers+=",broadcom"
# transitional dummy packages
subpackages+=" mesa-kmsro-dri mesa-v3d-dri mesa-vc4-dri"
subpackages+=" mesa-etnaviv-dri mesa-freedreno-dri"
subpackages+=" mesa-lima-dri mesa-panfrost-dri"
+ subpackages+=" mesa-vulkan-broadcom"
fi
if [ "$_have_virgl" ]; then
@@ -354,6 +356,14 @@ mesa-vulkan-radeon_package() {
}
}
+mesa-vulkan-broadcom_package() {
+ short_desc="Mesa Broadcom Vulkan driver"
+ pkg_install() {
+ vmove "usr/share/vulkan/icd.d/broadcom_icd*.json"
+ vmove "usr/lib/libvulkan_broadcom.so"
+ }
+}
+
mesa-vulkan-overlay-layer_package() {
short_desc="Vulkan layer to display information about the running application"
pkg_install() {
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR PATCH] [Closed]: mesa: update to 21.3.3 and add Broadcom vulkan driver
2021-12-31 2:47 [PR PATCH] mesa: update to 21.3.3 and add Broadcom vulkan driver sug0
2022-01-02 1:29 ` [PR PATCH] [Updated] " sug0
@ 2022-01-02 1:37 ` sug0
2022-01-02 1:37 ` [PR PATCH] [Updated] " sug0
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: sug0 @ 2022-01-02 1:37 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1361 bytes --]
There's a closed pull request on the void-packages repository
mesa: update to 21.3.3 and add Broadcom vulkan driver
https://github.com/void-linux/void-packages/pull/34778
Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, aarch64
---
This package builds successfully for `mesa` 21.3.3. Additionally, I created a new subpackage to build vulkan drivers for the Raspberry Pi 4. They seem to be working correctly, given the output of `vulkaninfo` from `Vulkan-Tools`, but I haven't actually tested any graphical workload. For whatever reason, `vkcube` is missing from `Vulkan-Tools` in `aarch64`.
This PR incorporates the changes from #34768
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR PATCH] [Updated] mesa: update to 21.3.3 and add Broadcom vulkan driver
2021-12-31 2:47 [PR PATCH] mesa: update to 21.3.3 and add Broadcom vulkan driver sug0
2022-01-02 1:29 ` [PR PATCH] [Updated] " sug0
2022-01-02 1:37 ` [PR PATCH] [Closed]: " sug0
@ 2022-01-02 1:37 ` sug0
2022-01-03 21:54 ` mesa: " ericonr
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: sug0 @ 2022-01-02 1:37 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1519 bytes --]
There is an updated pull request by sug0 against master on the void-packages repository
https://github.com/sug0/void-packages mesa-vulkan-rpi
https://github.com/void-linux/void-packages/pull/34778
mesa: update to 21.3.3 and add Broadcom vulkan driver
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, aarch64
---
This package builds successfully for `mesa` 21.3.3. Additionally, I created a new subpackage to build vulkan drivers for the Raspberry Pi 4. They seem to be working correctly, given the output of `vulkaninfo` from `Vulkan-Tools`, but I haven't actually tested any graphical workload. For whatever reason, `vkcube` is missing from `Vulkan-Tools` in `aarch64`.
This PR incorporates the changes from #34768
A patch file from https://github.com/void-linux/void-packages/pull/34778.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-mesa-vulkan-rpi-34778.patch --]
[-- Type: text/x-diff, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: mesa: add Broadcom vulkan driver
2021-12-31 2:47 [PR PATCH] mesa: update to 21.3.3 and add Broadcom vulkan driver sug0
` (2 preceding siblings ...)
2022-01-02 1:37 ` [PR PATCH] [Updated] " sug0
@ 2022-01-03 21:54 ` ericonr
2022-01-03 22:24 ` [PR PATCH] [Updated] " sug0
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ericonr @ 2022-01-03 21:54 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 176 bytes --]
New comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/pull/34778#issuecomment-1004384209
Comment:
Hi! Did you mean to close this PR?
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR PATCH] [Updated] mesa: add Broadcom vulkan driver
2021-12-31 2:47 [PR PATCH] mesa: update to 21.3.3 and add Broadcom vulkan driver sug0
` (3 preceding siblings ...)
2022-01-03 21:54 ` mesa: " ericonr
@ 2022-01-03 22:24 ` sug0
2022-01-03 22:24 ` sug0
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: sug0 @ 2022-01-03 22:24 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1449 bytes --]
There is an updated pull request by sug0 against master on the void-packages repository
https://github.com/sug0/void-packages mesa-vulkan-rpi
https://github.com/void-linux/void-packages/pull/34778
mesa: add Broadcom vulkan driver
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, aarch64
---
I created a new subpackage to build vulkan drivers for the Raspberry Pi 4. They seem to be working correctly, given the output of `vulkaninfo` from `Vulkan-Tools`, but I haven't actually tested any graphical workload, since `vkcube` is missing from `Vulkan-Tools` in `aarch64`.
P.S. -- I removed the update to 21.3.3 to keep this PR more feature isolated.
A patch file from https://github.com/void-linux/void-packages/pull/34778.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-mesa-vulkan-rpi-34778.patch --]
[-- Type: text/x-diff, Size: 1596 bytes --]
From 1417beec6b0aa16ea0f2311aeb33eb44812b26be Mon Sep 17 00:00:00 2001
From: Tiago Carvalho <sugoiuguu@tfwno.gf>
Date: Sun, 2 Jan 2022 01:43:58 +0000
Subject: [PATCH] mesa: build broadcom vulkan drivers
---
srcpkgs/mesa-vulkan-broadcom | 1 +
srcpkgs/mesa/template | 10 ++++++++++
2 files changed, 11 insertions(+)
create mode 120000 srcpkgs/mesa-vulkan-broadcom
diff --git a/srcpkgs/mesa-vulkan-broadcom b/srcpkgs/mesa-vulkan-broadcom
new file mode 120000
index 000000000000..1ad1bbec7ab3
--- /dev/null
+++ b/srcpkgs/mesa-vulkan-broadcom
@@ -0,0 +1 @@
+mesa
\ No newline at end of file
diff --git a/srcpkgs/mesa/template b/srcpkgs/mesa/template
index 42bc12fbf877..c99c2a57b3a4 100644
--- a/srcpkgs/mesa/template
+++ b/srcpkgs/mesa/template
@@ -115,10 +115,12 @@ fi
if [ "$_have_arm" ]; then
_gallium_drivers+=",kmsro"
_gallium_drivers+=",v3d,vc4,freedreno,etnaviv,lima,panfrost"
+ _vulkan_drivers+=",broadcom"
# transitional dummy packages
subpackages+=" mesa-kmsro-dri mesa-v3d-dri mesa-vc4-dri"
subpackages+=" mesa-etnaviv-dri mesa-freedreno-dri"
subpackages+=" mesa-lima-dri mesa-panfrost-dri"
+ subpackages+=" mesa-vulkan-broadcom"
fi
if [ "$_have_virgl" ]; then
@@ -354,6 +356,14 @@ mesa-vulkan-radeon_package() {
}
}
+mesa-vulkan-broadcom_package() {
+ short_desc="Mesa Broadcom Vulkan driver"
+ pkg_install() {
+ vmove "usr/share/vulkan/icd.d/broadcom_icd*.json"
+ vmove "usr/lib/libvulkan_broadcom.so"
+ }
+}
+
mesa-vulkan-overlay-layer_package() {
short_desc="Vulkan layer to display information about the running application"
pkg_install() {
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: mesa: add Broadcom vulkan driver
2021-12-31 2:47 [PR PATCH] mesa: update to 21.3.3 and add Broadcom vulkan driver sug0
` (4 preceding siblings ...)
2022-01-03 22:24 ` [PR PATCH] [Updated] " sug0
@ 2022-01-03 22:24 ` sug0
2022-01-03 22:24 ` sug0
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: sug0 @ 2022-01-03 22:24 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 412 bytes --]
New comment by sug0 on void-packages repository
https://github.com/void-linux/void-packages/pull/34778#issuecomment-1004399265
Comment:
> Hi! Did you mean to close this PR?
Hello @ericonr. I closed it for the time being, since I'm not sure if I need to include the new library in `common/shlibs`. The `radeon` vulkan driver seems to be missing from `common/shlibs`... Anyhow, otherwise, it should be ready.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: mesa: add Broadcom vulkan driver
2021-12-31 2:47 [PR PATCH] mesa: update to 21.3.3 and add Broadcom vulkan driver sug0
` (5 preceding siblings ...)
2022-01-03 22:24 ` sug0
@ 2022-01-03 22:24 ` sug0
2022-01-03 22:27 ` sug0
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: sug0 @ 2022-01-03 22:24 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 431 bytes --]
New comment by sug0 on void-packages repository
https://github.com/void-linux/void-packages/pull/34778#issuecomment-1004399265
Comment:
> Hi! Did you mean to close this PR?
Hello @ericonr. I closed it for the time being, since I'm not sure if I need to include the new library in `common/shlibs`. The `radeon` vulkan driver seems to be missing from `common/shlibs`... Anyhow, otherwise, it should be ready.
EDIT : reopened
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: mesa: add Broadcom vulkan driver
2021-12-31 2:47 [PR PATCH] mesa: update to 21.3.3 and add Broadcom vulkan driver sug0
` (6 preceding siblings ...)
2022-01-03 22:24 ` sug0
@ 2022-01-03 22:27 ` sug0
2022-01-03 22:35 ` [PR PATCH] [Updated] " sug0
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: sug0 @ 2022-01-03 22:27 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 299 bytes --]
New comment by sug0 on void-packages repository
https://github.com/void-linux/void-packages/pull/34778#issuecomment-1004400879
Comment:
I also tested `vkcube` since then... Unfortunately, this driver is missing an extension required by `vkcube`, so I'm not sure what to test that supports vulkan.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR PATCH] [Updated] mesa: add Broadcom vulkan driver
2021-12-31 2:47 [PR PATCH] mesa: update to 21.3.3 and add Broadcom vulkan driver sug0
` (7 preceding siblings ...)
2022-01-03 22:27 ` sug0
@ 2022-01-03 22:35 ` sug0
2022-01-04 8:00 ` ericonr
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: sug0 @ 2022-01-03 22:35 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1449 bytes --]
There is an updated pull request by sug0 against master on the void-packages repository
https://github.com/sug0/void-packages mesa-vulkan-rpi
https://github.com/void-linux/void-packages/pull/34778
mesa: add Broadcom vulkan driver
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, aarch64
---
I created a new subpackage to build vulkan drivers for the Raspberry Pi 4. They seem to be working correctly, given the output of `vulkaninfo` from `Vulkan-Tools`, but I haven't actually tested any graphical workload, since `vkcube` is missing from `Vulkan-Tools` in `aarch64`.
P.S. -- I removed the update to 21.3.3 to keep this PR more feature isolated.
A patch file from https://github.com/void-linux/void-packages/pull/34778.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-mesa-vulkan-rpi-34778.patch --]
[-- Type: text/x-diff, Size: 1883 bytes --]
From 12137289a8fb05bb599e0bd2fe977c043625af1d Mon Sep 17 00:00:00 2001
From: Tiago Carvalho <sugoiuguu@tfwno.gf>
Date: Mon, 3 Jan 2022 22:35:41 +0000
Subject: [PATCH] mesa: build broadcom vulkan driver
---
srcpkgs/mesa-vulkan-broadcom | 1 +
srcpkgs/mesa/template | 12 +++++++++++-
2 files changed, 12 insertions(+), 1 deletion(-)
create mode 120000 srcpkgs/mesa-vulkan-broadcom
diff --git a/srcpkgs/mesa-vulkan-broadcom b/srcpkgs/mesa-vulkan-broadcom
new file mode 120000
index 000000000000..1ad1bbec7ab3
--- /dev/null
+++ b/srcpkgs/mesa-vulkan-broadcom
@@ -0,0 +1 @@
+mesa
\ No newline at end of file
diff --git a/srcpkgs/mesa/template b/srcpkgs/mesa/template
index dcd3ee81df59..c849bbf57362 100644
--- a/srcpkgs/mesa/template
+++ b/srcpkgs/mesa/template
@@ -1,7 +1,7 @@
# Template file for 'mesa'
pkgname=mesa
version=21.3.3
-revision=1
+revision=2
build_style=meson
configure_args="-Dglvnd=true -Dshared-glapi=enabled -Dgbm=enabled -Degl=enabled
-Dosmesa=true -Dgles1=enabled -Dgles2=enabled -Dglx=dri -Ddri3=enabled
@@ -115,10 +115,12 @@ fi
if [ "$_have_arm" ]; then
_gallium_drivers+=",kmsro"
_gallium_drivers+=",v3d,vc4,freedreno,etnaviv,lima,panfrost"
+ _vulkan_drivers+=",broadcom"
# transitional dummy packages
subpackages+=" mesa-kmsro-dri mesa-v3d-dri mesa-vc4-dri"
subpackages+=" mesa-etnaviv-dri mesa-freedreno-dri"
subpackages+=" mesa-lima-dri mesa-panfrost-dri"
+ subpackages+=" mesa-vulkan-broadcom"
fi
if [ "$_have_virgl" ]; then
@@ -354,6 +356,14 @@ mesa-vulkan-radeon_package() {
}
}
+mesa-vulkan-broadcom_package() {
+ short_desc="Mesa Broadcom Vulkan driver"
+ pkg_install() {
+ vmove "usr/share/vulkan/icd.d/broadcom_icd*.json"
+ vmove "usr/lib/libvulkan_broadcom.so"
+ }
+}
+
mesa-vulkan-overlay-layer_package() {
short_desc="Vulkan layer to display information about the running application"
pkg_install() {
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: mesa: add Broadcom vulkan driver
2021-12-31 2:47 [PR PATCH] mesa: update to 21.3.3 and add Broadcom vulkan driver sug0
` (8 preceding siblings ...)
2022-01-03 22:35 ` [PR PATCH] [Updated] " sug0
@ 2022-01-04 8:00 ` ericonr
2022-01-04 12:41 ` q66
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ericonr @ 2022-01-04 8:00 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 224 bytes --]
New comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/pull/34778#issuecomment-1004596004
Comment:
No need to add to `common/shlibs`.
@q66 this looks ok to me, any issue with it?
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: mesa: add Broadcom vulkan driver
2021-12-31 2:47 [PR PATCH] mesa: update to 21.3.3 and add Broadcom vulkan driver sug0
` (9 preceding siblings ...)
2022-01-04 8:00 ` ericonr
@ 2022-01-04 12:41 ` q66
2022-01-04 15:39 ` [PR PATCH] [Updated] " sug0
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: q66 @ 2022-01-04 12:41 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 267 bytes --]
New comment by q66 on void-packages repository
https://github.com/void-linux/void-packages/pull/34778#issuecomment-1004776160
Comment:
only thing i have is that the subpackage is confusingly added under `transitional dummy packages` even though it's not really one
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR PATCH] [Updated] mesa: add Broadcom vulkan driver
2021-12-31 2:47 [PR PATCH] mesa: update to 21.3.3 and add Broadcom vulkan driver sug0
` (10 preceding siblings ...)
2022-01-04 12:41 ` q66
@ 2022-01-04 15:39 ` sug0
2022-01-04 15:40 ` sug0
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: sug0 @ 2022-01-04 15:39 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1449 bytes --]
There is an updated pull request by sug0 against master on the void-packages repository
https://github.com/sug0/void-packages mesa-vulkan-rpi
https://github.com/void-linux/void-packages/pull/34778
mesa: add Broadcom vulkan driver
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, aarch64
---
I created a new subpackage to build vulkan drivers for the Raspberry Pi 4. They seem to be working correctly, given the output of `vulkaninfo` from `Vulkan-Tools`, but I haven't actually tested any graphical workload, since `vkcube` is missing from `Vulkan-Tools` in `aarch64`.
P.S. -- I removed the update to 21.3.3 to keep this PR more feature isolated.
A patch file from https://github.com/void-linux/void-packages/pull/34778.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-mesa-vulkan-rpi-34778.patch --]
[-- Type: text/x-diff, Size: 1796 bytes --]
From fbde5520d62755000efd3964c51178d205bf93a3 Mon Sep 17 00:00:00 2001
From: Tiago Carvalho <sugoiuguu@tfwno.gf>
Date: Tue, 4 Jan 2022 15:39:28 +0000
Subject: [PATCH] mesa: build broadcom vulkan driver
---
srcpkgs/mesa-vulkan-broadcom | 1 +
srcpkgs/mesa/template | 12 +++++++++++-
2 files changed, 12 insertions(+), 1 deletion(-)
create mode 120000 srcpkgs/mesa-vulkan-broadcom
diff --git a/srcpkgs/mesa-vulkan-broadcom b/srcpkgs/mesa-vulkan-broadcom
new file mode 120000
index 000000000000..1ad1bbec7ab3
--- /dev/null
+++ b/srcpkgs/mesa-vulkan-broadcom
@@ -0,0 +1 @@
+mesa
\ No newline at end of file
diff --git a/srcpkgs/mesa/template b/srcpkgs/mesa/template
index dcd3ee81df59..82ac453fabff 100644
--- a/srcpkgs/mesa/template
+++ b/srcpkgs/mesa/template
@@ -1,7 +1,7 @@
# Template file for 'mesa'
pkgname=mesa
version=21.3.3
-revision=1
+revision=2
build_style=meson
configure_args="-Dglvnd=true -Dshared-glapi=enabled -Dgbm=enabled -Degl=enabled
-Dosmesa=true -Dgles1=enabled -Dgles2=enabled -Dglx=dri -Ddri3=enabled
@@ -115,6 +115,8 @@ fi
if [ "$_have_arm" ]; then
_gallium_drivers+=",kmsro"
_gallium_drivers+=",v3d,vc4,freedreno,etnaviv,lima,panfrost"
+ _vulkan_drivers+=",broadcom"
+ subpackages+=" mesa-vulkan-broadcom"
# transitional dummy packages
subpackages+=" mesa-kmsro-dri mesa-v3d-dri mesa-vc4-dri"
subpackages+=" mesa-etnaviv-dri mesa-freedreno-dri"
@@ -354,6 +356,14 @@ mesa-vulkan-radeon_package() {
}
}
+mesa-vulkan-broadcom_package() {
+ short_desc="Mesa Broadcom Vulkan driver"
+ pkg_install() {
+ vmove "usr/share/vulkan/icd.d/broadcom_icd*.json"
+ vmove "usr/lib/libvulkan_broadcom.so"
+ }
+}
+
mesa-vulkan-overlay-layer_package() {
short_desc="Vulkan layer to display information about the running application"
pkg_install() {
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: mesa: add Broadcom vulkan driver
2021-12-31 2:47 [PR PATCH] mesa: update to 21.3.3 and add Broadcom vulkan driver sug0
` (11 preceding siblings ...)
2022-01-04 15:39 ` [PR PATCH] [Updated] " sug0
@ 2022-01-04 15:40 ` sug0
2022-01-04 16:24 ` q66
2022-01-05 7:40 ` [PR PATCH] [Merged]: " ericonr
14 siblings, 0 replies; 16+ messages in thread
From: sug0 @ 2022-01-04 15:40 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 171 bytes --]
New comment by sug0 on void-packages repository
https://github.com/void-linux/void-packages/pull/34778#issuecomment-1004916044
Comment:
@q66 Fixed in the new commit :-)
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: mesa: add Broadcom vulkan driver
2021-12-31 2:47 [PR PATCH] mesa: update to 21.3.3 and add Broadcom vulkan driver sug0
` (12 preceding siblings ...)
2022-01-04 15:40 ` sug0
@ 2022-01-04 16:24 ` q66
2022-01-05 7:40 ` [PR PATCH] [Merged]: " ericonr
14 siblings, 0 replies; 16+ messages in thread
From: q66 @ 2022-01-04 16:24 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 219 bytes --]
New comment by q66 on void-packages repository
https://github.com/void-linux/void-packages/pull/34778#issuecomment-1004951823
Comment:
okay, looks good now
we can merge it once somebody unbreaks the cross builders
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PR PATCH] [Merged]: mesa: add Broadcom vulkan driver
2021-12-31 2:47 [PR PATCH] mesa: update to 21.3.3 and add Broadcom vulkan driver sug0
` (13 preceding siblings ...)
2022-01-04 16:24 ` q66
@ 2022-01-05 7:40 ` ericonr
14 siblings, 0 replies; 16+ messages in thread
From: ericonr @ 2022-01-05 7:40 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1291 bytes --]
There's a merged pull request on the void-packages repository
mesa: add Broadcom vulkan driver
https://github.com/void-linux/void-packages/pull/34778
Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, aarch64
---
I created a new subpackage to build vulkan drivers for the Raspberry Pi 4. They seem to be working correctly, given the output of `vulkaninfo` from `Vulkan-Tools`, but I haven't actually tested any graphical workload, since `vkcube` is missing from `Vulkan-Tools` in `aarch64`.
P.S. -- I removed the update to 21.3.3 to keep this PR more feature isolated.
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2022-01-05 7:40 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-31 2:47 [PR PATCH] mesa: update to 21.3.3 and add Broadcom vulkan driver sug0
2022-01-02 1:29 ` [PR PATCH] [Updated] " sug0
2022-01-02 1:37 ` [PR PATCH] [Closed]: " sug0
2022-01-02 1:37 ` [PR PATCH] [Updated] " sug0
2022-01-03 21:54 ` mesa: " ericonr
2022-01-03 22:24 ` [PR PATCH] [Updated] " sug0
2022-01-03 22:24 ` sug0
2022-01-03 22:24 ` sug0
2022-01-03 22:27 ` sug0
2022-01-03 22:35 ` [PR PATCH] [Updated] " sug0
2022-01-04 8:00 ` ericonr
2022-01-04 12:41 ` q66
2022-01-04 15:39 ` [PR PATCH] [Updated] " sug0
2022-01-04 15:40 ` sug0
2022-01-04 16:24 ` q66
2022-01-05 7:40 ` [PR PATCH] [Merged]: " ericonr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).