diff mbox series

[meta-ti,dunfell] ti-graphics: enable GPU for am62axx-evm

Message ID 20230120141852.21647-1-p-bhagat@ti.com
State Rejected
Delegated to: Ryan Eatmon
Headers show
Series [meta-ti,dunfell] ti-graphics: enable GPU for am62axx-evm | expand

Commit Message

Paresh Bhagat Jan. 20, 2023, 2:18 p.m. UTC
From: Sai Sree Kartheek Adivi <s-adivi@ti.com>

The am62axx device has no hardware accelerated GPU. But enabling "GPU"
to allow applications get access to GPU rendering APIs.

Signed-off-by: Sai Sree Kartheek Adivi <s-adivi@ti.com>
Signed-off-by: Paresh Bhagat <p-bhagat@ti.com>
---
 conf/machine/am62axx-evm.conf | 2 ++
 1 file changed, 2 insertions(+)

Comments

Denys Dmytriyenko Jan. 20, 2023, 5:39 p.m. UTC | #1
On Fri, Jan 20, 2023 at 07:48:52PM +0530, Paresh Bhagat via lists.yoctoproject.org wrote:
> From: Sai Sree Kartheek Adivi <s-adivi@ti.com>
> 
> The am62axx device has no hardware accelerated GPU. But enabling "GPU"
> to allow applications get access to GPU rendering APIs.

This description doesn't make much sense...

Anyway, I know you are trying to enable software rendering in Mesa for this 
GPU-less platform. But hacking the MACHINE_FEATURES list to pretend this 
platform has a GPU is totally incorrect!

What you are trying to do here should be done on the distro side, not in BSP! 
If there are packagegroups that key off of this machine feature, they need to 
be adjusted to allow pulling necessary graphics stack pieces to enable this 
software rendering use case.


> Signed-off-by: Sai Sree Kartheek Adivi <s-adivi@ti.com>
> Signed-off-by: Paresh Bhagat <p-bhagat@ti.com>
> ---
>  conf/machine/am62axx-evm.conf | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/conf/machine/am62axx-evm.conf b/conf/machine/am62axx-evm.conf
> index e7a59d2e..7fcec3f7 100644
> --- a/conf/machine/am62axx-evm.conf
> +++ b/conf/machine/am62axx-evm.conf
> @@ -4,6 +4,8 @@
>  
>  require conf/machine/include/am62axx.inc
>  
> +MACHINE_FEATURES += "gpu"
> +
>  KERNEL_DEVICETREE = " \
>      ti/k3-am62a7-sk.dtb \
>      ti/k3-am62a7-fpdlink-ov2312-0-0.dtbo \
> -- 
> 2.17.1
diff mbox series

Patch

diff --git a/conf/machine/am62axx-evm.conf b/conf/machine/am62axx-evm.conf
index e7a59d2e..7fcec3f7 100644
--- a/conf/machine/am62axx-evm.conf
+++ b/conf/machine/am62axx-evm.conf
@@ -4,6 +4,8 @@ 
 
 require conf/machine/include/am62axx.inc
 
+MACHINE_FEATURES += "gpu"
+
 KERNEL_DEVICETREE = " \
     ti/k3-am62a7-sk.dtb \
     ti/k3-am62a7-fpdlink-ov2312-0-0.dtbo \