meta-ti-bsp: don't apply mesa virgl patch for TI pvr graphics 42/28742/2
authorDenys Dmytriyenko <denys@konsulko.com>
Mon, 1 May 2023 15:25:48 +0000 (15:25 +0000)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Wed, 3 May 2023 15:28:21 +0000 (15:28 +0000)
Latest TI graphics now uses Mesa, but it uses a slightly newer and
patched version of Mesa for SGX and Rogue GPUs. Since generic mesa
virgl patch from meta-agl-bsp/core already exists in that version
of Mesa, need to skip applying it here.

Bug-AGL: SPEC-4723

Change-Id: I795e2bf41bea8305be25418de7cc3262aefb3b4a
Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28742
ci-image-build: Jenkins Job builder account
ci-image-boot-test: Jenkins Job builder account
Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
meta-agl-bsp/meta-ti-bsp/recipes-graphics/mesa/mesa_%.bbappend [new file with mode: 0644]
meta-agl-bsp/meta-ti-bsp/recipes-graphics/mesa/pvr-fix.inc [new file with mode: 0644]

diff --git a/meta-agl-bsp/meta-ti-bsp/recipes-graphics/mesa/mesa_%.bbappend b/meta-agl-bsp/meta-ti-bsp/recipes-graphics/mesa/mesa_%.bbappend
new file mode 100644 (file)
index 0000000..be4ee23
--- /dev/null
@@ -0,0 +1 @@
+require ${@bb.utils.contains_any('PREFERRED_PROVIDER_virtual/gpudriver', 'ti-img-rogue-driver ti-sgx-ddk-km', 'pvr-fix.inc', '', d)}
diff --git a/meta-agl-bsp/meta-ti-bsp/recipes-graphics/mesa/pvr-fix.inc b/meta-agl-bsp/meta-ti-bsp/recipes-graphics/mesa/pvr-fix.inc
new file mode 100644 (file)
index 0000000..82fda68
--- /dev/null
@@ -0,0 +1 @@
+SRC_URI:remove = "file://0001-virgl-don-t-a-use-staging-when-a-resources-created-w.patch"