Skip to contentSkip to conversation

meta-arago-distro: add meta-clang dependency and llvmpipe

PATCH Superseded [email protected] 2 participants 2 messages Aug 22, 2023

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meta-arago-distro: add meta-clang dependency and llvmpipe

From: Randolph Sapp <[email protected]>

Devices that must use software rendering should use llvmpipe over the default softpipe. There are significant performance improvements associated with this change for devices like AM62A which lack a GPU.

---
 meta-arago-distro/conf/distro/arago.conf | 4 ++++
 meta-arago-distro/conf/layer.conf        | 1 +
 2 files changed, 5 insertions(+)
meta-arago-distro/conf/distro/arago.conf +4 -0
index 48f053bb..ffa10cfa 100644
@@ -102,6 +102,10 @@ PACKAGECONFIG:append:pn-piglit = " \
 PACKAGECONFIG:pn-opengl-es-cts = "${@bb.utils.contains("DISTRO_FEATURES", "wayland", "wayland", "surfaceless", d)}"
 PACKAGECONFIG:pn-vulkan-cts = "${@bb.utils.contains("DISTRO_FEATURES", "wayland", "wayland", "surfaceless", d)}"
 
+# Use llvmpipe for better performance with software rendering
+PACKAGECONFIG:append:pn-mesa = "gallium-llvm"
+PACKAGECONFIG:append:pn-mesa-pvr = "gallium-llvm"
+
 # Enable encryption support in open62541
 PACKAGECONFIG:append:pn-open62541 = " encrypt"
 
meta-arago-distro/conf/layer.conf +1 -0
index 5de46fc9..02d5beaa 100644
@@ -19,6 +19,7 @@ LAYERDEPENDS_meta-arago-distro = " \
     meta-python \
     qt5-layer \
     meta-arago-extras \
+    clang-layer \
 "
 
 LAYERRECOMMENDS_meta-arago-distro = " \
Signature · 1 line
2.41.0
#1 lore raw
Quoted 17 lines · On 8/21/2023 8:29 PM, [email protected] wrote:

From: Randolph Sapp <[email protected]>

Devices that must use software rendering should use llvmpipe over the default softpipe. There are significant performance improvements associated with this change for devices like AM62A which lack a GPU.

---
  meta-arago-distro/conf/distro/arago.conf | 4 ++++
  meta-arago-distro/conf/layer.conf        | 1 +
  2 files changed, 5 insertions(+)
meta-arago-distro/conf/distro/arago.conf +0 -0
index 48f053bb..ffa10cfa 100644

meta-arago-distro/conf/distro/arago.conf PACKAGECONFIG:append:pn-piglit = " \ · line 107

Quoted 6 lines
meta-arago-distro/conf/distro/arago.conf +3 -0
@@ -102,6 +102,10 @@ PACKAGECONFIG:append:pn-piglit = " \
  PACKAGECONFIG:pn-opengl-es-cts = "${@bb.utils.contains("DISTRO_FEATURES", "wayland", "wayland", "surfaceless", d)}"
  PACKAGECONFIG:pn-vulkan-cts = "${@bb.utils.contains("DISTRO_FEATURES", "wayland", "wayland", "surfaceless", d)}"
 
+# Use llvmpipe for better performance with software rendering
+PACKAGECONFIG:append:pn-mesa = "gallium-llvm"
+PACKAGECONFIG:append:pn-mesa-pvr = "gallium-llvm"

In addition to the test that I'm running on omapl138-lcdk, the above append lines need spaces at the beginning of the string. I'll let you know the results of the test for a v2 of this patch.

Quoted 16 lines
meta-arago-distro/conf/distro/arago.conf +1 -0
+
  # Enable encryption support in open62541
  PACKAGECONFIG:append:pn-open62541 = " encrypt"
 
meta-arago-distro/conf/layer.conf +1 -0
index 5de46fc9..02d5beaa 100644
@@ -19,6 +19,7 @@ LAYERDEPENDS_meta-arago-distro = " \
      meta-python \
      qt5-layer \
      meta-arago-extras \
+    clang-layer \
  "
 
  LAYERRECOMMENDS_meta-arago-distro = " \
Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS