On Mon, Feb 20, 2023 at 11:06:28AM +0000, Jose Quaresma wrote:
> Randolph Sapp via lists.yoctoproject.org <[email protected]>
> escreveu no dia segunda, 30/01/2023 à(s) 23:20:
> 
> > Patched mesa will now be configured based on what virtual/gpudriver
> > preferred provider is selected. The gpu drivers will now runtime
> > recommend the associated um components.
> >
> > Signed-off-by: Randolph Sapp <[email protected]>
> > ---

<snip>

> > diff --git a/meta-ti-bsp/recipes-graphics/mesa/mesa-gl_22.0.%.bbappend
> > b/meta-ti-bsp/recipes-graphics/mesa/mesa-gl_22.0.%.bbappend
> > new file mode 100644
> > index 00000000..912e9e9d
> > --- /dev/null
> > +++ b/meta-ti-bsp/recipes-graphics/mesa/mesa-gl_22.0.%.bbappend
> > @@ -0,0 +1 @@
> > +require ${@bb.utils.contains_any('PREFERRED_PROVIDER_virtual/gpudriver',
> > 'ti-img-rogue-driver ti-sgx-ddk-km', 'pvr-mesa.inc', '', d)}
> > diff --git a/meta-ti-bsp/recipes-graphics/mesa/mesa_22.0.%.bbappend
> > b/meta-ti-bsp/recipes-graphics/mesa/mesa_22.0.%.bbappend
> > new file mode 100644
> > index 00000000..912e9e9d
> > --- /dev/null
> > +++ b/meta-ti-bsp/recipes-graphics/mesa/mesa_22.0.%.bbappend
> > @@ -0,0 +1 @@
> > +require ${@bb.utils.contains_any('PREFERRED_PROVIDER_virtual/gpudriver',
> > 'ti-img-rogue-driver ti-sgx-ddk-km', 'pvr-mesa.inc', '', d)}
> > diff --git a/meta-ti-bsp/recipes-graphics/mesa/pvr-mesa.inc
> > b/meta-ti-bsp/recipes-graphics/mesa/pvr-mesa.inc
> > new file mode 100644
> > index 00000000..17edee8d
> > --- /dev/null
> > +++ b/meta-ti-bsp/recipes-graphics/mesa/pvr-mesa.inc
> > @@ -0,0 +1,40 @@
> > +# PowerVR Graphics require several patches that have not made their way
> > +# upstream yet. This allows us to build the shims we need without
> > completely
> > +# clobbering mesa.
> > +
> > +BRANCH = "powervr/kirkstone/22.0"
> > +
> > +SRC_URI = " \
> > +    git://
> > gitlab.freedesktop.org/StaticRocket/mesa.git;protocol=https;branch=${BRANCH}
> > <http://gitlab.freedesktop.org/StaticRocket/mesa.git;protocol=https;branch=$%7BBRANCH%7D>
> > \
> > +
> > file://0001-meson.build-check-for-all-linux-host_os-combinations.patch \
> > +    file://0002-meson.build-make-TLS-ELF-optional.patch \
> > +    file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \
> > +    file://0001-futex.h-Define-__NR_futex-if-it-does-not-exist.patch \
> > +    file://0001-util-format-Check-for-NEON-before-using-it.patch \
> > +
> > file://0001-Revert-egl-wayland-deprecate-drm_handle_format-and-d.patch \
> > +"
> >
> 
> Having here all the patches in oe-core will stop working if someone changes
> the main recipe.
> This already happens in the master branch of oe-core.
> 
> IMO If these patches are needed they should be merged on the ti fork branch.

The same exact comment was already provided offline in the past, along with 
a number of others, and there was supposed to be v8 coming... Not sure what 
happened and why unmodified v7 got merged...


> > +S = "${WORKDIR}/git"
> > +
> > +SRCREV = "44b82a7b6fa8a86243911b1b0d6a07b0fd8ecfba"
> > +
> > +PACKAGECONFIG:append = " \
> > +    ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/gpudriver',
> > 'ti-img-rogue-driver', 'pvr', '', d)} \
> > +    ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/gpudriver',
> > 'ti-sgx-ddk-km', 'sgx', '', d)} \
> > +"
> > +
> > +PVR_DISPLAY_CONTROLLER_ALIAS ??= "tidss"
> > +PACKAGECONFIG[pvr] =
> > "-Dgallium-pvr-alias=${PVR_DISPLAY_CONTROLLER_ALIAS},"
> > +PACKAGECONFIG[sgx] =
> > "-Dgallium-sgx-alias=${PVR_DISPLAY_CONTROLLER_ALIAS},"
> > +
> > +PV:append = "+pvr"
> > +
> > +GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'pvr',
> > ',pvr', '', d)}"
> > +GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'sgx',
> > ',sgx', '', d)}"
> > +
> > +do_install:append () {
> > +    # remove pvr custom pkgconfig
> > +    rm -rf ${D}${datadir}/pkgconfig
> > +}
> > +
> > +RRECOMMENDS:mesa-megadriver:class-target:append =
> > "${@d.getVar('PREFERRED_PROVIDER_virtual/gpudriver')}"
> > --
> > 2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#15893): 
https://lists.yoctoproject.org/g/meta-ti/message/15893
Mute This Topic: https://lists.yoctoproject.org/mt/96641366/21656
Group Owner: [email protected]
Unsubscribe: 
https://lists.yoctoproject.org/g/meta-ti/leave/6695321/21656/1393940836/xyzzy 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to