diff options
22 files changed, 110 insertions, 75 deletions
diff --git a/check_yocto_rules.json b/check_yocto_rules.json index 038d665a..2eda8066 100644 --- a/check_yocto_rules.json +++ b/check_yocto_rules.json | |||
| @@ -19,7 +19,9 @@ | |||
| 19 | "meta-ti-bsp/recipes-devtools/binutils/binutils-cross-canadian_%.bbappend", | 19 | "meta-ti-bsp/recipes-devtools/binutils/binutils-cross-canadian_%.bbappend", |
| 20 | "meta-ti-bsp/recipes-security/optee/optee-%.bbappend", | 20 | "meta-ti-bsp/recipes-security/optee/optee-%.bbappend", |
| 21 | "meta-ti-bsp/dynamic-layers/openembedded-layer/recipes-bsp/u-boot/u-boot-ti-%.bbappend", | 21 | "meta-ti-bsp/dynamic-layers/openembedded-layer/recipes-bsp/u-boot/u-boot-ti-%.bbappend", |
| 22 | "meta-ti-bsp/dynamic-layers/openembedded-layer/recipes-ti/initramfs/packagegroup-ti-core-initramfs.bbappend" | 22 | "meta-ti-bsp/dynamic-layers/openembedded-layer/recipes-ti/initramfs/packagegroup-ti-core-initramfs.bbappend", |
| 23 | "meta-ti-bsp/dynamic-layers/tpm-layer/recipes-ti/initramfs/packagegroup-ti-core-initramfs.bbappend", | ||
| 24 | "meta-ti-bsp/dynamic-layers/tpm-layer/recipes-ti/initramfs/ti-core-initramfs.bbappend" | ||
| 23 | ] | 25 | ] |
| 24 | }, | 26 | }, |
| 25 | "GUARD-2" : { | 27 | "GUARD-2" : { |
diff --git a/meta-ti-bsp/conf/machine/am62lxx-evm.conf b/meta-ti-bsp/conf/machine/am62lxx-evm.conf index a0bccf57..677d6955 100644 --- a/meta-ti-bsp/conf/machine/am62lxx-evm.conf +++ b/meta-ti-bsp/conf/machine/am62lxx-evm.conf | |||
| @@ -6,7 +6,7 @@ require conf/machine/include/am62lxx.inc | |||
| 6 | 6 | ||
| 7 | IMAGE_FSTYPES += "ubifs ubi" | 7 | IMAGE_FSTYPES += "ubifs ubi" |
| 8 | 8 | ||
| 9 | MKUBIFS_ARGS ?= "-F -m 4096 -e 258048 -c 8500" | 9 | MKUBIFS_ARGS ?= "-F -m 4096 -e 258048 -c 12000" |
| 10 | 10 | ||
| 11 | UBINIZE_ARGS ?= "-m 4096 -p 256KiB -s 1024 -O 1024" | 11 | UBINIZE_ARGS ?= "-m 4096 -p 256KiB -s 1024 -O 1024" |
| 12 | 12 | ||
| @@ -17,3 +17,10 @@ KERNEL_DEVICETREE_PREFIX = " \ | |||
| 17 | KERNEL_DEVICETREE = "" | 17 | KERNEL_DEVICETREE = "" |
| 18 | 18 | ||
| 19 | UBOOT_MACHINE = "am62lx_evm_defconfig" | 19 | UBOOT_MACHINE = "am62lx_evm_defconfig" |
| 20 | FIT_CONF_DEFAULT_DTB = "k3-am62l3-evm.dtb" | ||
| 21 | UBOOT_LOADADDRESS = "0x82400000" | ||
| 22 | UBOOT_ENTRYPOINT = "0x82400000" | ||
| 23 | UBOOT_RD_LOADADDRESS = "0x84000000" | ||
| 24 | UBOOT_RD_ENTRYPOINT = "0x84000000" | ||
| 25 | UBOOT_DTB_LOADADDRESS = "0x84f00000" | ||
| 26 | UBOOT_DTBO_LOADADDRESS = "0x84f80000" | ||
diff --git a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf index 4450ef57..c3b028ea 100644 --- a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf +++ b/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf | |||
| @@ -8,6 +8,6 @@ UBOOT_MACHINE = "am65x_evm_r5_defconfig" | |||
| 8 | UBOOT_MACHINE:tie-test-builds = "" | 8 | UBOOT_MACHINE:tie-test-builds = "" |
| 9 | 9 | ||
| 10 | UBOOT_CONFIG = "" | 10 | UBOOT_CONFIG = "" |
| 11 | UBOOT_CONFIG:prepend:tie-test-builds = "usbdfu main" | 11 | UBOOT_CONFIG:tie-test-builds = "usbdfu main" |
| 12 | UBOOT_CONFIG[main] = "am62x_evm_r5_defconfig" | 12 | UBOOT_CONFIG[main] = "am65x_evm_r5_defconfig" |
| 13 | UBOOT_CONFIG[usbdfu] = "am65x_evm_r5_usbdfu_defconfig" | 13 | UBOOT_CONFIG[usbdfu] = "am65x_evm_r5_usbdfu_defconfig" |
diff --git a/meta-ti-bsp/conf/machine/include/j784s4.inc b/meta-ti-bsp/conf/machine/include/j784s4.inc index 4dc3a71b..e0ce81b5 100644 --- a/meta-ti-bsp/conf/machine/include/j784s4.inc +++ b/meta-ti-bsp/conf/machine/include/j784s4.inc | |||
| @@ -12,7 +12,7 @@ TFA_BOARD = "j784s4" | |||
| 12 | 12 | ||
| 13 | OPTEEMACHINE = "k3-j784s4" | 13 | OPTEEMACHINE = "k3-j784s4" |
| 14 | 14 | ||
| 15 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw ti-eth-fw-j784s4" | 15 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw" |
| 16 | 16 | ||
| 17 | TI_CORE_INITRAMFS_KERNEL_MODULES = "kernel-module-cdns-pltfrm kernel-module-ti-j721e-ufs" | 17 | TI_CORE_INITRAMFS_KERNEL_MODULES = "kernel-module-cdns-pltfrm kernel-module-ti-j721e-ufs" |
| 18 | TI_CORE_INITRAMFS_KERNEL_MODULES:bsp-ti-6_6 = "" | 18 | TI_CORE_INITRAMFS_KERNEL_MODULES:bsp-ti-6_6 = "" |
diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc index 497b679b..c08b5612 100644 --- a/meta-ti-bsp/conf/machine/include/k3.inc +++ b/meta-ti-bsp/conf/machine/include/k3.inc | |||
| @@ -60,4 +60,4 @@ TI_WKS_BOOTLOADER_APPEND ?= "console=${KERNEL_CONSOLE}" | |||
| 60 | 60 | ||
| 61 | do_image_wic[depends] += "virtual/bootloader:do_deploy" | 61 | do_image_wic[depends] += "virtual/bootloader:do_deploy" |
| 62 | 62 | ||
| 63 | SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2" | 63 | SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS0" |
diff --git a/meta-ti-bsp/conf/machine/j722s-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j722s-evm-k3r5.conf index 5df4edfe..3cb95142 100644 --- a/meta-ti-bsp/conf/machine/j722s-evm-k3r5.conf +++ b/meta-ti-bsp/conf/machine/j722s-evm-k3r5.conf | |||
| @@ -7,8 +7,8 @@ require conf/machine/include/k3r5.inc | |||
| 7 | UBOOT_MACHINE = "j722s_evm_r5_defconfig" | 7 | UBOOT_MACHINE = "j722s_evm_r5_defconfig" |
| 8 | UBOOT_MACHINE:tie-test-builds = "" | 8 | UBOOT_MACHINE:tie-test-builds = "" |
| 9 | 9 | ||
| 10 | UBOOT_CONFIG = "main" | 10 | UBOOT_CONFIG = "" |
| 11 | UBOOT_CONFIG:prepend:tie-test-builds = "usbdfu " | 11 | UBOOT_CONFIG:tie-test-builds = "usbdfu main" |
| 12 | UBOOT_CONFIG[main] = "j722s_evm_r5_defconfig" | 12 | UBOOT_CONFIG[main] = "j722s_evm_r5_defconfig" |
| 13 | UBOOT_CONFIG[usbdfu] = "j722s_evm_r5_defconfig" | 13 | UBOOT_CONFIG[usbdfu] = "j722s_evm_r5_defconfig" |
| 14 | 14 | ||
diff --git a/meta-ti-bsp/conf/machine/j784s4-evm.conf b/meta-ti-bsp/conf/machine/j784s4-evm.conf index bf53b07c..a88f6f69 100644 --- a/meta-ti-bsp/conf/machine/j784s4-evm.conf +++ b/meta-ti-bsp/conf/machine/j784s4-evm.conf | |||
| @@ -27,3 +27,5 @@ KERNEL_DEVICETREE = " \ | |||
| 27 | " | 27 | " |
| 28 | 28 | ||
| 29 | UBOOT_MACHINE = "j784s4_evm_a72_defconfig" | 29 | UBOOT_MACHINE = "j784s4_evm_a72_defconfig" |
| 30 | |||
| 31 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "ti-eth-fw-j784s4" | ||
diff --git a/meta-ti-bsp/dynamic-layers/tpm-layer/recipes-ti/initramfs/ti-core-initramfs.bbappend b/meta-ti-bsp/dynamic-layers/tpm-layer/recipes-ti/initramfs/ti-core-initramfs.bbappend new file mode 100644 index 00000000..8901d0bf --- /dev/null +++ b/meta-ti-bsp/dynamic-layers/tpm-layer/recipes-ti/initramfs/ti-core-initramfs.bbappend | |||
| @@ -0,0 +1 @@ | |||
| INITRAMFS_MAXSIZE = "200000" | |||
diff --git a/meta-ti-bsp/wic/sdimage-2part-efi.wks.in b/meta-ti-bsp/files/wic/sdimage-2part-efi.wks.in index 2582692f..2582692f 100644 --- a/meta-ti-bsp/wic/sdimage-2part-efi.wks.in +++ b/meta-ti-bsp/files/wic/sdimage-2part-efi.wks.in | |||
diff --git a/meta-ti-bsp/wic/sdimage-2part.wks b/meta-ti-bsp/files/wic/sdimage-2part.wks index 5073176e..5073176e 100644 --- a/meta-ti-bsp/wic/sdimage-2part.wks +++ b/meta-ti-bsp/files/wic/sdimage-2part.wks | |||
diff --git a/meta-ti-bsp/recipes-bsp/ti-linux-fw/ti-linux-fw.inc b/meta-ti-bsp/recipes-bsp/ti-linux-fw/ti-linux-fw.inc index 9ed421a4..85b73854 100644 --- a/meta-ti-bsp/recipes-bsp/ti-linux-fw/ti-linux-fw.inc +++ b/meta-ti-bsp/recipes-bsp/ti-linux-fw/ti-linux-fw.inc | |||
| @@ -21,7 +21,7 @@ TI_PKA_FW_VERSION = "2.1.0" | |||
| 21 | TI_IPC_EXAMPLES_FW_VERSION = "3.52.00.01" | 21 | TI_IPC_EXAMPLES_FW_VERSION = "3.52.00.01" |
| 22 | PCM6240_FW_VERSION = "1.0.0.0" | 22 | PCM6240_FW_VERSION = "1.0.0.0" |
| 23 | 23 | ||
| 24 | TI_LINUX_FW_SRCREV ?= "aaa3d54aaa9e837834fa6b6dd99e9fefdfcf7949" | 24 | TI_LINUX_FW_SRCREV ?= "9e9d50ff563f83db86d36b72cd7fb4f487d6b414" |
| 25 | SRCREV = "${TI_LINUX_FW_SRCREV}" | 25 | SRCREV = "${TI_LINUX_FW_SRCREV}" |
| 26 | 26 | ||
| 27 | BRANCH ?= "ti-linux-firmware" | 27 | BRANCH ?= "ti-linux-firmware" |
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/ti-extras.inc b/meta-ti-bsp/recipes-bsp/u-boot/ti-extras.inc index 2160e1ec..7d784ac8 100644 --- a/meta-ti-bsp/recipes-bsp/u-boot/ti-extras.inc +++ b/meta-ti-bsp/recipes-bsp/u-boot/ti-extras.inc | |||
| @@ -7,6 +7,6 @@ BRANCH:tie-jailhouse:bsp-ti-6_12 = "ti-u-boot-2025.01-jailhouse" | |||
| 7 | BRANCH:tie-jailhouse:bsp-ti-6_18 = "ti-u-boot-2026.01-jailhouse" | 7 | BRANCH:tie-jailhouse:bsp-ti-6_18 = "ti-u-boot-2026.01-jailhouse" |
| 8 | 8 | ||
| 9 | SRCREV_uboot:tie-jailhouse:bsp-ti-6_12 = "e718bbcec3ebf663c021839753034a224be4cc53" | 9 | SRCREV_uboot:tie-jailhouse:bsp-ti-6_12 = "e718bbcec3ebf663c021839753034a224be4cc53" |
| 10 | SRCREV_uboot:tie-jailhouse:bsp-ti-6_18 = "cfac87057b6fed15c4be4f1d35bf0c4001807484" | 10 | SRCREV_uboot:tie-jailhouse:bsp-ti-6_18 = "53a287d24610f0747ae4e35cff2afa3af23a48e3" |
| 11 | 11 | ||
| 12 | UBOOT_GIT_URI:tie-jailhouse = "git://git.ti.com/git/processor-sdk/u-boot.git" | 12 | UBOOT_GIT_URI:tie-jailhouse = "git://git.ti.com/git/processor-sdk/u-boot.git" |
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-mainline_git.bb b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-mainline_git.bb index be53ce7b..03fd6193 100644 --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-mainline_git.bb +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-mainline_git.bb | |||
| @@ -2,8 +2,8 @@ require u-boot-ti.inc | |||
| 2 | 2 | ||
| 3 | SUMMARY = "Mainline U-Boot for TI devices" | 3 | SUMMARY = "Mainline U-Boot for TI devices" |
| 4 | 4 | ||
| 5 | PV = "2026.01" | 5 | PV = "2026.04" |
| 6 | 6 | ||
| 7 | UBOOT_GIT_URI = "git://source.denx.de/u-boot/u-boot.git" | 7 | UBOOT_GIT_URI = "git://source.denx.de/u-boot/u-boot.git" |
| 8 | 8 | ||
| 9 | SRCREV_uboot = "127a42c7257a6ffbbd1575ed1cbaa8f5408a44b3" | 9 | SRCREV_uboot = "88dc2788777babfd6322fa655df549a019aa1e69" |
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2025.01.bb b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2025.01.bb index 6fef7e91..ea7455f0 100644 --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2025.01.bb +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2025.01.bb | |||
| @@ -4,6 +4,6 @@ PR = "r0" | |||
| 4 | 4 | ||
| 5 | BRANCH = "ti-u-boot-2025.01" | 5 | BRANCH = "ti-u-boot-2025.01" |
| 6 | 6 | ||
| 7 | SRCREV_uboot = "ef2eb76b650415637bd93b0eddfb1e31489117f9" | 7 | SRCREV_uboot = "7b9dedb046eb6a720997f61582c7b13da1b5b9f0" |
| 8 | 8 | ||
| 9 | SRC_URI += "file://0001-binman-migrate-form-pkg_resources-to-importlib.patch" | 9 | SRC_URI += "file://0001-binman-migrate-form-pkg_resources-to-importlib.patch" |
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2026.01.bb b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2026.01.bb index 7ad50c78..6b2353d8 100644 --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2026.01.bb +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2026.01.bb | |||
| @@ -4,4 +4,4 @@ PR = "r0" | |||
| 4 | 4 | ||
| 5 | BRANCH = "ti-u-boot-2026.01" | 5 | BRANCH = "ti-u-boot-2026.01" |
| 6 | 6 | ||
| 7 | SRCREV_uboot = "a46241db71e383bb6dda103ecad12b13e7af3c38" | 7 | SRCREV_uboot = "2549829cc194ffd9e38b755d2e10c7fc4cd971eb" |
diff --git a/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-24.0.1/0001-gallivm-Fix-armhf-build-against-LLVM-22.patch b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-24.0.1/0001-gallivm-Fix-armhf-build-against-LLVM-22.patch new file mode 100644 index 00000000..935d76d1 --- /dev/null +++ b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-24.0.1/0001-gallivm-Fix-armhf-build-against-LLVM-22.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | From 973dc32026c164d0c13f7f5bef36c8d1c2375973 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alessandro Astone <ales.astone@gmail.com> | ||
| 3 | Date: Sun, 1 Mar 2026 18:14:09 +0100 | ||
| 4 | Subject: [PATCH] gallivm: Fix armhf build against LLVM 22 | ||
| 5 | |||
| 6 | StringMapIterator<bool> became StringMapIterBase<bool, false /* IsConst */>; | ||
| 7 | Use `auto` to handle either case. | ||
| 8 | |||
| 9 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40161] | ||
| 10 | Signed-off-by: Jose Quaresma <jose.quaresma@oss.qualcomm.com> | ||
| 11 | --- | ||
| 12 | src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | ||
| 16 | index d3ad342..c95d86e 100644 | ||
| 17 | --- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | ||
| 18 | +++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | ||
| 19 | @@ -331,7 +331,7 @@ lp_build_fill_mattrs(std::vector<std::string> &MAttrs) | ||
| 20 | llvm::sys::getHostCPUFeatures(features); | ||
| 21 | #endif | ||
| 22 | |||
| 23 | - for (llvm::StringMapIterator<bool> f = features.begin(); | ||
| 24 | + for (auto f = features.begin(); | ||
| 25 | f != features.end(); | ||
| 26 | ++f) { | ||
| 27 | MAttrs.push_back(((*f).second ? "+" : "-") + (*f).first().str()); | ||
| 28 | -- | ||
| 29 | 2.53.0 | ||
diff --git a/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr_24.0.1.bb b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr_24.0.1.bb index 0b48bc15..8ec06800 100644 --- a/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr_24.0.1.bb +++ b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr_24.0.1.bb | |||
| @@ -19,6 +19,7 @@ SRC_URI = " \ | |||
| 19 | file://0002-glxext-don-t-try-zink-if-not-enabled-in-mesa.patch \ | 19 | file://0002-glxext-don-t-try-zink-if-not-enabled-in-mesa.patch \ |
| 20 | file://0001-gallivm-Call-StringMapIterator-from-llvm-scope.patch \ | 20 | file://0001-gallivm-Call-StringMapIterator-from-llvm-scope.patch \ |
| 21 | file://0001-Update-lp_bld_misc.cpp-to-support-llvm-19.patch \ | 21 | file://0001-Update-lp_bld_misc.cpp-to-support-llvm-19.patch \ |
| 22 | file://0001-gallivm-Fix-armhf-build-against-LLVM-22.patch \ | ||
| 22 | " | 23 | " |
| 23 | 24 | ||
| 24 | SRCREV = "7c82c1eebc67f5a62a347a84d42fe795cf7f523b" | 25 | SRCREV = "7c82c1eebc67f5a62a347a84d42fe795cf7f523b" |
diff --git a/meta-ti-bsp/recipes-graphics/wayland/weston/0001-Revert-require-GL_EXT_unpack_subimage-commit.patch b/meta-ti-bsp/recipes-graphics/wayland/weston/0001-Revert-require-GL_EXT_unpack_subimage-commit.patch index fbe8f2bb..4b3b4a1f 100644 --- a/meta-ti-bsp/recipes-graphics/wayland/weston/0001-Revert-require-GL_EXT_unpack_subimage-commit.patch +++ b/meta-ti-bsp/recipes-graphics/wayland/weston/0001-Revert-require-GL_EXT_unpack_subimage-commit.patch | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | From 5a05e5b66dd3831a9c9c2b3f64bd42419d9ade2d Mon Sep 17 00:00:00 2001 | 1 | From 3cddacaa9ea3cfd75732ea9a84312fa68e0bfda7 Mon Sep 17 00:00:00 2001 |
| 2 | From: Denys Dmytriyenko <denys@konsulko.com> | 2 | From: Ryan Eatmon <reatmon@ti.com> |
| 3 | Date: Thu, 6 Jul 2023 01:48:41 +0000 | 3 | Date: Tue, 24 Mar 2026 10:52:59 -0500 |
| 4 | Subject: [PATCH] Revert require GL_EXT_unpack_subimage commit | 4 | Subject: [PATCH] Revert require GL_EXT_unpack_subimage commit |
| 5 | 5 | ||
| 6 | This reverts commit 593d5af43a8e2c2a3371088fa7ae430d0517c82d. | 6 | This reverts commit 593d5af43a8e2c2a3371088fa7ae430d0517c82d. |
| @@ -13,83 +13,76 @@ Upstream-Status: Inappropriate [specific to TI SGX] | |||
| 13 | 13 | ||
| 14 | Signed-off-by: Andrew Davis <afd@ti.com> | 14 | Signed-off-by: Andrew Davis <afd@ti.com> |
| 15 | Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> | 15 | Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> |
| 16 | 16 | Signed-off-by: Ryan Eatmon <reatmon@ti.com> | |
| 17 | --- | 17 | --- |
| 18 | libweston/renderer-gl/gl-renderer-internal.h | 2 ++ | 18 | libweston/renderer-gl/gl-renderer-internal.h | 2 ++ |
| 19 | libweston/renderer-gl/gl-renderer.c | 29 ++++++++++++++++---- | 19 | libweston/renderer-gl/gl-renderer.c | 26 ++++++++++++++++---- |
| 20 | 2 files changed, 26 insertions(+), 5 deletions(-) | 20 | 2 files changed, 23 insertions(+), 5 deletions(-) |
| 21 | 21 | ||
| 22 | diff --git a/libweston/renderer-gl/gl-renderer-internal.h b/libweston/renderer-gl/gl-renderer-internal.h | 22 | diff --git a/libweston/renderer-gl/gl-renderer-internal.h b/libweston/renderer-gl/gl-renderer-internal.h |
| 23 | index 5032035..85616c9 100644 | 23 | index 1afffbda..dbf7b1c3 100644 |
| 24 | --- a/libweston/renderer-gl/gl-renderer-internal.h | 24 | --- a/libweston/renderer-gl/gl-renderer-internal.h |
| 25 | +++ b/libweston/renderer-gl/gl-renderer-internal.h | 25 | +++ b/libweston/renderer-gl/gl-renderer-internal.h |
| 26 | @@ -229,6 +229,8 @@ struct gl_renderer { | 26 | @@ -526,6 +526,8 @@ struct gl_renderer { |
| 27 | PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC create_platform_window; | 27 | struct weston_log_scope *shader_scope; |
| 28 | bool has_platform_base; | 28 | |
| 29 | 29 | struct dmabuf_allocator *allocator; | |
| 30 | + bool has_unpack_subimage; | ||
| 31 | + | 30 | + |
| 32 | PFNEGLBINDWAYLANDDISPLAYWL bind_display; | 31 | + bool has_unpack_subimage; |
| 33 | PFNEGLUNBINDWAYLANDDISPLAYWL unbind_display; | 32 | }; |
| 34 | PFNEGLQUERYWAYLANDBUFFERWL query_buffer; | 33 | |
| 34 | static inline uint32_t | ||
| 35 | diff --git a/libweston/renderer-gl/gl-renderer.c b/libweston/renderer-gl/gl-renderer.c | 35 | diff --git a/libweston/renderer-gl/gl-renderer.c b/libweston/renderer-gl/gl-renderer.c |
| 36 | index e694418b..2be6d621 100644 | 36 | index 45a2a148..8b238208 100644 |
| 37 | --- a/libweston/renderer-gl/gl-renderer.c | 37 | --- a/libweston/renderer-gl/gl-renderer.c |
| 38 | +++ b/libweston/renderer-gl/gl-renderer.c | 38 | +++ b/libweston/renderer-gl/gl-renderer.c |
| 39 | @@ -2523,6 +2523,7 @@ gl_renderer_flush_damage(struct weston_paint_node *pnode) | 39 | @@ -3021,6 +3021,22 @@ gl_renderer_flush_damage(struct weston_paint_node *pnode) |
| 40 | struct weston_surface *surface = pnode->surface; | 40 | |
| 41 | const struct weston_testsuite_quirks *quirks = | 41 | data = wl_shm_buffer_get_data(buffer->shm_buffer); |
| 42 | &surface->compositor->test_data.test_quirks; | 42 | |
| 43 | + struct gl_renderer *gr = get_renderer(surface->compositor); | ||
| 44 | struct weston_buffer *buffer = surface->buffer_ref.buffer; | ||
| 45 | struct gl_surface_state *gs = get_surface_state(surface); | ||
| 46 | struct gl_buffer_state *gb = gs->buffer; | ||
| 47 | @@ -2550,6 +2551,24 @@ gl_renderer_flush_damage(struct weston_paint_node *pnode) | ||
| 48 | |||
| 49 | data = wl_shm_buffer_get_data(buffer->shm_buffer); | ||
| 50 | |||
| 51 | + if (!gr->has_unpack_subimage) { | 43 | + if (!gr->has_unpack_subimage) { |
| 52 | + wl_shm_buffer_begin_access(buffer->shm_buffer); | 44 | + wl_shm_buffer_begin_access(buffer->shm_buffer); |
| 53 | + for (j = 0; j < gs->buffer->num_textures; j++) { | 45 | + for (j = 0; j < gb->num_textures; j++) { |
| 54 | + glBindTexture(GL_TEXTURE_2D, gs->buffer->textures[j]); | 46 | + glBindTexture(GL_TEXTURE_2D, gb->textures[j]); |
| 55 | + glTexImage2D(GL_TEXTURE_2D, 0, | 47 | + gl_texture_2d_store(gr, 0, 0, 0, |
| 56 | + gs->buffer->gl_format[j], | 48 | + gb->pitch / pixel_format_hsub(buffer->pixel_format, j), |
| 57 | + gs->buffer->pitch / pixel_format_hsub(buffer->pixel_format, j), | 49 | + buffer->height / pixel_format_vsub(buffer->pixel_format, j), |
| 58 | + buffer->height / pixel_format_vsub(buffer->pixel_format, j), | 50 | + gb->texture_format[j].external, |
| 59 | + 0, | 51 | + gb->texture_format[j].type, |
| 60 | + gl_format_from_internal(gs->buffer->gl_format[j]), | 52 | + data + gb->offset[j]); |
| 61 | + gs->buffer->gl_pixel_type, | ||
| 62 | + data + gs->buffer->offset[j]); | ||
| 63 | + } | 53 | + } |
| 64 | + wl_shm_buffer_end_access(buffer->shm_buffer); | 54 | + wl_shm_buffer_end_access(buffer->shm_buffer); |
| 65 | + | 55 | + |
| 66 | + goto done; | 56 | + goto done; |
| 67 | + } | 57 | + } |
| 68 | + | 58 | + |
| 69 | if (gb->needs_full_upload || quirks->gl_force_full_upload) { | 59 | if (gb->needs_full_upload || quirks->force_full_upload) { |
| 70 | wl_shm_buffer_begin_access(buffer->shm_buffer); | 60 | wl_shm_buffer_begin_access(buffer->shm_buffer); |
| 71 | 61 | ||
| 72 | @@ -4754,11 +4773,9 @@ gl_renderer_setup(struct weston_compositor *ec) | 62 | @@ -5171,11 +5187,9 @@ gl_renderer_setup(struct weston_compositor *ec) |
| 73 | else | 63 | else |
| 74 | ec->read_format = pixel_format_get_info(DRM_FORMAT_ABGR8888); | 64 | ec->read_format = pixel_format_get_info(DRM_FORMAT_ABGR8888); |
| 75 | 65 | ||
| 76 | - if (gr->gl_version < gr_gl_version(3, 0) && | 66 | - if (gr->gl_version < gl_version(3, 0) && |
| 77 | - !weston_check_egl_extension(extensions, "GL_EXT_unpack_subimage")) { | 67 | - !gl_extensions_has(gr, EXTENSION_EXT_UNPACK_SUBIMAGE)) { |
| 78 | - weston_log("GL_EXT_unpack_subimage not available.\n"); | 68 | - weston_log("GL_EXT_unpack_subimage not available.\n"); |
| 79 | - return -1; | 69 | - return -1; |
| 80 | - } | 70 | - } |
| 81 | + if (gr->gl_version >= gr_gl_version(3, 0) || | 71 | + if (gr->gl_version >= gl_version(3, 0) || |
| 82 | + weston_check_egl_extension(extensions, "GL_EXT_unpack_subimage")) | 72 | + weston_check_egl_extension(extensions, "GL_EXT_unpack_subimage")) |
| 83 | + gr->has_unpack_subimage = true; | 73 | + gr->has_unpack_subimage = true; |
| 84 | 74 | ||
| 85 | if (gr->gl_version >= gr_gl_version(3, 0) || | 75 | if (gl_extensions_has(gr, EXTENSION_OES_MAPBUFFER)) |
| 86 | weston_check_egl_extension(extensions, "GL_EXT_texture_type_2_10_10_10_REV")) | 76 | GET_PROC_ADDRESS(gr->unmap_buffer, "glUnmapBufferOES"); |
| 87 | @@ -4880,6 +4897,8 @@ gl_renderer_setup(struct weston_compositor *ec) | 77 | @@ -5303,6 +5317,8 @@ gl_renderer_setup(struct weston_compositor *ec) |
| 88 | gr_gl_version_minor(gr->gl_version)); | 78 | gl_version_minor(gr->gl_version)); |
| 89 | weston_log_continue(STAMP_SPACE "read-back format: %s\n", | 79 | weston_log_continue(STAMP_SPACE "read-back format: %s\n", |
| 90 | ec->read_format->drm_format_name); | 80 | ec->read_format->drm_format_name); |
| 91 | + weston_log_continue(STAMP_SPACE "wl_shm sub-image to texture: %s\n", | 81 | + weston_log_continue(STAMP_SPACE "wl_shm sub-image to texture: %s\n", |
| 92 | + gr->has_unpack_subimage ? "yes" : "no"); | 82 | + gr->has_unpack_subimage ? "yes" : "no"); |
| 93 | weston_log_continue(STAMP_SPACE "glReadPixels supports y-flip: %s\n", | 83 | weston_log_continue(STAMP_SPACE "glReadPixels supports y-flip: %s\n", |
| 94 | yesno(gr->has_pack_reverse)); | 84 | yesno(gl_extensions_has(gr, EXTENSION_ANGLE_PACK_REVERSE_ROW_ORDER))); |
| 95 | weston_log_continue(STAMP_SPACE "glReadPixels supports PBO: %s\n", | 85 | weston_log_continue(STAMP_SPACE "glReadPixels supports PBO: %s\n", |
| 86 | -- | ||
| 87 | 2.43.0 | ||
| 88 | |||
diff --git a/meta-ti-bsp/recipes-graphics/wayland/weston_14.0.%.bbappend b/meta-ti-bsp/recipes-graphics/wayland/weston_%.bbappend index cf4f530a..cf4f530a 100644 --- a/meta-ti-bsp/recipes-graphics/wayland/weston_14.0.%.bbappend +++ b/meta-ti-bsp/recipes-graphics/wayland/weston_%.bbappend | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.18.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.18.bb index 795c1005..126af476 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.18.bb +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.18.bb | |||
| @@ -22,7 +22,7 @@ S = "${UNPACKDIR}/${BB_GIT_DEFAULT_DESTSUFFIX}" | |||
| 22 | 22 | ||
| 23 | BRANCH ?= "ti-linux-6.18.y" | 23 | BRANCH ?= "ti-linux-6.18.y" |
| 24 | 24 | ||
| 25 | SRCREV ?= "fa0fe817f5ee1b0542f757abaded245c6e5a1321" | 25 | SRCREV ?= "c214492085504176b9c252a7175e4e60b4b442af" |
| 26 | PV = "6.18.13+git" | 26 | PV = "6.18.13+git" |
| 27 | 27 | ||
| 28 | KERNEL_REPRODUCIBILITY_PATCHES = " \ | 28 | KERNEL_REPRODUCIBILITY_PATCHES = " \ |
diff --git a/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc b/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc index 10e5988c..63de122e 100644 --- a/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc +++ b/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc | |||
| @@ -5,4 +5,4 @@ BRANCH:tie-jailhouse:bsp-ti-6_12 = "ti-linux-6.12.y-jailhouse" | |||
| 5 | BRANCH:tie-jailhouse:bsp-ti-6_18 = "ti-linux-6.18.y-jailhouse" | 5 | BRANCH:tie-jailhouse:bsp-ti-6_18 = "ti-linux-6.18.y-jailhouse" |
| 6 | 6 | ||
| 7 | SRCREV:tie-jailhouse:bsp-ti-6_12 = "229a48602ad1557612a4ffabec6a3cbcdd745f87" | 7 | SRCREV:tie-jailhouse:bsp-ti-6_12 = "229a48602ad1557612a4ffabec6a3cbcdd745f87" |
| 8 | SRCREV:tie-jailhouse:bsp-ti-6_18 = "e80c3501e727c8c01454594ca5b10555377dfd60" | 8 | SRCREV:tie-jailhouse:bsp-ti-6_18 = "b27ed9ea7bdad936265fe38c6e112d86743fd379" |
diff --git a/meta-ti-bsp/recipes-kernel/linux/ti-extras.inc b/meta-ti-bsp/recipes-kernel/linux/ti-extras.inc index 515db47d..ff8b6f6b 100644 --- a/meta-ti-bsp/recipes-kernel/linux/ti-extras.inc +++ b/meta-ti-bsp/recipes-kernel/linux/ti-extras.inc | |||
| @@ -9,6 +9,6 @@ BRANCH:tie-jailhouse:bsp-ti-6_12 = "ti-linux-6.12.y-jailhouse" | |||
| 9 | BRANCH:tie-jailhouse:bsp-ti-6_18 = "ti-linux-6.18.y-jailhouse" | 9 | BRANCH:tie-jailhouse:bsp-ti-6_18 = "ti-linux-6.18.y-jailhouse" |
| 10 | 10 | ||
| 11 | SRCREV:tie-jailhouse:bsp-ti-6_12 = "229a48602ad1557612a4ffabec6a3cbcdd745f87" | 11 | SRCREV:tie-jailhouse:bsp-ti-6_12 = "229a48602ad1557612a4ffabec6a3cbcdd745f87" |
| 12 | SRCREV:tie-jailhouse:bsp-ti-6_18 = "e80c3501e727c8c01454594ca5b10555377dfd60" | 12 | SRCREV:tie-jailhouse:bsp-ti-6_18 = "b27ed9ea7bdad936265fe38c6e112d86743fd379" |
| 13 | 13 | ||
| 14 | KERNEL_GIT_URI:tie-jailhouse = "git://git.ti.com/git/processor-sdk/linux.git" | 14 | KERNEL_GIT_URI:tie-jailhouse = "git://git.ti.com/git/processor-sdk/linux.git" |
