On Thu, 12 Sep 2013 21:19:36 -0700 (PDT)
Patrick Wood <
patric...@gmail.com> wrote:
> Does anyone know of a regression test for the G2D driver? I've merged the
> sun7i G2D driver code (which has some optimizations and bug fixes for
> corner cases) with the sunxi driver, but have no idea how to test it for
> correctness.
Most of the G2D functionality is currently only used in Android. So
nobody can tell if the sun7i fixes are doing anything good or not in
practice. Only
https://github.com/amery/linux-sunxi/commit/7015bbb75ac57b
seems to be interesting. But it sets the undocumented bits of
G2D_SCAN_ORDER_REG register (also known as MP_IDMAGLBCTL_REG
in the documentation). It would be nice to know what kind of
practical problem is solves and how to interpret this magic number.
> sunxi_g2d_bench runs, and X11 is fine, but other than surfing
> for lots of images on the web, how can I verify that G2D is
> copying/scaling/rotating bits/bytes properly?
The only G2D part that is used for X11 right now is just the
"mixer_simple_blt" code. This is simple copy (with overlapping
source/destination support) and conversion between formats.
Even though this functionality is supposed to be very simple, I had
to fix two bugs in it (data corruption for RGB565 -> RGB565 copy and
redundant input DMA channel setup which was reducing performance).
I used the "sunxi_g2d_bench" test for the performance fix verification.
Another test was used for checking correctness, but I did not push it
to any public repository yet.