Hi,
I've found an issue with the G2D HWC layer on i.MX8M Mini, here is my setup:
- Android 10.0.0-1.0.0 release
- i.MX8M Mini EVK platform
- MIPI display (1280x800 in my case)
- SF_PRIMARY_DISPLAY_ORIENTATION set to 90 (standard AOSP orientation variable)
That last variable changes the default display orientation from landscape to portrait in my case.
When using the default hwcomposer setting ("g2d 2D composition enabled!") rotation fails as you can see in the pictures attached:
- android10-imx8mm-portrait-g2dcompose.png = screencap output, looks correct/expected
- android10-imx8mm-portrait-g2dcompose-real-life.jpg = what I actually get on the screen
Now if I disable g2d hwc ("Opengl ES 3D composition enabled!"), it works as expected, it looks exactly like the screencap picture.
Let me know if you need any other info.
Regards,
Gary
已解决! 转到解答。
Hi gary_bisson
Have you ever tried whether there is a problem with the rotation of the mipi screen when the screen is vertical? Our screen resolution is (800x1280) and the video will not rotate when playing.Tks!
Is there any update on an actual fix for this? I have the same issue and resolved it similarly by hacking the composer, but this is not a robust solution. NXP is there any updates or a timeline for a resolution for this issue? Thanks
Hi,
"It is framework not pass the rotation information to HWC, no formal way to fix it." Please use work round method now. Internal team will update if there will be HWC public code introduced the rotation information.
Regards
Hi,
Thank you for your feedback although I highly doubt this sentence is true as I know for a fact such rotation works fine with HWC from other silicon vendors. Let me know if you want the name of a platform that has HWC working as expected.
Regards,
Gary
Hi,
How come the "framework doesn't consider it support in HWC"? It must be something missing in the HWC declaration.
Can you point to the source code?
Why does it work on HWC of other vendors like Qualcomm?
Regards,
Gary
Hello,
I found the cause that composer layer should also rotate 90 when build in SF_PRIMARY_DISPLAY_ORIENTATION=90,
can you try :
Regards
Hi,
I confirm that it fixes part of the problem, but then it breaks the user rotation:
content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1
Do you have any timeframe on the proper solution?
Regards,
Gary
Hi,
I'm not sure i understand your reply.
But yes both rotation can happen, the one I'm talking about is the display orientation, that sets the display "default" rotation for a user rotation of 0. But then user can still rotate the display (via accelerometer or content command) that "adds" the rotation to original display orientation. That is how it works for 3G GPU rendering or with hwcomposer of other vendors.
Regards,
Gary