summaryrefslogtreecommitdiffstats
path: root/meta-ti-bsp/recipes-graphics
Commit message (Collapse)AuthorAgeFilesLines
...
* ti-img-rogue-umlibs: drop the api specific dev packagesRandolph Sapp2023-06-091-19/+11
| | | | | | | | | | | | | | | | Well, flew a bit too close to the sun on that last patch. Apparently there are a few hidden runtime dependencies on the API devlinks that make things like EGL upset when they aren't present. We may circle back to this at some point but for now we're fine shipping the devlinks in the base API packages as these links don't step on any other package. Fixes: 1899f5ea (ti-img-rogue-umlibs: bump version and explicitly package, 2023-06-01) Signed-off-by: Randolph Sapp <rs@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* ti-img-rogue-umlibs: bump version and explicitly packageRandolph Sapp2023-06-011-25/+64
| | | | | | | | | | | | | | | | | | | Bump the version and explicitly package all Khronos APIs separately. This should be nice for those folks that want a headless opencl system for tinkering and such. This version includes experimental GEM support (for applications like Chromium that like to poke at the render node) and a new Vulkan ICD loader interface for better support with the Vulkan ICD loaders present in Yocto. This lifts a method from mesa used to force a common naming convention for Vulkan, OpenCL, and OpenGLES libs to make things a little easier to follow. Without it the target package names get scrambled based on the shared object name. Signed-off-by: Randolph Sapp <rs@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* libgles: rename subdir to powervr-umlibsRandolph Sapp2023-06-013-0/+0
| | | | | | | | | | Move recipes to new subdir since we offer more than just libgles now. Reusing the naming convention of the subdirectory used for the km components for now. Signed-off-by: Randolph Sapp <rs@ti.com> Acked-by: Andrew Davis <afd@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* mesa-pvr: convert bbappend into standalone alternative providerDenys Dmytriyenko2023-05-113-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | There are some unobvious issues with adding PVR support to Mesa via a bbappend: 1. We need to mark mesa package as machine-specific, due to differences in builds between SGX, Rogue and software-rendering 2. We also need to then mark mesa package as providing safe ABIs (EGL/GLES/GBM) in order for all generic dependent packages to not be treated as machine-specific, allowing their re-use across different machines of the same architecture But doing the above alters the upstream mesa package and changes its signatures even when not building for TI platforms, which is a Yocto Project compliance violation. In order to resolve this issue, convert Mesa bbappend, that adds PVR support, into its own standalone alternative provider, called mesa-pvr and allow selecting it with PREFERRED_PROVIDER settings. Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* recipes-graphics: ti-img-rogue-umlibs: Make -vulkan optionalDaniel Schultz2023-05-081-2/+13
| | | | | | | | | | Only include the ti-img-rogue-umlibs-vulkan package if the DISTRO_FEATURES x11 is enabled. Right now, this recipe has a failed build dependency on images without x11. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Tested-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* ti-img-rogue-umlibs: package firmware separatelyRandolph Sapp2023-05-081-2/+6
| | | | | | | | | | Split the firmware into it's own package so we can make the insane checks a little more paranoid again. Signed-off-by: Randolph Sapp <rs@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com> Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* cairo: resolve opengl versionRandolph Sapp2023-05-082-0/+6
| | | | | | | | | | | | | | 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. Signed-off-by: Randolph Sapp <rs@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com> Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* pvr-mesa: add new vulkan configuration options and wsiRandolph Sapp2023-05-081-1/+5
| | | | | | | | | | | | 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. Signed-off-by: Randolph Sapp <rs@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com> Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* ti-img-rogue-umlibs: bump srcrev, add vulkan, update depsRandolph Sapp2023-05-081-6/+21
| | | | | | | | | | | | | | | 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. Signed-off-by: Randolph Sapp <rs@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com> Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* graphics: upgrade rogue graphics to 23.1.6404501Randolph Sapp2023-05-031-2/+2
| | | | | | | | | | | | | | Update the rogue graphics recipes to point at the new 23.1.6404501 release. This adds support for: - kernel 6.1 - vulkan - opencl (more testing needed) - zink (more testing needed) Signed-off-by: Randolph Sapp <rs@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com> Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* mesa: update pvr-mesa for the 22.3.5 version of mesaRandolph Sapp2023-05-031-6/+9
| | | | | | | | | | | | | | Update the pvr-mesa include to use the 22.3.5 patches from oe-core/master and the branch for DDK version 23.1 on freedesktop. Also remove the PACKAGECONFIG options elf-tls and xvmc as those functions were dropped by the oe-core/master version of this package and mesa package respectively. Signed-off-by: Randolph Sapp <rs@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com> Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* mesa: locally overlay 22.3.5-specific patches from oe-core/masterRandolph Sapp2023-05-038-265/+120
| | | | | | | | | | | | | Locally overlay verbatim copies of mesa 22.3.5 patches from oe-core/master, so the same codebase works in kirkstone and master. Also drop the old patches from 22.0 that were from the tip of oe-core/kirkstone previously. Signed-off-by: Randolph Sapp <rs@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com> Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* ti-sgx-ddk-um: Remove no longer needed CLEANBROKEN and INSANE_SKIPsAndrew Davis2023-04-181-4/+2
| | | | | | | | The "clean" target has been fixed along with some other issues that caused us to need these set. Remove them now. Signed-off-by: Andrew Davis <afd@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* ti-sgx-ddk-um: Remove RDEPENDS on libdrm-omapAndrew Davis2023-04-181-1/+1
| | | | | | | We no longer use libdrm-omap so remove it. Signed-off-by: Andrew Davis <afd@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* ti-sgx-ddk-um: fix error in postinst with sysvinit+udevMatthias Schiffer2023-04-031-3/+8
| | | | | | | | | | | | When sysvinit is in DISTRO_FEATURES, the update-rc.d class must only be inherited when the script referenced by INITSCRIPT_NAME actually exists, or the update-rc.d command in the generated postinst script will fail. Reported-by: Denys Dmytriyenko <denis@denix.org> Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com> Reviewed-by: Andrew Davis <afd@ti.com> Acked-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* meta-ti-bsp: Update mesa bbappend files for mesa-23Theodore A. Roth2023-03-312-0/+0
| | | | | | | | | | | | | | | | | | | | | The mesa recipes in oe-core have been updated to mesa-23 causing the following build error: $ bitbake core-image-minimal Loading cache: 100% | | ETA: --:--:-- Loaded 0 entries from dependency cache. Parsing recipes: 100% |#############################################| Time: 0:00:20 Parsing of 2816 .bb files complete (0 cached, 2816 parsed). 4472 targets, 484 skipped, 0 masked, 0 errors. ERROR: No recipes in default available for: /build/../oe/meta-ti/meta-ti-bsp/recipes-graphics/mesa/mesa-gl_22.%.bbappend /build/../oe/meta-ti/meta-ti-bsp/recipes-graphics/mesa/mesa_22.%.bbappend Summary: There was 1 ERROR message, returning a non-zero exit code. Signed-off-by: Theodore A. Roth <troth@openavr.org> Signed-off-by: Theodore A. Roth <theodore_roth@trimble.com> Reviewed-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* ti-img-rogue-umlibs: handling the firmware installation with usrmergeJose Quaresma2023-03-011-0/+4
| | | | | | | The ti-img-rogue-umlibs package is not obeying usrmerge distro feature. /lib should be relocated to /usr. [usrmerge] Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* meta-ti-bsp: graphics: Resolve dependency chainRandolph Sapp2023-02-246-98/+92
| | | | | | | | | | 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 <rs@ti.com> Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* mesa: locally overlay 22.0-specific patches from oe-core/kirkstoneDenys Dmytriyenko2023-02-246-0/+367
| | | | | | | | | | Locally overlay verbatim copies of mesa 22.0 patches from oe-core/kirkstone, so the same codebase works in kirkstone and master. Since upstream version of mesa in master is now 22.3 and no longer carries these patches, but they are still needed for 22.0-based PVR fork of mesa used with Rogue driver. Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* Revert "meta-ti-bsp: graphics: Resolve dependency chain"Denys Dmytriyenko2023-02-216-84/+98
| | | | | | | | | Merged by accident. This reverts commit 15417ca726f75881a2c51c08d258ea923803cbb9. Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* meta-ti-bsp: graphics: Resolve dependency chainRandolph Sapp2023-02-166-98/+84
| | | | | | | | | 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 <rs@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* ti-sgx-ddk-um: use udev for userspace initializationMatthias Schiffer2023-01-312-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ti-sgx-ddk driver requires an additional userspace initialization step after the kernel module has probed the device. Without this initialization, no EGL context can be created and Weston etc. will fail to start. The driver package contains an init script, but this does not work on pure systemd-based systems without sysvinit compat support (as provided by the systemd-compat-units package). Introduce an enabled-by-default PACKAGECONFIG that installs a udev rule instead to run the init command automatically when the driver is loaded, solving the issue without depending on a specific init system. On builds without udev, this PACKAGECONFIG can be disabled, reverting to the old init script-based solution. udev reports several events when the pvrsrvkm module is loaded: - add event for the kernel module - add events for two DRM devices - bind event for the GPU platform device The DRM devices aren't nice to match on, and the kernel module add is too early to run `pvrsrvctl --start`, so we trigger on the platform device bind. Tested with Weston 9.0.0 on the AM65x-based TQ-Systems MBa65xx. Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* treewide: replace leftover git://git.ti.comMatthias Schiffer2023-01-311-1/+1
| | | | | | | | These URIs have been updated in dunfell, but two instances were forgotten in kirkstone/master. Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* ti-sgx-ddk-um: Update SRCREV for Kirkstone supportAndrew Davis2023-01-241-4/+5
| | | | | Signed-off-by: Andrew Davis <afd@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* ti-img-rogue-*: Bump the graphics recipesRandolph Sapp2022-11-231-1/+1
| | | | | | | | | | | Bump the graphics recipes source revision and remove the old BVNC switch. The BVNC is now baked into the platform Makefile that is selected with PVR_BUILD_DIR / TARGET_PRODUCT. Signed-off-by: Randolph Sapp <rs@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com> Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* machine: Add j784s4-evm configuration.Ryan Eatmon2022-11-231-2/+3
| | | | | | | | | | | | | | | Adding support for j784s4-evm: - Add configurations. - Add firmware. - Add u-boot. - Add gpu support. Signed-off-by: Ryan Eatmon <reatmon@ti.com> Signed-off-by: Hari Nagalla <hnagalla@ti.com> Signed-off-by: Randolph Sapp <rs@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com> Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* ti-img-rogue-driver: Fix git SRC_URIRyan Eatmon2022-11-231-1/+1
| | | | | | | | | We missed a spot when updating all of the git access for git.ti.com to use HTTPS. Signed-off-by: Ryan Eatmon <reatmon@ti.com> Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* all: Stop using git://git.ti.comRyan Eatmon2022-11-231-1/+1
| | | | | | | | | | | | Stop using un-encrypted git:// protocol to access TI repositories. This is inline with the same arguments as made by github in https://github.blog/2021-09-01-improving-git-protocol-security-github/ Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com> Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* ti-graphics: update for 4K/64K page size GPU driversDarren Etheridge2022-09-221-3/+3
| | | | | | | | | | Pull in the GPU KM/UMLIBS that enable the unified 4K/64K page firmware support in the IMG Rogue drivers. Signed-off-by: Darren Etheridge <detheridge@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com> Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* ti-graphics: gpu enable and move all platforms to ddk 1.15Etheridge, Darren2022-05-021-6/+7
| | | | | | | | | | | Enable the GPU for am62xx and j721s2 and use IMG DDK 1.15 Migrate Imagination DDK 1.13 to DDK 1.15 for J721e Signed-off-by: Darren Etheridge <detheridge@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com> Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* ti-sgx-ddk-um: avoid unnecessary dependency on -dev packageMatthias Schiffer2022-05-021-1/+1
| | | | | | | | | | | | | | | | | | ti-sgx-ddk-um's do_install creates a symlink libGLESv2.so.1 to libGLESv2.so. As this symlink will be installed to ti-sgx-ddk-um, but its target libGLESv2.so is in ti-sgx-ddk-um-dev, the automated dependency analysis will add ti-sgx-ddk-um-dev to ti-sgx-ddk-um's RDEPENDS. This will pull in a large number of other -dev packages through RDEPENDS and RRECOMMENDS in turn. Avoid this by having libGLESv2.so.1 point to libGLESv2.so.2 instead of libGLESv2.so, so the symlink's target is in ti-sgx-ddk-um as well. Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com> Reviewed-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com> Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* ti-sgx-ddk-um: only the am65xx member of the k3 family is supportedAndrew Davis2022-03-291-2/+2
| | | | | | | | | The AM65xx is the only member of the K3 family with an SGX GPU. Be specific here to avoid confusion. Signed-off-by: Andrew Davis <afd@ti.com> Tested-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* ti-img-rogue-umlibs: only the j721e SoC is currently supportedAndrew Davis2022-03-291-1/+1
| | | | | | | | | There are now three SoCs in the J7 family, but only the j721e variant is currently supported. Be specific here. Signed-off-by: Andrew Davis <afd@ti.com> Tested-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* meta-ti: use nonarch_base_libdir for firmware installationsDenys Dmytriyenko2022-02-221-1/+1
| | | | | | | | | Firmware images should always be installed under /lib and hence should use nonarch_base_libdir, as regular base_libdir is configuration-specific and doesn't always resolve to /lib. Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
* meta-ti: create a sub-layer meta-ti-bsp from existing contentDenys Dmytriyenko2022-02-223-0/+185
Extra sub-layers will be created next and relevant content moved across them. Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>