Hi,

Does FxOS/B2GOS support and take advantages of RenderScript [1]? Or is there 
any webapp taking advantages of it, such as Youtube?

I'm asking this because there are RenderScript blobs for Adreno GPU in 
system/vendor/lib directory of Flame v18D base image. And while these blobs are 
correctly copied to private builds by extract_files.sh script, the open bits 
they rely upon aren't. These are:
- system/lib/libbcc.so
- system/lib/libbcc.sha1.so
- system/lib/libbcinfo.so
- system/lib/libclcore.bc
- system/lib/libclcore_debug.bc
- system/lib/libclcore_neon.bc
- system/lib/libcompiler_rt.so
- system/lib/libLLVM.so
- system/lib/libRS.so
- system/lib/libRScpp.so
- system/lib/libRSCpuRef.so
- system/lib/libRSDriver.so

Rather than simply adding them to extract_files.sh script, I've tried to 
rebuild these binaries. This involves LLVM/Clang and related projects. For 
KK-based image, this requires adding the following CAF projects to flame-kk.xml 
manifest:
- platform/external/clang
- platform/external/compiler-rt
- platform/external/llvm
- platform/frameworks/compile/libbcc
- platform/frameworks/compile/slang
- platform/frameworks/rs
- platform/prebuilts/clang/linux-x86/arm/3.3

Build first failed in compiler-rt with:

target asm: libcompiler_rt <= external/compiler-rt/lib/arm/aeabi_dcmp.S
arm-linux-androideabi-gcc: error: unrecognized command line option 
'-integrated-as'

Looking at B2G/external/compiler-rt/Android.mk, it's noteworthy that the 
addition of -integrated-as flag to LOCAL_CFLAGS is commented, but not for 
LOCAL_ASFLAGS. I initially thought that I was using the wrong linker, as 
LOCAL_ASFLAGS comment above talks about MC assembler. There's indeed 
platform/frameworks/compile/mclinker project in CAF, but adding it to device 
manifest didn't help. In the end, I've simply commented the addition of 
-integrated-as flag for LOCAL_ASFLAGS, as for LOCAL_CFLAGS.

But build is now failing because of multiple warnings treated as errors in 
B2G/frameworks/rs projects. Hence my question: is it worth the headache or is 
simply RenderScript not supported on FxOS/B2GOS?

     Émeric


[1] https://developer.android.com/guide/topics/renderscript/compute.html
_______________________________________________
dev-fxos mailing list
dev-fxos@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-fxos

Reply via email to