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
does g2d_overlay_test run on the iMX8MP ? if so how ?
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 .
g2d_overlay_test using /dev/fb* is not compatible with i.MX8 Series.
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:
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
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.