I've been trying to make Nameless HWC work on the Note. It's unsuccessful so far because of an hidden dependency on fimg2d4x (that's why
@stelistcristi was getting "runCompositor:stretch failed" errors, and in my case, I get an earlier initialization error). I tried to build the fimg2d4x driver in the kernel to replace fimg2d3x. This newer version is meant to run only on 4x12 devices, but I tried anyway. It compiles fine, and loads fine. Unfortunately the driver is complaining about "invalid params" passed in the ioctl by libfimg.so, so that's where I am.
Then I remembered that fimg2d was used by Skia, the graphics library used by Android, to do hardware acceleration. But... it seems hw acceleration has been removed when rebasing Skia to a newer version for KitKat! It's done by the GPU instead, so that's a performance penalty. fimg2d is currently entirely unused. It would be great if someone
could restore 2D HW acceleration :fingers-crossed:
It's still unknown if fimg2d4x can effectively run on Exynos 4210. To do that:
- enable fimg2d4x in the kernel
- build libfimg.so for 4x (there are two different versions in android_hardware_samsung)
- build Skia with SkFimgApi4x and try to run it.
In the generic G2D driver in the mainline kernel supporting both 3x and 4x, the changes seem minimal.
1,
2
Edit: summoning
@bauner @arter97
Edit: ok, I did it myself but it's untested. the three old commits were easy to cherry-pick, only a few conflicts.
https://github.com/libcg/android_external_skia @bauner