How to include GPU code or enable GPU-VPU interaction in IMX-VPU-HANTRO for i.MX8M Plus

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to include GPU code or enable GPU-VPU interaction in IMX-VPU-HANTRO for i.MX8M Plus

Jump to solution
1,251 Views
Hariharan1
Contributor III

Hello everyone,

I am currently working on the i.MX8M Plus platform, using the IMX-VPU-HANTRO driver for video encoding and decoding.

I would like to understand how to include or enable GPU-related code with this driver. My goal is to allow the GPU (vivante GC7000) and VPU to work together — for example, to VPU Generated  frame buffers parse into GPU.

I have gone through the source for `drivers/media/platform/imx-vpu-hantro`, but I am not sure where or how GPU-related integration is expected to happen.

Could you please guide me on:
1. Whether there is an existing interface between the GPU and VPU for buffer sharing (dma-buf or EGLImage)?
2. If I need to modify or extend the IMX-VPU-HANTRO driver, where should I start?
3. Are there any example patches or references for i.MX8M Plus?

Any documentation or pointers would be very helpful.

Thank you for your time and support.

Best regards,
Hariharan M



Labels (1)
0 Kudos
Reply
1 Solution
1,221 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi @Hariharan1 

you can use the dma-buf feature to complete your request. .Please refer the below link:

https://community.nxp.com/t5/i-MX-Graphics/IMX8MP-OpenCL-extension-cl-khr-external-memory-dma-buf-mi...

But we do not have such patches or references.

B.R

View solution in original post

0 Kudos
Reply
1 Reply
1,222 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi @Hariharan1 

you can use the dma-buf feature to complete your request. .Please refer the below link:

https://community.nxp.com/t5/i-MX-Graphics/IMX8MP-OpenCL-extension-cl-khr-external-memory-dma-buf-mi...

But we do not have such patches or references.

B.R

0 Kudos
Reply