meta-arago-distro: add meta-clang dependency and llvmpipe
PATCH v2 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.
This, unfortunately is only available on armv6+ devices so we'll conditionally drop this for the omapl138 device. (I'd switch this directly based on platform architecture but this doesn't appear to work correctly for PACKAGECONFIG strings in the distro.conf)
--- meta-arago-distro/conf/distro/arago.conf | 7 +++++++ meta-arago-distro/conf/layer.conf | 1 + 2 files changed, 8 insertions(+)
meta-arago-distro/conf/distro/arago.conf +7 -0
@@ -102,6 +102,13 @@ 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 +# Only available for armv6+ devices +PACKAGECONFIG:append:pn-mesa = " gallium-llvm" +PACKAGECONFIG:remove:pn-mesa:omapl138 = " gallium-llvm" +PACKAGECONFIG:append:pn-mesa-pvr = " gallium-llvm" +PACKAGECONFIG:remove:pn-mesa-pvr:omapl138 = " gallium-llvm" + # Enable encryption support in open62541 PACKAGECONFIG:append:pn-open62541 = " encrypt"
meta-arago-distro/conf/layer.conf +1 -0
@@ -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
Quoted 22 lines · On Tue, Sep 05, 2023 at 03:18:53PM -0500, [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.
This, unfortunately is only available on armv6+ devices so we'll conditionally drop this for the omapl138 device. (I'd switch this directly based on platform architecture but this doesn't appear to work correctly for PACKAGECONFIG strings in the distro.conf)
Signed-off-by Randolph Sapp <[email protected]>--- meta-arago-distro/conf/distro/arago.conf | 7 +++++++ meta-arago-distro/conf/layer.conf | 1 + 2 files changed, 8 insertions(+)meta-arago-distro/conf/distro/arago.conf +0
-0
meta-arago-distro/conf/distro/arago.conf PACKAGECONFIG:append:pn-piglit = " \ · line 110
Quoted 9 lines
meta-arago-distro/conf/distro/arago.conf +6
-0@@ -102,6 +102,13 @@ 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 +# Only available for armv6+ devices +PACKAGECONFIG:append:pn-mesa = " gallium-llvm" +PACKAGECONFIG:remove:pn-mesa:omapl138 = " gallium-llvm" +PACKAGECONFIG:append:pn-mesa-pvr = " gallium-llvm" +PACKAGECONFIG:remove:pn-mesa-pvr:omapl138 = " gallium-llvm"
While :remove happens last, it's not recommended to rely on it, especially when you have nested overrides - there's no guaranteed order of processing overrides. A better option would be:
GALLIUM_LLVM = " gallium-llvm" GALLIUM_LLVM:omapl138 = "" PACKAGECONFIG:append:pn-mesa = "${GALLIUM_LLVM}" PACKAGECONFIG:append:pn-mesa-pvr = "${GALLIUM_LLVM}"
Quoted 17 lines
meta-arago-distro/conf/distro/arago.conf +0
-0# Enable encryption support in open62541 PACKAGECONFIG:append:pn-open62541 = " encrypt"meta-arago-distro/conf/layer.conf +1
-0@@ -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
Quoted 37 lines · Denys Dmytriyenko
Quoted 22 lines · On Tue, Sep 05, 2023 at 03:18:53PM -0500, [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.
This, unfortunately is only available on armv6+ devices so we'll conditionally drop this for the omapl138 device. (I'd switch this directly based on platform architecture but this doesn't appear to work correctly for PACKAGECONFIG strings in the distro.conf)
Signed-off-by Randolph Sapp <[email protected]>--- meta-arago-distro/conf/distro/arago.conf | 7 +++++++ meta-arago-distro/conf/layer.conf | 1 + 2 files changed, 8 insertions(+)meta-arago-distro/conf/distro/arago.conf +0
-0meta-arago-distro/conf/distro/arago.conf PACKAGECONFIG:append:pn-piglit = " \ · line 110
Quoted 9 lines
meta-arago-distro/conf/distro/arago.conf +6
-0@@ -102,6 +102,13 @@ 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 +# Only available for armv6+ devices +PACKAGECONFIG:append:pn-mesa = " gallium-llvm" +PACKAGECONFIG:remove:pn-mesa:omapl138 = " gallium-llvm" +PACKAGECONFIG:append:pn-mesa-pvr = " gallium-llvm" +PACKAGECONFIG:remove:pn-mesa-pvr:omapl138 = " gallium-llvm"While :remove happens last, it's not recommended to rely on it, especially when you have nested overrides - there's no guaranteed order of processing overrides. A better option would be:
Quoted 4 lines
GALLIUM_LLVM= " gallium-llvm" GALLIUM_LLVM:omapl138 = "" PACKAGECONFIG:append:pn-mesa = "${GALLIUM_LLVM}" PACKAGECONFIG:append:pn-mesa-pvr = "${GALLIUM_LLVM}"
Fair enough. This seems cleaner anyway. V3 inbound.