History log of /frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2e372074c036b9a8e4b4a1cbbd394071a50586df 01-Jul-2015 Miao Wang <miaowang@google.com> [RenderScript] update the type of offsets for BLAS.BNNM for RS support
lib.

bug: 22184114
Change-Id: I59686228cf716b0eace80541a43ac99f1da2f208
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
8dab1e59827244f84ceb73c5eb24427223b58b21 13-May-2015 Miao Wang <miaowang@google.com> [RenderScript] Implement BLAS in support lib.

- Works in compat mode
- Native mode is enabled if targetSdkVersion >= 23 and deviceAPI >= 23
- As other intrinsics, if set targetSdkVersion = 21, Incremental
Support (hybrid mode) will be enabled on device running L or later.

bug: 21902810

Change-Id: Ie867c7a521b10f27fd924a127e1a85ebd671b3dd
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
ad49cd7b145c09e67cbf1cbef436f669f06af6f0 05-May-2015 Yang Ni <yangni@google.com> Sanity checks in JNI code for script groups

b/20728113

This is copying the fix I made in native implementation.
(https://android-review.googlesource.com/148980)

Change-Id: I231c0d20c41ee53342d8a975c2db5a31854b9d40
(cherry picked from commit 6d26e4f14a1874eb247542d98bb1554405e50377)
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
a3d15a8e05e9e45e44f8792e81ee19f5b67b9650 03-Apr-2015 Miao Wang <miaowang@google.com> [RenderScript] Better handle DispatchTable init

1. targetSdkVersion <= deviceAPI, run in native mode when possible
(deviceAPI >= 19);
2. deviceAPI < 19, always use compat mode;
3. targetSdkVersion > deviceAPI, and if 19 < deviceAPI < 21, use compat
mode (since getPointer is not supported before L);
4. targetSdkVersion > deviceAPI >= 21, first try to initialize
DispatchTable based on targetSdkVersion using native mode (libRS.so), if
failed (say if targetSdkVersion = 23, native RS @21, dispatchTable will
not be able to initialized due to the new APIs added), fall back to
compat mode. If native mode successfully loaded, the Incremental
Intrinsic Support can kick in if needed.

Change-Id: Icafe2a1a5512dd15f399341c239dec802442033c
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
bba13d939a55d79e5bbf304e4baa6677abcdaf5f 06-Apr-2015 Yang Ni <yangni@google.com> Added a script group name to ScriptGroup2 API

Change-Id: I46e351c8412740512f56b7915b14f36183c6eeaf
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
c3e08a4781d4026ccc8f2dbd233acf4a01431e25 31-Mar-2015 Miao Wang <miaowang@google.com> [RenderScript] Fix value size data type in closure creation.
Same change as the native RS part.

b/19944127

Also added references to arguments and global values in a closure to
keep them live in Java while native code may access them.

Change-Id: Icc189df881b17efb2931eea5879c55abf71c7213
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
69335f8eaf555a8dc65ff04c5b49d1fa31e35f59 31-Mar-2015 Miao Wang <miaowang@google.com> [RenderScript] Add ScriptGroup2 API for RenderScript Support Lib.

- For now, the new ScriptGroup2 API is only available for API 23+
native mode, or pure compat mode.
- Incremental Support Mode (hybrid mode) will be added in another CL.

Change-Id: I268e721e8724d51e54ab3f80e7762da4ddac4ff9
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
0cc3605a948e2cb1d068ff9bfbb7439ab9a6e8c7 06-Mar-2015 Miao Wang <miaowang@google.com> [RenderScript] Add additional check for determining whether to use
native RS.

Workaround for Incremental Support lib on KK.
- if targetSdkVersion > device API version, always use compat mode
to gain access to all the intrinsics.
- For developers intended to use intrinsics introduced later than KK
Need to set the targetSdkVersion > KK, which is running in compat
mode.
- Otherwise on KK, be able to run scripts and intrinsics<=19, in native
mode.

Change-Id: Ie00ab8b05d274b46cafd71d1347ef7ac4e91aca7
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
b600f3bcdbd9a8fecd18d273d94f9b05a438fdd2 05-Mar-2015 Miao Wang <miaowang@google.com> [RenderScript] Update the java API about Allocation copyTo & From
FieldPacker

Change-Id: I1b9b1de3e0a6b975770d9af376f696eacaa8251b
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
059fede7f200350b6131fc131f76248085485722 26-Jan-2015 Miao Wang <miaowang@google.com> [Renderscript] Incremental Support for Intrinsics.

- If Intrinsic API is higher than Device API,
run on compat context.
- By default, run on Native RS if available.
- If forced using compat mode, or Device API<=19,
Just fall back to regular compat mode.

Change-Id: Icb0a87ea4bcf0524c1ed2841702f1cc4f04ea24d
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
9eb28ebcc5777f3ea8d26065cbd2635775b93acf 28-Feb-2015 Miao Wang <miaowang@google.com> [RenderScript] AutoPadding & Unpadding for Vec3 Elements during
copyTo & copyFrom.

Change-Id: Ideaa7c9393a8cb620f5b286985a8c69eff7a6c2f
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
2b7f06facd09f8f3ca3372733d316844767c8ecf 21-Feb-2015 Miao Wang <miaowang@google.com> [Renderscript] JAVA API update for Allocation.CopyTo
add the following functions to make it more symmetric to copyFrom().

- copy1DRangeToUnchecked, copy1DRangeTo
- copy2DRangeToUnchecked, copy2DRangeTo

Change-Id: Ic9cd9e849f98955240e8f863202e098b58b16438
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
7f0ff145bed6c0c8202eaec304fa87b0eecae962 19-Feb-2015 Miao Wang <miaowang@google.com> [RenderScript] Code clean up & Update the support lib based on native
rs. (java interface)

Change-Id: Ic4807c8913b58e833da57da77a23648feb91ff6b
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
825350eef96fe808a489376d0baa16307cbb5f6b 14-Jan-2015 Miao Wang <miaowang@google.com> [Renderscript] Set native lib path from java RS context for rs compat lib.

Change-Id: I84c3659bffa34d3fa07f14a7b423ed06c5315855
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
b9da3f66de38ee08c42e4612087b81d7331bdf74 24-Jan-2015 Yang Ni <yangni@google.com> InvokeID in compat lib.

Change-Id: I5b59df166ea30b309b8dd9623825ac0e72d03856
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
3d9b60c9ae71c4c09df0b4e59c825a5d631e1254 03-Dec-2014 Miao Wang <miaowang@google.com> Required 64bit changes for JNI/Java for RS compat lib.

Change-Id: I535e41c239ea536dd454646d8dbc03c4be212489
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
249f93e2f03137d10d8e4e18dba61450e499ca63 09-Jan-2015 Miao Wang <miaowang@google.com> Hide the ScriptGroup2 apis in JNI for now.

Change-Id: I4d6174debeb44aa72c03aed0eada29d800160c22
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
3faf45ea0b97cb4764d7f5a41e1cfb335866d03d 08-Jan-2015 Yang Ni <yangni@google.com> Merge "New Script Group API for support library."
bcccd31800d79f28767fe3d5db4e5cb4fb148360 05-Jan-2015 Yang Ni <yangni@google.com> New Script Group API for support library.

Change-Id: I9c612cf8874aabaf0ca7d1640567464c71ed3070
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
68171c40fc9a77c05da83453ac93a380960f36aa 06-Nov-2014 Miao Wang <miaowang@google.com> Enable USAGE_IO_OUTPUT and corresponding SetSurface and IOSend functions
for in RS Compat lib.

The USAGE_IO support is provided by a shared lib (libRSSSupportIO)
dynamically loaded on devices running ICS or higher.

bug 12924018

Change-Id: Id9478f8db0d52dd6891e367dbef0d64a186ca399
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
0a6baa205b88d8dc913c8c66df2682d01940c7cc 21-Nov-2014 Miao Wang <miaowang@google.com> Allow the Renderscript Compat lib to work on devices running ICS or lower.

- WAR for the bug that the dynamic linker ignores RTLD_LOCAL on older devices.
- Cleanup of Android.mk for librsjni

Change-Id: Icaf29339a29e7f0a7381d883c0ab8a1212b1575d
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
0844cefe83fbcb544ed9d16715159d783f2da5f3 16-Oct-2014 Miao Wang <miaowang@google.com> Create a separate static lib that provides a dispatch table to both fw/support/v8/renderscript/jni and libRScpp to reduce code duplication.

- This CL contains related changes to libRSSupport.

Change-Id: I9f243d319eb29ddc048feb3cea5866c813d9f622
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
dbf6b4b75aa70e8c1e4c0dace624a2ca8a2ca171 10-Oct-2014 Miao Wang <miaowang@google.com> Rewrite the support lib to switch compat lib over to dispatch table.

- Thunker classes are no longer needed.

Change-Id: If6f418828183ce18e307903e77ef1a5a5960a23a
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
eedc6b244cd80923757b46b8929a846ee33e4bdd 25-Jun-2014 Stephen Hines <srhines@google.com> Switch from size_t -> uint32_t for dimensions array.

Change-Id: Id7c75caaec2fa3545b1847e640182e7a5fa36b76
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
4c3f90a3aaf733956e99c99e4e41c0a555e651b1 04-Mar-2014 Tim Murray <timmurray@google.com> Remove liblog dependency in JNI and move to building with NDK.

Undefines FORTIFY_SOURCE because it doesn't work correctly with the NDK on non-ARM at the moment.

Change-Id: Ic6f77bc7874ffaf4a4662249a013fba5da246747
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
33841c8333bce105d65aba5590fa5e325c517a81 10-Sep-2013 Tim Murray <timmurray@google.com> Switch to flags word for context init.

bug 10427951

Change-Id: Icb244c15355843177bbddf3651aaa1046ad9e555
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
0f5bae87e2e3e3b0e66803122b5c4c7dd36d43dd 02-Jul-2013 Stephen Hines <srhines@google.com> Fix RS support library.

Bug: 9664050

1) Remove dependency on libskia.
2) Remove dependency on libandroid_runtime.
3) Switch libcutils/liblog to use static libraries.
4) Remove unused include of JNIHelp.h.
5) Fix missing default USAGE_GRAPHICS_TEXTURE for bitmap Allocations.
6) Provide a setprop for testing compatibility mode:
adb shell setprop debug.rs.forcecompat 1
7) Move shouldThunk() function into base RenderScript class.
8) Switch to actual NDK-provided logging infrastructure.
9) Remove dependency on libutils.

Change-Id: Ie218e05c78aac8f0c0cecb0b84bcfd2ab2fbf845
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp
099deb8fb1715e62bcb24513f8e9305ab4f7743a 29-May-2013 Scott Main <smain@google.com> re-organize renderscript support lib to match organization patterns

Bug: 9188088

Change-Id: I8ef73a288aa0dc6dc92adbe64389dc6dee3ed807
/frameworks/support/v8/renderscript/jni/android_renderscript_RenderScript.cpp