g2d_overlay_test on iMX8, 8MPLUS-BB, Yocto

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

g2d_overlay_test on iMX8, 8MPLUS-BB, Yocto

1,851 Views
Keith_RL
Contributor II

iMX8, iMX8PLUS-BB, Yocto, imx-image-multimedia

I am running the g2d_overlay_test, which is included in the image, direct write to /dev/fb0 and see results on screen connected via HDMI, however when I try the g2d_tests nothing happens and errors are returned invalid destination planes.

g2d_overlay_test
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
Overlay rendering time 119us .
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
Overlay rendering with blur effect time 63us .
Overlay rendering with multiblit time 1us

Does anyone have experience of running the g2d_overlay_test, what is should I expect to see and what am I doing wrong running the test ?

Thanks

 

 

0 Kudos
Reply
6 Replies

1,757 Views
Keith_RL
Contributor II

does g2d_overlay_test run on the iMX8MP ? if so how ?

 

0 Kudos
Reply

1,827 Views
Keith_RL
Contributor II

Adding further debug, the frame buffer and screen information are populated, however the g2_blitEx appears to fail as the smem_start being 0 

g2d_blitEx: Invalid dst planes[0] address=0x0

Any ideas what I am missing to run this test ?

 

fb_info
id "imx-drmdrmfb"
smem_start 0x0
smem_len 0x7e9000
type 0
type_aux 0
visual 2
xpanstep 1
ypanstep 1
ywrapstep 0
line_length 7680
mmio_start 0x0
mmio_len 0x0
accel 0
capabilities 0
reserved 0,0

screen_info
xres 1920
yres 1080
xres_virtual 1920
yres_virtual 1080
xoffset 0
yoffset 0
bits_per_pixel 32
grayscale 0
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
Overlay rendering time 132us .
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
Overlay rendering with blur effect time 61us .
Overlay rendering with multiblit time 1us .

0 Kudos
Reply

1,815 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

 

nxf65025_0-1648002993736.png

g2d_overlay_test using /dev/fb* is not compatible with i.MX8 Series.

 

0 Kudos
Reply

1,811 Views
Keith_RL
Contributor II

Thank you for the reply,

Could you just confirm that these tests are not valid on the iMX8, as it was NXP support who advised to try the following. (For information what I am trying to achieve is overlaying dynamic graphics , such as gauges in on top of video in Realtime)

iMX8MPlus have following hardware accelerators available that might be relevant for your requirement:

  • GPU2D:
    • 2D graphics accelerator provides advanced composition capabilities.
    • Please refer to i.MX 8M Plus Applications Processor Reference Manual to understand its capability in more details.
    • Hardware can be used through G2D APIs (Please refer to Ch-2 in https://www.nxp.com/docs/en/user-guide/IMX_GRAPHICS_USERS_GUIDE.pdf dedicated for G2D APIs)
    • Sample tests for GPU2D:
      • Following tests are available to test GPU2D capabilities or performance (Yocto module: imx-g2d-samples):
        • g2d_multiblit_test
        • g2d_overlay_test
        • g2d_test
0 Kudos
Reply

1,805 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Framebuffer is not supported in i.MX8, so some code api is out of date.If you want to test g2d overlay function.

You should see this new branch:https://github.com/NXPmicro/g2d-samples/blob/imx_2.0/overlay_test/g2d_overlay.c

0 Kudos
Reply

1,779 Views
Keith_RL
Contributor II

I have switched to the imx_2.0 branch, but get the same results when running g2d_overlay_test, I have also tried g2d_overlay_tile_test with similar result

 

 ./g2d_overlay_test
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
Overlay rendering time 111us .
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
g2d_blitEx: Invalid dst planes[0] address=0x0 !
Overlay rendering with blur effect time 66us .
g2d_multi_blit: Invalid dst planes[0] address=0x0 !
Overlay rendering with multiblit time 23us .

./g2d_overlay_tile_test

Test_vpu_tiled_to_linear
Test_colorbar_vpu_linear_to_linear ...
g2d_blitEx: Invalid dst planes[0] address=0x0 !
Test_colorbar_vpu_tiled_to_linear ...
g2d_blitEx: Invalid dst planes[0] address=0x0 !
Test_image_vpu_linear_to_linear ...
g2d_blitEx: Invalid dst planes[0] address=0x0 !
Test_image_vpu_tiled_to_linear ...
g2d_blitEx: Invalid dst planes[0] address=0x0 !

Test_gpu_tiled_to_linear
g2d_blitEx: Invalid dst planes[0] address=0x0 !

I am running on the 8MPLUSLPD4-EVK using Yocto to build the multimedia image. the g2d-samples I build using the SDK from Yocto.

 

 

0 Kudos
Reply