Enable Vulkan cherry-pick from kirkstone
cover Enable Vulkan cherry-pick from kirkstone
From: Denys Dmytriyenko <[email protected]>
Cherry-pick Vulkan enabling changes from kirsktone.
Randolph Sapp (4):
ti-img-rogue-umlibs: bump srcrev, add vulkan, update deps
pvr-mesa: add new vulkan configuration options and wsi
cairo: resolve opengl version
ti-img-rogue-umlibs: package firmware separately
.../recipes-graphics/cairo/cairo_%.bbappend | 1 + .../recipes-graphics/cairo/pvr-cairo.inc | 5 +++ .../ti-img-rogue-umlibs_23.1.6404501.bb | 33 +++++++++++++++---- .../recipes-graphics/mesa/pvr-mesa.inc | 6 +++- 4 files changed, 37 insertions(+), 8 deletions(-) create mode 100644 meta-ti-bsp/recipes-graphics/cairo/cairo_%.bbappend create mode 100644 meta-ti-bsp/recipes-graphics/cairo/pvr-cairo.inc
Signature · 1 line
2.25.1
PATCH 1/4 ti-img-rogue-umlibs: bump srcrev, add vulkan, update deps
From: Randolph Sapp <[email protected]>
Update the source revision for the following upstream changes:
- Drop the included ICD loader. Use the Mesa/Khronos one instead.
- Enable all vulkan window system extensions
Separate the vulkan libs into their own package so people can choose to ignore them if they want, considering the new runtime deps.
--- .../ti-img-rogue-umlibs_23.1.6404501.bb | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-)
meta-ti-bsp/recipes-graphics/libgles/ti-img-rogue-umlibs_23.1.6404501.bb +21 -6
@@ -12,7 +12,7 @@ PR = "r2" BRANCH = "linuxws/kirkstone/k6.1/${PV}" SRC_URI = "git://git.ti.com/git/graphics/ti-img-rogue-umlibs.git;protocol=https;branch=${BRANCH}" -SRCREV = "49958a8e820a321d22ac3c635bd21d4a3118c006" +SRCREV = "452b0f50d2984171c81d5a0d3b22198177d919ad" S = "${WORKDIR}/git/targetfs/${TARGET_PRODUCT}/${PVR_WS}/${PVR_BUILD}" TARGET_PRODUCT:j721e = "j721e_linux"
@@ -30,14 +30,29 @@ do_install:append() { rmdir ${D}/lib fi rm -rf "${D}/etc/init.d" - rm -rf "${D}/usr/lib/libvulkan.so" - rm -rf "${D}/usr/lib/libvulkan.so.0" - rm -rf "${D}/usr/lib/libvulkan.so.1" } -PACKAGES = "${PN}-tools ${PN}" +PACKAGES = "${PN}-vulkan ${PN}-tools ${PN}" + +FILES:${PN}-vulkan = " \ + ${datadir}/vulkan \ + ${libdir}/libVK_IMG.so* \ +" +RDEPENDS:${PN}-vulkan += " \ + mesa-vulkan-drivers \ + libdrm \ + ti-img-rogue-driver \ + libx11-xcb \ + wayland \ +" +INSANE_SKIP:${PN}-vulkan += " \ + already-stripped \ + dev-so \ +" + FILES:${PN}-tools = "${bindir}/" RDEPENDS:${PN}-tools = "python3-core" -RRECOMMENDS:${PN} += "${PN}-tools" + +RRECOMMENDS:${PN} += "${PN}-vulkan ${PN}-tools" INSANE_SKIP:${PN} += "ldflags arch already-stripped dev-so"
Signature · 1 line
2.25.1
PATCH 2/4 pvr-mesa: add new vulkan configuration options and wsi
In reply to Denys DmytriyenkoFrom: Randolph Sapp <[email protected]>
Add the required vulkan configuration options and the new PVR WSI file to the corresponding package.
Also bump the PV to match the version of Mesa actually being shipped.
--- meta-ti-bsp/recipes-graphics/mesa/pvr-mesa.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
meta-ti-bsp/recipes-graphics/mesa/pvr-mesa.inc +5 -1
@@ -38,14 +38,18 @@ PACKAGECONFIG:remove = "xvmc" PACKAGECONFIG[xvmc] = "" PACKAGE_ARCH = "${MACHINE_ARCH}" -PV = "22.0.3+pvr" +PV = "22.3.5+pvr" GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'pvr', ',pvr', '', d)}" GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'sgx', ',sgx', '', d)}" +VULKAN_DRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'pvr', ',pvr', '', d)}" + do_install:append () { # remove pvr custom pkgconfig rm -rf ${D}${datadir}/pkgconfig } +FILES:mesa-vulkan-drivers += " ${libdir}/libpvr_mesa_wsi.so" + RRECOMMENDS:mesa-megadriver:append:class-target = " ${@d.getVar('PREFERRED_PROVIDER_virtual/gpudriver')}"
Signature · 1 line
2.25.1
PATCH 3/4 cairo: resolve opengl version
In reply to Denys DmytriyenkoFrom: Randolph Sapp <[email protected]>
Cairo can either be built for use with OpenGL or OpenGLES. By default it assumes it can use OpenGL if X11 is provided as a distro feature. This assumption is not true when using the proprietary SGX / Rogue drivers.
Vulkan libraries need some X libs at runtime now, so we need to manually override the PACKAGECONFIG for cairo to use OpenGLES.
--- meta-ti-bsp/recipes-graphics/cairo/cairo_%.bbappend | 1 + meta-ti-bsp/recipes-graphics/cairo/pvr-cairo.inc | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 meta-ti-bsp/recipes-graphics/cairo/cairo_%.bbappend create mode 100644 meta-ti-bsp/recipes-graphics/cairo/pvr-cairo.inc
meta-ti-bsp/recipes-graphics/cairo/cairo_%.bbappend new file +1 -0
@@ -0,0 +1 @@ +require ${@bb.utils.contains_any('PREFERRED_PROVIDER_virtual/gpudriver', 'ti-img-rogue-driver ti-sgx-ddk-km', 'pvr-cairo.inc', '', d)}
meta-ti-bsp/recipes-graphics/cairo/pvr-cairo.inc new file +5 -0
@@ -0,0 +1,5 @@ +# This is required since cairo expects the opengl distro feature to refer to +# the desktop version of OpenGL. Imagination drivers only provide OpenGLES. + +PACKAGECONFIG:remove = "opengl" +PACKAGECONFIG:append = " glesv2"
Signature · 1 line
2.25.1
PATCH 4/4 ti-img-rogue-umlibs: package firmware separately
In reply to Denys DmytriyenkoFrom: Randolph Sapp <[email protected]>
Split the firmware into it's own package so we can make the insane checks a little more paranoid again.
--- .../libgles/ti-img-rogue-umlibs_23.1.6404501.bb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
meta-ti-bsp/recipes-graphics/libgles/ti-img-rogue-umlibs_23.1.6404501.bb +6 -2
@@ -32,7 +32,7 @@ do_install:append() { rm -rf "${D}/etc/init.d" } -PACKAGES = "${PN}-vulkan ${PN}-tools ${PN}" +PACKAGES = "${PN}-vulkan ${PN}-tools ${PN}-firmware ${PN}" FILES:${PN}-vulkan = " \ ${datadir}/vulkan \
@@ -53,6 +53,10 @@ INSANE_SKIP:${PN}-vulkan += " \ FILES:${PN}-tools = "${bindir}/" RDEPENDS:${PN}-tools = "python3-core" +FILES:${PN}-firmware = "${base_libdir}/firmware/*" +INSANE_SKIP:${PN}-firmware += "arch" + RRECOMMENDS:${PN} += "${PN}-vulkan ${PN}-tools" +RDEPENDS:${PN} += " ${PN}-firmware" -INSANE_SKIP:${PN} += "ldflags arch already-stripped dev-so" +INSANE_SKIP:${PN} += "already-stripped dev-so"
Signature · 1 line
2.25.1