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).