The g2d_surfaceEx structure provides extra fields, most importantly, it allows for specifying the tile mode. For Amphion de-tiling, this works well. But when I try to use this to de-tile Hantro 4x4 tiled frames, I have problems. I guess I need to set the `tiling` field of the `g2d_surfaceEx` source surface to `G2D_TILED` and the `tiling` field of the destination surface to `G2D_LINEAR`, but this does not produce a correct result.
Any hints at what might be wrong? Do the surface stride values need to be set to something specific perhaps? So far I've been setting them to the usual values (so, for example, 1920 for the first plane and 960 for the second plane with 1920x1080 frames).
Which version of BSP are you using?
FYI. https://www.nxp.com/docs/en/user-guide/IMX_GRAPHICS_USERS_GUIDE.pdf
I'm not sure about the exact BSP version. I use meta-freescale from github, git master branch (HEAD is at commit e7a87526ae38d7b23982d061cfbbead8d1bed151 at this time). Found it: It is the NXP release 5.15.52-2.1.0, integrated into meta-freescale.
I have seen this PDF, but it does not tell me about the tiling through G2D.