History log of /frameworks/rs/driver/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ae2ec3febedfc29376b9104413fb4042028f1265 01-Jun-2016 David Gross <dgross@google.com> Delete simple reduction implementation.

Bug: 27298560
Change-Id: I8c3d568e98aaf0b7d86881c985d13ed5b8e95338
sdBcc.cpp
sdBcc.h
sdCore.cpp
8e70791ff732ce244077310bdfdaf75dc19baabc 07-Jun-2016 David Gross <dgross@google.com> Add HAL version check, with fallback to CPU reference driver on failure.

libRS_internal and the vendor driver (or CPU reference driver) must
agree on HAL version.

Bug: 27298560
Change-Id: Ie4886af9c9cf6a91a164b8cfedb5c010ffbf9cb0
sdCore.cpp
6b855bd97cc9294e86abdb5e50733fc32cca25e4 25-Apr-2016 Miao Wang <miaowang@google.com> Fix copyFrom for YUV Allocation.

Bug: 28249238

- When copying data into YUV Allocation, src pointer was moving
incorrectly. It should move by the number of bytes copied, rather
than the stride of the destination LOD of the Allocation.

Change-Id: I721856d6ee23f7f3b1ec58ac5ad26f118febac4a
sdAllocation.cpp
5e48002cc4a11e9ce63852a77488cfb9f6765c2b 06-Apr-2016 Yang Ni <yangni@google.com> Avoid accessing TLS in rsClearObject()

Bug: 27874893
Bug: 27925095

rsClearObject() may be called on rsContextDestroy() in the JNI thread,
where TLS is not initialized.

This also reverted Icca50fade1199b6f530f963e9e694366b7d8cf67 that
made rsContextDestroy() go through the FIFO. rsContextDestroy() must
happen off the FIFO, since it joins the FIFO consuming thread.

Both the rsClearObject() change and the rsContextDestroy() revert need
to go together to make RenderScript and Camera CTS tests pass. Hence
this single CL for both changes.

Change-Id: I5f1d91a4cc1ce9bf2b3386fbef6f1171638b5266
(cherry picked from commit ade3137c22dd91694742145c2d5fe9d6bae17516)
sdRuntimeStubs.cpp
92185a7b5e7821ce5b584329a2483f224ca12e0f 04-Apr-2016 Pirama Arumuga Nainar <pirama@google.com> Implement rsDebug for half

http://b/27556050

Add needed support in libRSDriver and libclcore.

Change-Id: I374b4372bd4f550e99f9916e1c0a08b8c406f0fc
sdRuntimeStubs.cpp
untime/rs_core.c
c0b8e2d47db285de0087e524b1e7f1576c4bece9 01-Apr-2016 Pirama Arumuga Nainar <pirama@google.com> Merge changes from topic 'f16-clamp' into nyc-dev

* changes:
Enable tests for Float16 clamp
Define Float16 clamp
13e95692c152bd270078b72dda494aecb60bbb9b 01-Apr-2016 Miao Wang <miaowang@google.com> Merge "Add librsrt_x86_64.bc and modify the script to update x86_64 prebuilts." into nyc-dev
2173a9968276b2b91b7ed3d0a76d9e642710843b 01-Apr-2016 Pirama Arumuga Nainar <pirama@google.com> Define Float16 clamp

Bug: http://b/27366867

clamp is defined in two files: driver/runtime/arch/generic.c (used to
build libclcore for most architectures) and driver/runtime/arch/clamp.c
(used to build libclcore for AArch64, ARM32 with Neon). I had added
Float16 clamp in clamp.c but not in generic.c. This CL adds the
functions to arch/generic.c.

Change-Id: I26df4f1efec6e909c786baf132d6c296b5a3468f
untime/arch/generic.c
9a82dacd1369cc3021a77f3632bb327e331a131f 13-Feb-2016 Dan Willemsen <dwillemsen@google.com> Fix Kati dependencies

Kati/Ninja does not handle dependencies quite the same as make. Use the
provided include-depfile helper.

Bug: 26839129
Change-Id: Ife0043126daa308211cd480aa372bdf8b376d5eb
(cherry picked from commit 46e9224951a01eb15a10edf1cb1d62a57d786174)
untime/build_bc_lib_internal.mk
2a54eadacced2ad69d39404bcb52b5332761c5ce 30-Mar-2016 Miao Wang <miaowang@google.com> Add librsrt_x86_64.bc and modify the script to update x86_64 prebuilts.

Bug: 19735423
Change-Id: Iabf5ba261f113e72ccab06afca968a036b9679e1
untime/Android.mk
abe31c581489727afa84f9b756f0d2a0f4be057e 30-Mar-2016 David Gross <dgross@google.com> Merge "Multithreaded execution of certain general reduction kernels; reduction test overhaul." into nyc-dev
10adb0c2029f112b5738228617d5645f6ecea0c5 29-Mar-2016 David Gross <dgross@google.com> Multithreaded execution of certain general reduction kernels; reduction test overhaul.

A reduction kernel is eligible for multithreaded execution if it has a
combiner function and it is launched over a 1D iteration space.

Note: Properties debug.rs.reduce-accum and debug.rs.reduce-split-accum
are added for debugging multithreaded reduction.

The following changes are made to reduction tests in RsTest:
- Overhaul the test framework -- now data-driven, and can execute the same
test multiple times with different seeds and input sizes, features
separate sets of quick correctness tests, full correctness tests,
and performance tests. (Performance tests are not run by default.)
- Report timing information for test execution.
- Report more information for fz* kernel testing.
- Remove dp kernel testing -- this involved floating-point arithmetic
which is not guaranteed to produce identical results between java
and rs or for different rs multithreaded executions.
- Add sumgcd kernel testing. This is intended to be representative of
a compute-heavy kernel.
- findMinAndMax kernel testing must compare cell value not cell index
-- two or more cells might have the same min or max value, and java
and various rs multithreaded executions are not guaranteed to find
the same cell.
- Fix bug in findMinAndMax kernel's combiner function. (It behaved
incorrectly when operating on an accumulator datum that has been
initialized but never passed to the accumulator function.)
- RsTest now requests largeHeap.

Bug: 27299475
Change-Id: I58f99c21389dbae5c8e3ad85d98700dc165664bb
sdRuntimeStubs.cpp
702eedfed8a1a0dc4f82a2dec56f7dda08d4526a 25-Mar-2016 Pirama Arumuga Nainar <pirama@google.com> Merge "Revert "Build libclcore libraries with UNRELEASED RS_VERSION"" into nyc-dev
ff6c356c4166ad461c2a1be3f8ac57a0da972daf 24-Mar-2016 Pirama Arumuga Nainar <pirama@google.com> Merge "Revert WARS related to __truncxfhf2" into nyc-dev
3565d51a9e8328bf00310334ddef90f547f5df6b 24-Mar-2016 Pirama Arumuga Nainar <pirama@google.com> Revert "Build libclcore libraries with UNRELEASED RS_VERSION"

Bug: http://b/25435756

This reverts commit 070a3136cce83472578220e100aa7be6fc2f1d5f.

Change-Id: Idd381545d38d96f4417ecaa5cc7e98ae1dd8afb2
untime/build_bc_lib_internal.mk
f515ce0b076986593622d81f4b6c1f3fac91a03f 24-Mar-2016 Pirama Arumuga Nainar <pirama@google.com> Revert WARS related to __truncxfhf2

Bug: http://b/26165616
Bug: http://b/23535482

Revert "Add __truncxfhf2() to libclcore_g.bc as well on x86 targets."

This reverts commit 53f2796ad6c7487c298b49b62a0ea36ac95c54e5.

Revert "Implement __truncxfhf2 in driver/runtime"

This reverts commit d68b3c3a1ffa365e6be78afe74b3bf02bae3834d.

(cherry picked from commit 3276e6d5fd86ef7b9a6e7b8c89922757da5d23ad)
untime/Android.mk
untime/arch/x86_trunc.ll
95e71d3d05a583a807013de5c81f952e1ba054be 24-Mar-2016 Yang Ni <yangni@google.com> Bump sysRefCount for new objects from the runtime

Bug: 27814601

Slang expects any new rsObjects to have sysRefCount 1, and adds a
rsClearObject() call when the rsObject goes out of scope.

To match this expectation, all runtime functions that create
rsObjects need to bump up their sysRefCounts to 1.

Change-Id: I097c4ac6f00edf1d39fc1d88238be78d29a09257
(cherry picked from commit 0b8411471e7d2d332610ec16f555ab8cc434d167)
untime/rs_allocation.c
untime/rs_element.c
untime/rs_mesh.c
480202aa71e8d784ae01d0c9a1094fa7f87cd4c0 14-Mar-2016 Pirama Arumuga Nainar <pirama@google.com> Update frameworks/rs/ for LLVM rebase to r256229

http://b/26987366

(cherry picked from commit 651a38eb254f069f28fc99b7d180756123ff3a8a)

Change-Id: I66e136e04c1e534337b1f6cc563f92348da64fef
untime/Android.mk
untime/build_bc_lib_internal.mk
b1f9eb6b37dace844ab927421c2dbfdff954e72d 08-Mar-2016 Yang Ni <yangni@google.com> Reset usrRefCount for rsObjects created by SSRS

Bug: 25570907

After calling runtime API to create an rsObject, decrement its
user ref count to 0, so that they don't get leaked after the script
finishes.

To avoid deleting them too early, increment the sys ref count first.
The increment will be matched with a rsClearObj() call inserted by
slang.

Change-Id: Iaa7312447efdd7d79f43be0bee44324b663de8d5
(cherry picked from commit 8133c6617ea975c0c08f28b6d1705dd27a92f35f)
sdRuntimeStubs.cpp
a53bf64187bcf01ed1c62eacd52f6c6f41b5864b 09-Mar-2016 Pirama Arumuga Nainar <pirama@google.com> Fix typo/error in copysign.

http://b/27512382

Change-Id: Id9d9d12184d85ce695f69d5c02b20c74c8207271
untime/rs_f16_math.c
838c2d0dc0b8b07d4aa8de4360765738c6d2770e 25-Feb-2016 Miao Wang <miaowang@google.com> Better handle error log and nullptr reference.

Bug: 27367378

Change-Id: Ide29c702d7a70dfe087ddc600d3fd17279223196
(cherry picked from commit 68e00893f7400d1ce71a9ed92365ffdfd6730c03)
sdRuntimeStubs.cpp
8ef7c7660c66107b80843ddf6b3b81fdee589de2 19-Feb-2016 Stephen Hines <srhines@google.com> Fix inverted grep so that we can view any new warnings/errors.

Bug: http://b/27068813

This grep now suppresses blank lines as well as any of the expected
warnings for mismatched bitcode source files.

(cherry picked from commit 18edd6a64d4c1408a6fe233c6ddc7b1d2a43dff5)

Change-Id: I61449656957e5cd1a7cffc66f39acf971b17be58
untime/build_bc_lib_internal.mk
27af8554d7a84ffb4d6f4e61af41b530a45b5a12 13-Feb-2016 Dan Willemsen <dwillemsen@google.com> Set bc library class to RENDERSCRIPT_BITCODE

These are not elf shared libraries, so explicitly tell the build system
that so that it won't try to parse them.

(cherry picked from commit 699102724a92b8bc87a58679e01621ac29475595)

Change-Id: Ia781c9b5ac8d1182093f676f76cd08bf91e3aa8e
untime/build_bc_lib_internal.mk
776a023502d57a78f3c70312fdbd8bcb3d359d2c 16-Feb-2016 Stephen Hines <srhines@google.com> Use RELATIVE_PWD to ensure that we get consistent debug paths.

Bug: http://b/24204119
Bug: http://b/27175099

RELATIVE_PWD is set to /proc/self/cwd on Linux (and unset on darwin).
This leads to a more consistent set of binary objects to be generated,
since the debug info won't change based on file/path differences from
different branches/builders.

Change-Id: I759bda204ed21142645a2745fc36282dd95b0b69
(cherry picked from commit fb9bf7242f7129d6f03087b00689b3a3db9a4108)
untime/build_bc_lib_internal.mk
6ddb349243e03b30b9d11cc0405d048cd07b6378 18-Feb-2016 Stephen Hines <srhines@google.com> Add __truncxfhf2() to libclcore_g.bc as well on x86 targets.

Bug: http://b/23535482

In order to facilitate x86 debugging (and simplify our build a bit), I
moved this function to a separate file. Once we have updated LLVM, we
can remove this function (since it won't be used anymore).

Change-Id: I91106a177b987187e40d556a2a0ae96e24b09e65
(cherry picked from commit 53f2796ad6c7487c298b49b62a0ea36ac95c54e5)
untime/Android.mk
untime/arch/x86_sse2.ll
untime/arch/x86_trunc.ll
e81f26204ca98c9c8f0ea3bf67d991c6b9750284 13-Feb-2016 Stephen Hines <srhines@google.com> Suppress bogus warning lines from llvm-link.

Bug: http://b/27068813

RenderScript runtime libraries mix different ABI bitcode files,
resulting in warnings for the mismatch. These warnings aren't generally
useful, so it is better to not display them. The inverted grep catches
both data layout and target triple mismatches, while also suppressing
matched (now blank) lines.

Change-Id: I177f359fcf657a31de831cb2fb2ea981de470238
(cherry picked from commit 63f52b1a9c8e4d79bf0ad046503180cf11994035)
untime/build_bc_lib_internal.mk
ab70dba4e1c76b6b7b6a1001fae3529b11ca6190 13-Feb-2016 Stephen Hines <srhines@google.com> Clean up warnings for RS runtime libraries.

Bug: http://b/27068813

This change turns on -Wno-deprecated for compilation of just the runtime
libraries (since they need to retain even our deprecated definitions).
It also fixes some issues with "endif" comments. I have also enabled
-Werror for the runtime library compilation, so that we don't trigger
any future problems.

Change-Id: I0771e70f5aeb4be17d4390d57dae97a0aaf560a4
(cherry picked from commit f72e74660567181b79673f2a476a6957db2507e5)
untime/build_bc_lib_internal.mk
untime/rs_allocation.c
untime/rs_cl.c
6f6a6837da3f4461f1796bdb4b694980ff8784df 18-Feb-2016 Pirama Arumuga Nainar <pirama@google.com> Enable creation of float16 allocations

http://b/24862914

This was previously disabled due to a missing enum value.

Change-Id: I9bfed5d1f42192aa6576207a9fcbdc22386d0d0d
(cherry picked from commit 7e1013b9461a07d42df05b2c6f7e73ec6518b82a)
untime/rs_allocation.c
8c3ddbcb5621543ff1fa55e3fbdfcbc0df6d598b 19-Nov-2015 Lukas Kuklinek <lukas.kuklinek@codeplay.com> Build RenderScript cpu_ref kernel ABI debug info.

This change adds extra debugging information to libclcore_g.bc. The
debug info contains description of ABI interface between the host code
and the expanded kernel. In particular, the type information about
RsExpandKernelDriverInfo struct from cpu_ref/rsCpuCoreRuntime.h (that is
being passed as the first argument to the expanded kernel) is captured.
The function prototype of the expanded kernel function is also mirrored
here in a small stub C file (driver/runtime/rs_abi_debuginfo.c). Clang
is then used to generate the debug information from the file.

(cherry picked from commit ac90816512460a26132b07f1b34c638e49270515)

Change-Id: Idea8c8192cd22eb080306be9a43c6e404b736d92
untime/Android.mk
untime/rs_abi_debuginfo.c
f7f9316f4cf373733285f947bea876ead7216715 18-Nov-2015 Verena Beckham <verena@codeplay.com> Add a new libclcore_g library which contains debug info.

Add a new libclcore_g.bc which is functionally equivalent to
libclcore.bc but is compiled with debug information and -O0.
To achieve this some allocation functions had to be written in C,
because they were previously available in LLVM IR without debug
information.
The RenderScript cts has been run to verify these changes, both as it
is and forcing it to link with the new libclcore_g library. Both runs
show no regressions.

Signed-off-by: Verena Beckham <verena@codeplay.com>

(cherry picked from commit fb99e0f905b0f73a505c7900b434531ce7c3e2e5)

Change-Id: I64c82ce6f571e766c3c607e926326040dff8257c
untime/Android.mk
untime/arch/generic.c
untime/build_bc_lib_internal.mk
untime/rs_allocation.c
untime/rs_cl.c
98a98ce9b55a134aa54429f92dd3bf5c3004284f 12-Feb-2016 Stephen Hines <srhines@google.com> Merge "Move implementations of quaternion functions into driver/runtime." into nyc-dev
501f4335505ab8b336628fdefc6523b19812c902 12-Feb-2016 Pirama Arumuga Nainar <pirama@google.com> Fix errors in TBAA tags for ll64/allocation.ll

Fix some obvious copy-paste errors in TBAA tags in ll64/allocation.ll

Change-Id: I5e0695d97a83ea6eb970fdabf9ebb2bee16c650f
(cherry picked from commit a71c65f48d75ca6d8269e2e3d8bf8cc59ddb5cae)
untime/ll64/allocation.ll
14c8aa51782107afb6f84187233f5ac8f6da0373 18-Nov-2015 Verena Beckham <verena@codeplay.com> Move implementations of quaternion functions into driver/runtime.

Move the implementation of all quaternion functions from rs_math.rsh
driver/runtime. The old implementation remains in place for older
versions, and the move occurs only for an UNRELEASED API level.
Added a new file driver/runtime/rs_quaternion.c to contain the
implementations.

Signed-off-by: Verena Beckham <verena@codeplay.com>

(cherry picked from commit 336fc4b3fb2df22623d51d9bbb996d11cd69f16c)

Change-Id: Ib37fad0a911d05640f7b2b9e88b25cd0053108c1
untime/Android.mk
untime/rs_quaternion.c
5d6fa39fbdf6bbe011417bd9eb19b21c93e9e061 11-Feb-2016 Pirama Arumuga Nainar <pirama@google.com> Fix rsSetElementAt_half3 for x86_64

http://b/25819476

In AArch64 ABI, half3 parameters get coerced to int2. The definition of
rsSetElementAtImpl_half3 in libclcore incorrectly takes a half3
parameter. This caused rsSetElement_half3 to fail on x86_64 where the
ABI handles int2 and half3 differently. This patch updates the
definition in libclcore to accept an int2 parameter.

Change-Id: Idcaeaeb78731f99c338634dd8666ebd5575da1eb
(cherry picked from commit 6edd4a7b11ae0085024409a3b215a7fddaff61f3)
untime/ll64/allocation.ll
884bc7c83f113a25b82e66ca45b1c6839b97666f 06-Feb-2016 Pirama Arumuga Nainar <pirama@google.com> Implement fract, frexp and modf for half

http://b/23536224

Implementations are based on float32 implementations in
bionic/libm/upstream-bsd.

(cherry picked from commit b32dc1237e7e158bab7d15ab18618c4916e64415)

Change-Id: Ibf927cbab3aa45c7bedbc5ec23c6f31eafe92bd9
untime/rs_cl.c
untime/rs_f16_math.c
f9760483073d9f452e4701fbf367dc518f7e6531 04-Feb-2016 Pirama Arumuga Nainar <pirama@google.com> Implement copysign, ilogb and nextafter for half

http://b/23536224

Implementations are based on float32 implementations in
bionic/libm/upstream-bsd.

Change-Id: Id2f28caae22e86a2cc401996902bf8be93cb9328
untime/Android.mk
untime/NOTICE
untime/rs_cl.c
untime/rs_f16_math.c
untime/rs_f16_util.h
d68b3c3a1ffa365e6be78afe74b3bf02bae3834d 04-Feb-2016 Pirama Arumuga Nainar <pirama@google.com> Implement __truncxfhf2 in driver/runtime

http://b/26165616

As a WAR for this bug, define __truncxfhf2 in driver/runtime. Note that
this implementation exhibits the double-rounding problem. This WAR will
be removed once a proper implementation is added to compiler-rt.

Change-Id: Ic8ec8f86feff6da81c1c8e7c0b1d37112a20c609
untime/arch/x86_sse2.ll
6e13ee21796fd86802f2688c6220544c99b68c40 18-Nov-2015 Verena Beckham <verena@codeplay.com> Move implementations of matrix functions into driver/runtime.

Move the implementation of rsExtractFrustumPlanes and
rsIsSphereInFrustum from rs_math.rsh into driver/runtime. The old
implementation remains in place for older versions, and the move
occurs only for API level 24 and up.

Change-Id: I7661e71eb5d344e39fa84e0aa502c621936e68a0
Signed-off-by: Verena Beckham <verena@codeplay.com>
untime/rs_matrix.c
e0f52d61fe6790093ef19c734dda2e2c9c0c0fbf 18-Nov-2015 Verena Beckham <verena@codeplay.com> Move scalar function implementations from into driver/runtime.

Move the implementation of all scalar SC_* functions from
rsCpuRuntimeMathFuncs.cpp to driver/runtime/rs_cl.c.
Removed the file rsCpuRuntimeMathFuncs.cpp since it is now empty.

Signed-off-by: Verena Beckham <verena@codeplay.com>
Change-Id: I2c5d063c67ad1d92bcf6b62841ca1fbb5a72bd9c
untime/rs_cl.c
a48442ad9cc9922d012407b3aebe648b5f0acf14 31-Jan-2016 Stephen Hines <srhines@google.com> Merge "Move implementation of rsFrac from cpu_ref into driver/runtime."
9cbc99ba45126a6a30ba13fc6d4e75e51ca14ea7 16-Nov-2015 Verena Beckham <verena@codeplay.com> Move implementation of fract(float) into driver/runtime.

Move the implementation of the float variant of fract from rs_math.rsh
into driver/runtime. The old implementation remains in place for older
versions, and the move occurs only for API level >= 24.

Signed-off-by: Verena Beckham <verena@codeplay.com>
Change-Id: Id94e7191604d5ccaee41b6634731ee997bf01983
untime/rs_cl.c
4c01362afa871fcde6c269bc0ba3defa9e76de49 18-Nov-2015 Dean De Leo <dean@codeplay.com> Add the const qualifier to the internal definition of memcpy

The second argument of memcpy should be constant, resembling the actual
definition of memcpy in libc. This change will resolve few compiler
warnings shown when building the new artifact libclcore_g.bc, introduced
by id 181869 on android-review.googlesource.com

Change-Id: Ibb78c4c77ef51a9c424cb6a39448be609abc83b6
untime/rs_allocation.c
943457fd8b72622adbd9639ad80bed953743ff25 23-Jan-2016 Stephen Hines <srhines@google.com> Switch to RS_CLANG instead of CLANG.

Change-Id: Idb1ece04ae348c4a1f7bf49f2c161d682a170469
untime/build_bc_lib_internal.mk
69ece18a4fce9ccc310a822b9fb6d9d377918728 22-Jan-2016 Stephen Hines <srhines@google.com> Merge "Switch RS over to using RS_LLVM_* tools."
fd98fa620e30d0f58e04dda75cc85b63a0f96aac 22-Jan-2016 Stephen Hines <srhines@google.com> Switch RS over to using RS_LLVM_* tools.

This change updates the runtime build rules to use RS_LLVM_* tools,
which correspond to the version of LLVM checked in currently to
external/, instead of mapping to the latest host prebuilts. This will
help prevent version differences for newer IR generated by the updated
host prebuilts, which then might not be readable with the on-device LLVM
bits we build from external/.

It also removes an unused reference to clcore_LLVM_LD.

Change-Id: I9f85daf47da21340333cc09dc6f6f2eb8d438a4b
untime/build_bc_lib_internal.mk
6c1876bbef1b2c89975dce91230a168bd2d2ce4c 15-Jan-2016 David Gross <dgross@google.com> Support for general reduction kernels.

Requires coordinated change in frameworks/base.

Requires coordinated change in frameworks/compile/libbcc in order
for RsTest to run.

At present, general reduction kernels are run single-threaded.

Also: Remove dead struct field MTLaunchStructForEach::sig.

Bug: 23535724
Change-Id: Ice17ccf20a902f8a106eaa62ec071d46e3c0ad8c
sdBcc.cpp
sdBcc.h
sdCore.cpp
d1be4d815ed18d5cf538ff5f36f5d36304eb337f 18-Nov-2015 Verena Beckham <verena@codeplay.com> Move implementation of rsFrac from cpu_ref into driver/runtime.

Move the implementation of all the rsFrac functions from
rsCpuRuntimeMath.cpp to driver/runtime/rs_core.c.

Change-Id: I42bb4ba694fff76854c8deaefdd55671fec40acc
Signed-off-by: Verena Beckham <verena@codeplay.com>
untime/rs_core.c
8ea0a4219a55a84bf41b324a26f18babdd251dc3 12-Dec-2015 Pirama Arumuga Nainar <pirama@google.com> Merge changes from topic 'f16-math'

* changes:
Test f16 math functions in RsTest
Implement f16 math functions in the runtime
Generated .rsh files for f16 math functions
Add RS math functions for F16.
54cd5d1771ea5c95e181befc66ef8e2a2c1b78cd 10-Dec-2015 Pirama Arumuga Nainar <pirama@google.com> Implement f16 math functions in the runtime

Bug: 23536224
Bug: 26099914

Change-Id: I67cd1d5c8e45822f4ce847d8cff402ba31b03660
untime/arch/clamp.c
untime/rs_cl.c
untime/rs_convert.c
63bd646ed141f5938263574d6372b6b83710e68c 11-Nov-2015 Pirama Arumuga Nainar <pirama@google.com> Define F16 getters and setters in rsdRuntimeStubs

So they can be used with the debug context

Change-Id: I1902bbe3b90cd60fae9f494687394d29ffe19a2a
sdRuntimeStubs.cpp
fb4501af549ec21e1e11132091cf4ed49148be84 12-Dec-2015 Pirama Arumuga Nainar <pirama@google.com> Merge "Fix rsGetElementAt* for half"
a5aafe5bc0ca314e32b574f14482926902adf65c 07-Dec-2015 Pirama Arumuga Nainar <pirama@google.com> Remove dead declarations of smoothstep

There are no references to smoothstep outside of these declarations.
Remove them.

Change-Id: Ia5aff51cd5ff174aef596096ed9dbb8b0a18dba2
untime/rs_cl.c
79b75b7ba646cebabe83c68f0ff72a8018f6b3ea 19-Nov-2015 Yang Ni <yangni@google.com> Changed rsForEachInternal prototype

Bug: 25602504

Changed it from using varargs to an allocation array.

Also added a test for allocation-less kernel launch.

Change-Id: I1b53861083b87c51c5bdaeaec2be469dc7af7a0a
sdRuntimeStubs.cpp
f1ce4be308bae2fc68d61b7bb067fc00e488959a 17-Aug-2015 Pirama Arumuga Nainar <pirama@google.com> Fix rsGetElementAt* for half

* Use the correct vector size for half3 and half4
* Directly return the result for rsGetElementAtImpl_half3 instead of the
pointer argument to store the return value
* Add TBAA metadata to a load

Change-Id: Ia728bbb3f7cc3b02c0d6307bd48122f3c7d9cd44
untime/ll32/allocation.ll
untime/ll64/allocation.ll
070a3136cce83472578220e100aa7be6fc2f1d5f 03-Nov-2015 Pirama Arumuga Nainar <pirama@google.com> Build libclcore libraries with UNRELEASED RS_VERSION

Bug: 25435756

This is to make newly created UNRELEASED symbols (enum rs_yuv_format in
particular) visible to driver/runtime.

Change-Id: Ic80812ea8efdf94d255e387abab0386e313dd18a
untime/build_bc_lib_internal.mk
7cb2273d4487b482d99d29f596506743c6a14534 12-Oct-2015 Pirama Arumuga Nainar <pirama@google.com> Implement allocation creation API in libclcore

Bug: 23535985

Implement low-level API functions to create Elements, Types and
Allocations libclcore.

Change-Id: If001406ee8d90e8b2afb4d1deed4825880a2414c
untime/rs_allocation.c
6b387c1e466b507007f0b388da8b037362154e9a 12-Oct-2015 Pirama Arumuga Nainar <pirama@google.com> Driver support for creating allocations from a Script

Bug: 23535985

Implement functions rsCreateElement, rsCreateType and rsCreateAllocation
in libRSDriver to allow creation of Allocations from a Script.

In its current state, the RS objects returned from these functions are
guaranteed to leak due to incorrect handling of their reference counts.
They'll be fixed in a follow-up CL.

Change-Id: I9bb7c72a8dd3cd1aac2de3bad92276c3af662484
sdRuntimeStubs.cpp
f4bf3ed473cd8132e52826bbde8df5aab44c87ab 10-Nov-2015 Stephen Hines <srhines@google.com> Merge "X86: Add missing functions for libclcore files"
b0dabd1c86ddc67507bae00093002b54e86383f0 07-Nov-2015 Yang Ni <yangni@google.com> Fix 64-bit build error

There is another build failure on shamu due to use of unique_ptr.
Avoided that by using a fixed size array.

Change-Id: I320b9327fa3938223f6a33c0cd41a1b1791156fc
sdRuntimeStubs.cpp
dda5cb5b59ae02ec03001ea12c374413714f3d38 27-Oct-2015 Yang Ni <yangni@google.com> Launch options & multi inputs for single-source RS

Bug: 23535985

Also renamed rsParallelFor to rsForEach, and deprecated previous
rsForEach.

Change-Id: Ibc22bd5e9585a4471b15920ef60fe1fe2312de49
sdRuntimeStubs.cpp
dd635b0a5095b1b2dfae0458069d03c6a13c3473 29-Oct-2015 Yong Chen <yong.a.chen@intel.com> X86: Add missing functions for libclcore files

Change-Id: Ia9b70843dfa32acabf8d71ce77e253f8a376c16a
Signed-off-by: Yong Chen <yong.a.chen@intel.com>
untime/Android.mk
untime/arch/generic.c
untime/arch/x86_sse2.ll
untime/rs_cl.c
12398d81f32e5e0479d02b8608a83c75cd991bb3 18-Sep-2015 Yang Ni <yangni@google.com> Add rsForEachInternal

Bug: 23535985

Added a compiler intrinsic rsParallelFor to the runtime API, which
is translated into an internal API (rsForEachInternal) by slang.

Added a test to RsTest (for native) and RSTest_CompatLib
(for support).

Enhanced the auto api generator to handle ellipsis argument,
intrinsics, internal-only APIs, and special level for API under
development.

Change-Id: I6e2cf3db868f426aa8e0b9a77732b66c1e6b9f03
sdRuntimeStubs.cpp
b370582ff4f5487cbe2bde954200e509da63be8d 11-Sep-2015 Pirama Arumuga Nainar <pirama@google.com> Add arch/generic.c to non-AArch64 64-bit libclcore

Bug: 23687554

Include arch/generic.c to libclcore.bc for non-AArch64 targets. This
should only affect MIPS64. x86 uses libclcore_x86.bc, which is built
separately.

Change-Id: Ifbc02e38cbe44265eac55f7277453eb2326b40cc
untime/Android.mk
14ce007a633b10e3b9a3fae29d8f53a7e8c9b59f 31-Jul-2015 Matt Wala <wala@google.com> Add a basic implementation of the reduce kernel API to the CPU
reference implementation.

Bug: 22631253

For now, this just runs a serial reduction on one thread.

Change-Id: I34c96d24bb6f44274de72bb53160abcf79d143b0
sdBcc.cpp
sdBcc.h
sdCore.cpp
47a5881b8f85d65c74f2471fe6261d4cdb3dce5e 24-Jul-2015 Miao Wang <miaowang@google.com> Add AllocationCreateStrided to support lib CPU driver

- Able to create Allocations with arbitrary alignment requirement,
making Incremental Intrinsic Support able to run with different
native GPU RS runtime.
- Make compat mode CPU driver using an additional rs_compat.spec.
- Add a compat mode only USAGE_INCREMENTAL_SUPPORT.
- Add AllocationCreateStrided() to take an Alignment requirement (power
of 2). Only enbled when detect USAGE_INCREMENTAL_SUPPORT.

Change-Id: I66f913c3a2474f93af5a244c0c84460a7a395e71
sdAllocation.cpp
sdAllocation.h
sdCore.cpp
a673fb0db28eac2300fcfa04549138c1c9202014 23-Jul-2015 Stephen Hines <srhines@google.com> Ensure that SSE-specific functions get built separately for debug runtime.

Bug: 22530323

The build rules for the debug context don't allow the SSE optimized
versions of some functions to be used. Since we bundle all of these
functions into a single file, this results in the debug runtime missing
some symbols (clamp, length, dot, sqrt). This change ensures that the
debug runtime for x86 gets the generic definitions of these functions
instead of dropping them completely.

Change-Id: Idedfbb5c1badf0b88530a7e926dda6141443ea1f
untime/arch/generic.c
untime/rs_cl.c
66d9447a14af787b812b1014ec3eb242994dbc10 10-Jul-2015 Petar Jovanovic <petar.jovanovic@imgtec.com> [MIPS32] Use version of rsGetAllocation() that returns a pointer

Similar to IA-32, MIPS32 has a different struct return calling convention
that uses a hidden parameter. As that becomes the first argument to the
function, all user arguments are shifted down by one.
Thus, we opt for the version of rsGetAllocation() that emulates it with a
pointer.

This fixes issues with live wallpapers (Bubbles, Black Hole, Phase Beam)
and it fixes cts/GetAllocationTest.java for MIPS32.

Change-Id: I51d40f559a3f4c2d77303870a12142923790101c
sdRuntimeStubs.cpp
b010bc019c6ad11224ff6f73c22bce13cdab06e3 18-Jun-2015 Pirama Arumuga Nainar <pirama@google.com> Avoid clobbering of YUV layout for flexible formats

Bug: 21787806

In function DeriveYUVLayout in fw/rs/driver/rsdAllocation.cpp, skip
initialization of DrvState if the yuv format is the flexible YCbCr
format.

Change-Id: Ie2c5253b2ed048887d034ad8793d0558f2cd7d4f
(cherry picked from commit 31c406a5991858d68886d35b6e9bf03acc0b3288)
sdAllocation.cpp
2dcbc3d33443c1224085cab081b634f99327c159 07-Apr-2015 Pirama Arumuga Nainar <pirama@google.com> Support for half in driver/runtime

Bug: 7342860

Add conversion functions, clamp to the C files. Add rsGetElementAt,
rsSetElementAt to ll*/allocation.ll

Change-Id: I71c93029699f9bbc79a5b04b51074e303981ae4b
untime/build_bc_lib_internal.mk
untime/ll32/allocation.ll
untime/ll64/allocation.ll
untime/rs_allocation.c
b043df0676fef226336deb3a00ead2f31e02343f 29-May-2015 David Gross <dgross@google.com> Remove dead uses of RSCompilerDriver and of compiler callbacks.

Change-Id: Ibe8725074724b75e35c25a404daaba07ffbca2ab
sdCore.cpp
f5a7fd5b5174909cda5b66b1c66011655b2080c6 20-May-2015 Jason Sams <jsams@google.com> Merge "Notify drivers when user get a pointer to allocation"
abc1f945f6fd3de8d7d8f980f7d62c72d97ee802 19-May-2015 Jason Sams <jsams@google.com> Fix problems with allocation destruction

Cancel rather than try to queue the buffer queue to avoid
deadlocks on exit.

bug 20894664

Change-Id: Ie6375e67af66069472361ea4da9c111e19090684
sdAllocation.cpp
8ce12815675bfaeb2768959b092d6db293ba36c5 19-May-2015 Jason Sams <jsams@google.com> Notify drivers when user get a pointer to allocation

Requested by vendor for driver bring-up.

bug 20894664

Change-Id: I7a1540236e557ef42ffde1c832b5d5ef36b91c96
sdCore.cpp
24f5e68297a4af282cf0ba006fd6c01db98a9bd8 13-May-2015 Jean-Luc Brouillet <jeanluc@google.com> Merge "Obsolete the graphics API in the .rsh files."
67923a9e829d89522bb5338a6d635d807a7ee59b 13-May-2015 Jean-Luc Brouillet <jeanluc@google.com> Obsolete the graphics API in the .rsh files.

Mark the graphics APIs as no longer available starting with version 23.

Modify the generator to change the #ifdef guards around the API to
enable internal code to still access the obsoleted APIs, as we still
neeed to support them at runtime.

Also, include a documentation change in the rs_convert header file that had not
been included previously.

Change-Id: Iaad4833f504da9aa9f5069a977c37b86d1316d3a
untime/Android.mk
f82b626e0479ce4a23ebff1fc088e073dcabaa30 12-May-2015 Jason Sams <jsams@google.com> Add USAGE_OEM

Allow OEMs to pass data from other HW blocks via internal
extension.

Change-Id: I78c19f5eec462aff7d8a5408f2f16cfc9b78c036
sdCore.cpp
7cb8db1f7eb523223a7ba7b1a483d3f54566d836 07-May-2015 Ying Wang <wangying@google.com> Fix build warning.

LLVM_AS here doesn't generate .d files.
This fixes nonfatal build warnings like:
cp: cannot stat
'out/target/product/flounder/obj/SHARED_LIBRARIES/libclcore.bc_intermediates/ll64/math.d':
No such file or directory

Change-Id: If132999d22be0daef4ca43fdb6602dc4465cf62a
untime/build_bc_lib_internal.mk
9479e5bf0152ecff022cd374e2e80905f88b1a5d 28-Apr-2015 Pirama Arumuga Nainar <pirama@google.com> Handle older structure sizes by zeroing new fields

Bug 19734267
Bug 19866850

Prior fix handled only rsForEach calls from a script. It is not
sufficient, as launch options in support library also will also use old
structures. Apps compiled for support library still run in native mode
when available, thus necessitating this fix.

This fix copies and extends the input in ScriptC::runForEach instead of
rsrForEach.

Change-Id: I3bb2527eadcbcdb85a76a1f5568269bbfdee972b
sdRuntimeStubs.cpp
247f8ee57196d6cf3264e6f7505f53e8f8a7860d 19-Apr-2015 Logan Chien <tzuhsiang.chien@gmail.com> Code cleanup: Remove unused typedefs and declarations.

Change-Id: I48dafb2bc1dc335a52b289db2981397251f673c8
sdCore.h
sdGL.h
e6069662d0e1ef53798fc16bba634ecc85aa689d 16-Apr-2015 Pirama Arumuga Nainar <pirama@google.com> Allow custom clang while building bclibs

Store $(CLANG) in a local variable while building runtime libraries. If
$(RS_DRIVER_CLANG_EXE) is defined, use that instead of $(CLANG).

Change-Id: Ie75f76ba183574b2189622a49b72ff8b62ff98d7
untime/build_bc_lib_internal.mk
5d95a78ab5758c2625949d78bb67eb3c5d9701cc 14-Apr-2015 Stephen Hines <srhines@google.com> Fix issue with older structure sizes

When structures are enlarged in RS we need to use the script
API number to properly handle the older cases.

Bug: 19734267

Change-Id: I0ffd3dc4cea1640f2b14c588df3a93eee749e74e
sdRuntimeStubs.cpp
174ebc44658bffa27f97c85ae0265ad3cb48ae85 27-Mar-2015 Yong Chen <yong.a.chen@intel.com> RS driver refactor and bugfix for 64-bit

Bug: 20135751
Bug: 19602994

1) Refactor runtime functions due to the new pass in
bcc has solved X86-64 calling convention issues
2) Fix bugs to support 64bit RS compat mode
3) Remove the obsolete runtime stubs

Depends on CL https://android-review.googlesource.com/#/c/142185/

Change-Id: I33b6fc1c61348eda83fdfdd437bfc67409ebe10c
Signed-off-by: Yong Chen <yong.a.chen@intel.com>
sdRuntimeStubs.cpp
7b284d6bf7ec83855a280e463ab6e2afc51f5482 10-Apr-2015 Pirama Arumuga Nainar <pirama@google.com> Merge "Update frameworks/rs for LLVM rebase to r233350"
81847392705347faa61e94e5d10e996943b6dd7c 08-Apr-2015 Pirama Arumuga Nainar <pirama@google.com> Update frameworks/rs for LLVM rebase to r233350

- Update 'load' to the new syntax in the textual IR. These files were
updated automatically using the script in
http://reviews.llvm.org/D7649
- Update 'getelementpointer' instructions to the new GEP. arch/*.ll
were updated automatically using the script in
http://reviews.llvm.org/D7636

Change-Id: Id198429579f22277108d5d55c34d4870359a6c18
untime/arch/asimd.ll
untime/arch/neon.ll
untime/ll32/allocation.ll
untime/ll64/allocation.ll
638583912305da68d0b1ff0de146a13d6b852c2e 07-Apr-2015 Jean-Luc Brouillet <jeanluc@google.com> Merge "Add rsDebug(msg, float2-4)"
684f5d3bf851733e99906e57f9998357ce8b77c0 06-Apr-2015 Stephen Hines <srhines@google.com> Merge "Fix TBAA by inserting a distinct root node."
9ba2911b6719b40a0d5dc6a901b40913da527fbb 04-Apr-2015 Stephen Hines <srhines@google.com> Fix TBAA by inserting a distinct root node.

Bug: 20069947

We now create a distinct TBAA root node, so that we can easily swap the rest
of the RenderScript TBAA subtree into the simple C/C++ TBAA tree.

Change-Id: Ia9a862283c26a91c9cb3c8f96122979abcfbcbe6
untime/ll32/allocation.ll
untime/ll64/allocation.ll
6ba05171a84a7444df01b9f81a7233b17e1f120a 04-Apr-2015 Jean-Luc Brouillet <jeanluc@google.com> Add rsDebug(msg, float2-4)

Change-Id: I6e0594d1fa5ed9ae27140334b6dce058aeb38f4e
sdRuntimeStubs.cpp
58024b10594838d966e8627a0e7fd320757f900d 04-Apr-2015 Ying Wang <wangying@google.com> Generate .P depfile.

With .P file, you don't need a cleanspec when a header file gets
deleted or moved.

Change-Id: I8d05ea2b7ff7cafa31b41cd6932cf3bf5094ce72
untime/build_bc_lib_internal.mk
301dc422de63135cd617546dad52e11c89fafaf7 03-Apr-2015 Jean-Luc Brouillet <jeanluc@google.com> Merge "Reorganize the header files in a way that's easier to document."
9270cd93e444d11d6e1b49653613409f34a0cc35 01-Apr-2015 Stephen Hines <srhines@google.com> Merge "Update frameworks/rs for LLVM rebase to r230699."
be2163801c33d6849ae580d42b919b8803d55095 22-Mar-2015 Jean-Luc Brouillet <jeanluc@google.com> Reorganize the header files in a way that's easier to document.

This CL does not change any specification found in a .spec file,
it just reorganizes the distribution of the content.

It also changes a few files that included headers that no longer
exist.

Change-Id: I4a290a30ad3bdc31bac7a7be24e7a7dea2af2618
untime/arch/clamp.c
untime/arch/generic.c
untime/rs_cl.c
untime/rs_core.c
untime/rs_structs.h
253163596e253213be80cd5822f7702ef1fe65ca 26-Mar-2015 Jason Sams <jsams@google.com> Merge "Revert "Reorganize the header files in a way that's easier to document.""
41371c7c23c4115cf0b3e7dc83240d5bcfb828b3 26-Mar-2015 Jason Sams <jsams@google.com> Revert "Reorganize the header files in a way that's easier to document."

This reverts commit 386e87ecf4114084c10dd385edc1c2baebe80a04.

Change-Id: Icaeedd9badfec2c51a8120c72eb6297736d68c2a
untime/arch/clamp.c
untime/arch/generic.c
untime/rs_cl.c
untime/rs_core.c
untime/rs_structs.h
538bd4fe64e696cf702e8dd772e4d34457ba6519 26-Mar-2015 Jason Sams <jsams@google.com> Merge "Fix 3d Adapter launches"
2178d4262c06210b27c51a04379d23d1368b2e8b 24-Mar-2015 Jason Sams <jsams@google.com> Fix 3d Adapter launches

Change-Id: If96073c8f9afc7f802dc866e1a08f2337c8fa159
sdAllocation.cpp
4d0de133cf32d64ba2f26bf0a1717b1323ecf414 18-Mar-2015 Stephen Hines <srhines@google.com> Update frameworks/rs for LLVM rebase to r230699.

Change-Id: Iffb91b20a56306f81860d14deb3255bea2a075c2
untime/ll32/allocation.ll
untime/ll64/allocation.ll
386e87ecf4114084c10dd385edc1c2baebe80a04 22-Mar-2015 Jean-Luc Brouillet <jeanluc@google.com> Reorganize the header files in a way that's easier to document.

This CL does not change any specification found in a .spec file,
it just reorganizes the distribution of the content.

It also changes a few files that included headers that no longer
exist.

Change-Id: I9474ea6706449312fc7a5715d5bef3eabb288bb9
untime/arch/clamp.c
untime/arch/generic.c
untime/rs_cl.c
untime/rs_core.c
untime/rs_structs.h
a129d75fc16e4aa35d04c0105ba2166aa5d512d3 19-Mar-2015 Pirama Arumuga Nainar <pirama@google.com> Merge "Revert "Allow use of local CLANG to build runtime libs""
411f7ade6195293f9b86605b65bd6de39dfaed13 19-Mar-2015 Pirama Arumuga Nainar <pirama@google.com> Revert "Allow use of local CLANG to build runtime libs"

This reverts commit 6031993c913a493392a9579f92d201b468fa8bb2.

Change-Id: Ib0b17a72e34b8437e7e248090de44186af63d25b
untime/build_bc_lib_internal.mk
edba011e6d3673198b2bdc5bd0ffb422537915b7 19-Mar-2015 Pirama Arumuga Nainar <pirama@google.com> Merge "Allow use of local CLANG to build runtime libs"
f587455985a1c1c5bef678e92e4ef965bb8e07ae 19-Mar-2015 David Gross <dgross@google.com> Merge "Add remaining new kernel invocation context query APIs rsGet*()."
6031993c913a493392a9579f92d201b468fa8bb2 18-Mar-2015 Pirama Arumuga Nainar <pirama@google.com> Allow use of local CLANG to build runtime libs

When building runtime libs, allow use of a local clang build by using a
$LOCAL_CLANG. Directly clobbering $CLANG breaks other parts of the
build system that use that variable.

Change-Id: I0ac3a501dfa325b6e3b8675f43c11ddcdd846d41
untime/build_bc_lib_internal.mk
e409d9b0a578b07e253ff765bf591546fa57c745 17-Mar-2015 Jason Sams <jsams@google.com> Merge "Remove leftover path bits."
6a3c8f33e4a334ad6a14e5b0a4d469286a6d3282 17-Mar-2015 David Gross <dgross@google.com> Add remaining new kernel invocation context query APIs rsGet*().

Bug: 18964628
Change-Id: I067eb3a7672d79f308d4c0919a7aa6cddccd0bd6
untime/rs_core.c
b0abb140ac51b93d1a85aadaa63fe057f2d29850 12-Mar-2015 David Gross <dgross@google.com> Pass RsExpandKernelDriverInfo not RsExpandKernelParams.

Which is to say: retire RsExpandKernelParams and pass RsExpandKernelDriverInfo
directly to kernel wrapper functions instead.

Requires related change in frameworks/compile/libbcc.

Change-Id: I453f45ec18f389e88e27fcfa57ddf245d077cb98
untime/rs_core.c
dced5c96bc53c45a1aac782ea9bd738b0d50fd09 12-Mar-2015 David Gross <dgross@google.com> Add new APIs rsGetDim[XYZ]() and add RSTest test cases to exercise them.

Test UT_kernel3d does not pass reliably, so it is disabled for now.

Tests will not compile without related
platform/frameworks/compile/libbcc and
platform/frameworks/compile/slang changes.

Bug: 18964628

Change-Id: I39660400953306ceb47c8b5e9665e8f0084775dd
untime/Android.mk
untime/rs_core.c
b1d64031183c6c450d902db7d4497bedeb4a0e45 12-Mar-2015 Jason Sams <jsams@google.com> Remove leftover path bits.

Change-Id: I7f1a8825907d5866adf58a07d8ea5001b2ee7500
sdRuntimeStubs.cpp
0ca7cbaea8d5cf18f25d1148be75fbb6e2d86c62 11-Mar-2015 Jason Sams <jsams@google.com> Refactor hal loading

This CL make the loading of RS drivers more robust by
looking up entry points in place of a structure of entry points.

It also adds framework for a version handshake.

Change-Id: Iae46bf0171785c0ca1048223816b6efc60c337ad
sdCore.cpp
sdPath.cpp
sdPath.h
sdRuntimeStubs.cpp
a1f7816a57fb2f8538b52da87c401facc8238250 05-Mar-2015 Jason Sams <jsams@google.com> Merge "Specify EGL_PBUFFER_BIT when selecting EGL configuration."
fb2a33d2532d2500bfc4da879f83761f9a01edeb 04-Mar-2015 Jean-Luc Brouillet <jeanluc@google.com> Fix corresponding .cpp file for the remove const CL.

Change-Id: I039c4894b0f875a7fa506adcdfe76dc82e16f942
untime/rs_allocation.c
untime/rs_sample.c
28847289a9052522d4f8d25b6fc47c3ca51286c3 03-Mar-2015 Miao Wang <miaowang@google.com> Merge "Bug fix: AllocationData3D & AllocationRead3D cannot handle z sections correctly. (use count 'd' where 'd + zoff' should be used)"
a814de97f42dc3d9d58a73b282e49dca0951fccb 26-Feb-2015 Miao Wang <miaowang@google.com> Bug fix: AllocationData3D & AllocationRead3D cannot handle z sections
correctly. (use count 'd' where 'd + zoff' should be used)

Change-Id: Ib3064fd8be78e85b06df033a118619ad3a4e163f
sdAllocation.cpp
2f510be2326304f699129e31d312ec6be1d314a8 26-Feb-2015 Jason Sams <jsams@google.com> Merge "Fix error check for surface type in setSurface"
3b0efb602f7151a158ce37f6ba02b0e2ad885545 25-Feb-2015 Jason Sams <jsams@google.com> Fix error check for surface type in setSurface

Check was overly restrictive and would generate errors for
U8_4 buffers if KIND was not RGBA. Also no error would be reported.

Change-Id: I7c032f2354a58178ad164fca6e9a0edf680b8316
sdAllocation.cpp
a43823a68a27c8ee059610905ea6a11a6599239b 25-Feb-2015 Jason Sams <jsams@google.com> Merge "Fix issue when USAGE_IO_INPUT receives unexpected YUV format"
7314cca8575544195e475ecc53d995311ac269c0 25-Feb-2015 Jason Sams <jsams@google.com> Fix issue when USAGE_IO_INPUT receives unexpected YUV format

Sometimes we can get a fixed format when the flexible format was expected.

Change-Id: If67a8fb586ca5d4ddeb3204d14c416e3d05b4a32
sdAllocation.cpp
cc8cea7477352898921044483a6c803e25d02665 20-Feb-2015 Miao Wang <miaowang@google.com> Fix the bug for AllocationRead() that cannot handle 3d Allocation
correctly.
Add the following functions to make it symmetric for read and write.

- AllocationElementData
- AllocationElementRead
- Allocation3DRead

Change-Id: I8c89b5e3474c4c3c70e9795843a76e61f1f90f6a
sdAllocation.cpp
sdAllocation.h
sdCore.cpp
e9c79f66478170e4e45e49c71f5e9324842916cf 19-Feb-2015 Yang Ni <yangni@google.com> Merge "Revert "Replaced android::Vector with std::vector.""
b8353c5943f4038fd7f08db3d958390ce9418798 15-Feb-2015 Yang Ni <yangni@google.com> Revert "Replaced android::Vector with std::vector."

b/19148482

This reverts commit 93d6bc872b7d9fba63abfa7513d56b38d9c3d371.

I also made some changes to Make it work with HEAD.

Change-Id: I5e516976ec1d85ffe1cf388c01795348a9441982
sdBcc.cpp
sdMeshObj.cpp
sdShader.cpp
sdShader.h
sdShaderCache.cpp
sdShaderCache.h
sdVertexArray.cpp
sdVertexArray.h
12c80a8765bc0ce6aa9a50a7784256f6ee224ff9 12-Feb-2015 John Hoford <hoford@google.com> fix rs_sample bugs in mirror and negative modes

Change-Id: I0a354408a28a665c63248dabdd4e801a39366113
untime/rs_sample.c
9aae7951e7d72d0e1c78caf05adda5e5f934f4f7 10-Feb-2015 Miao Wang <miaowang@google.com> Merge "Fix the bug that rsYuvToRGBA_float4 bug for libclcore.bc on arm64"
bc9dc27b84f4e5c72d4dbe8a8e01af87dd780f79 09-Feb-2015 Jason Sams <jsams@google.com> Implement arrays and allocation adapters

WIP: now passing basic tests

Change-Id: I3d8c1ab12975428def225f88a04e24a4158ca69c
sdAllocation.cpp
sdAllocation.h
sdCore.cpp
untime/rs_structs.h
c5ce430172dd0a1d3d78c79c95bbdf3f1b8c0c3e 13-Jan-2015 Miao Wang <miaowang@google.com> Fix the bug that rsYuvToRGBA_float4 bug for libclcore.bc on arm64

bug: 18987953
Change-Id: I16d83e627b4c75cc8ed54bad66a6a6b749095c91
untime/arch/generic.c
untime/rs_convert.c
7153e1c8232882ee2bd7b975791a21e1ed9732fd 30-Jan-2015 Pirama Arumuga Nainar <pirama@google.com> Fail if non-threadable calls are in a kernel

bug 19095896

Calling rsAllocationIoSend, rsAllocationIoReceive,
rsAllocationCopy1DRange or rsAllocationCopy2DRange in a kernel is bad.
For one, they are not threadsafe. Calls to these functions in an
invokable are common, so we do not want to summarily mark scripts as not
threadable if these functions are called. Instead, this patch to the
driver detects if these functions are called inside a kernel and if so,
sends a fatal error message.

Change-Id: I10d3ef06cb8ed19a6bde686e71092d14ea58f5ec
sdRuntimeStubs.cpp
31729ad313f009d430255bfac8ef644db0c9215b 12-Nov-2014 Yong Chen <yong.a.chen@intel.com> Fix remaining 64bit calling convention issues and cleanup.

Change-Id: I1c41d845339b8614a01566c0cf14e296cf790764
Signed-off-by: Yong Chen <yong.a.chen@intel.com>
sdRuntimeStubs.cpp
447e8362fc760b3d2789dbfe1eec33f1fc6b1c0e 22-Jan-2015 Pirama Arumuga Nainar <pirama@google.com> Fix namespace inconsistency in .so loading patch

android::renderscript::rs_* and ::rs_* cannot be used interchangeably.
We need a typecast so the base object points in
android::renderscript::rs_* can be refcounted. The patch to switch to
.so loading path used these two types interchangeably. This patch fixes
the inconsistency.

Change-Id: I32576f2818a009dcbdd4d429b5c968e2408a109b
sdRuntimeStubs.cpp
709a1894c9c265433dc657878cba7b1be2514040 22-Jan-2015 Pirama Arumuga Nainar <pirama@google.com> Add Get/SetElement variants to sync mangled names

We miss some symbols for rs{Get,Set}Element_long,ulong variants because
64 bit integer values are 'long' in RS-land but might be 'long long' in
the driver. This causes mangled names in the driver to correspond to
'long long'.

Define native_long and native_ulong types to be vectors
of 'long' as seen by the driver and define overloaded versions of
rsSetElementAt_ and rsGetElementAt_. This should get us the correct
mangled names in the driver. Since the parameters are actually
pointers, there is no correctness issue.

Change-Id: Ib8f936a6ca39f6becf714abe4e8bc96c140bee0f
sdRuntimeStubs.cpp
2544371624a3dd21ae2355e8fea870e29009332a 21-Jan-2015 Pirama Arumuga Nainar <pirama@google.com> Define RS Graphics functions (rsg*)

Bug: 18322681
BUg: 19059879

- Add definitions for RS graphics functions to rsdRuntimeStubs.cpp. We
missed declaring RS graphics functions for the shared-library path.
- Fix errors in naming rsGetElementAt functions.

Change-Id: I7ebdc2a86e051a723df4f94a5b1125f8dd95f35a
sdRuntimeStubs.cpp
45e753a46e587c69b3b0d0c5138e88715a24a29a 20-Jan-2015 Stephen Hines <srhines@google.com> Remove linkloader from frameworks/rs.

Bug: 18322681

Now that we have switched completely to the new shared library object
loading path, we can safely remove the legacy linkloader path.

In frameworks/rs, this removes the actual linkloader code, as well as
all helper calls into linkloader. This change also coalesces code paths
between the support library version of RS and the native version of RS,
since they both now depend on a similar shared library loader. A missing
call to dlclose() on Script teardown is also added on the native library
path.

Change-Id: Ie5cc152d93f5e75383f7c21a4523579cfae8823f
sdCore.cpp
140a8eb2ffc08af5d7aec4f7f701720235703677 17-Jan-2015 Stephen Hines <srhines@google.com> Fix missing rsLocaltime() on 32-bit architectures.

Bug: 18322681

rs_time_t is defined as an int for 32-bit RenderScript, while the
implementation of rsLocaltime() uses time_t (defined as a long). This
mismatch results in a missing symbol for the proper function under the new
shared library loader.

Change-Id: I987e148b226d4b63a54ce8abf07bed7dfe0a8a47
sdRuntimeStubs.cpp
dc0d8f7c0f1f43f25c34fbc04656ad578f6e953b 03-Dec-2014 Pirama Arumuga Nainar <pirama@google.com> Skip linkloader, use shared object files

Bug: 18322681

- In rsCpuScript, if property rs.skip.linkloader is set, look for a .so
file in the cache directory and load it. If it is not available, use
bcc to generate relocatable object file and link it to a .so using
ld.mc. Use the embedded symbols in .rs.info and follow steps similar
to the compatibility library to invoke script functions or access
script variables.
- Add rs* symbols like rsGetAllocation to libRSCpuRef (ala
libRSSupport). Do necessary changes to argument types to get mangled
names correct.
- Make 64-bit version of rsSetObject take two pointers instead of a
pointer and a large object. rsIsObject takes a pointer instead of a
large object. Otherwise, we get failures in x86_64 due to calling
convention mismatch. To match the function names in the shared object
path, define these functions as 'extern "C"' with their mangled names.
- Add stubbed Math functions from rsCpuRuntimeMath and
rsCpuRuntimeMathFuncs into libRSCpuRef.so.
- Coalesce separate #ifdef paths in libRSCpuRef. Function parameters
for runtime callbacks and bcc plugin are needed in the
non-compatibilty path, but take default NULL arguments. This patch
introduces these parameters into the compatibility path as well, and
passes default NULL arguments.

Change-Id: I8a853350e39d30b4d852c30e4b5da5a75a2f2820
sdRuntimeStubs.cpp
6000c26e0e382d12e4e97bf5839912e500dc47c5 13-Jan-2015 Jason Sams <jsams@google.com> Merge "Array type and allocation support"
c7968a0ac24f05d978616a79a5068b6b16dbbda6 12-Nov-2014 Jason Sams <jsams@google.com> Array type and allocation support

Change-Id: Ic09188a8ceb212634b4369eb1ffe42c6f249e3ed
untime/rs_structs.h
015ba466dff2c05653b21afded83d311d35cfa7c 08-Jan-2015 Yang Ni <yangni@google.com> Merge "New Script Group API: runtime and cpu driver support."
46a0f01cf05b8943d72c3d960a7da61c0bdab85c 07-Jan-2015 Miao Wang <miaowang@google.com> Merge "Adding USAGE_IO_OUTPUT support for RS Compat lib."
1ffd86b448d78366190c540f98f8b6d641cdb6cf 07-Jan-2015 Yang Ni <yangni@google.com> New Script Group API: runtime and cpu driver support.

Change-Id: I9c612cf8874aabaf0ca7d1640567464c71ed3070
sdScriptGroup.cpp
sdScriptGroup.h
40db7a2a344bf56c82c62f481a57f9ff59f93c91 06-Jan-2015 Stephen Hines <srhines@google.com> Fix incorrect RS stub declarations.

Bug: 18322681

These functions were incorrectly declared for use with the debug context.

Change-Id: Ia51f29247646c440a2dcdfd0ca8178cf57218385
sdRuntimeStubs.cpp
2bd78f2d3e0a94a98dc03502decadfd2e17a70c8 20-Nov-2014 Miao Wang <miaowang@google.com> Adding USAGE_IO_OUTPUT support for RS Compat lib.

- In allocation driver header, added window buffer struct for compat lib.
- dlopen IO related functions in driver layer.
- Add function to load symbols in rsDispatch.

bug 12924018

Change-Id: I9156a28e458a72db077fe000bd324a369767fc4d
sdAllocation.cpp
sdAllocation.h
sdCore.cpp
e391e835069e14af56ecd90765f759de1288a94e 16-Dec-2014 Miao Wang <miaowang@google.com> Merge "Enable 64bit RS compat lib to build."
127d51c1193f4055795da967d47a13bedd3cb951 24-Nov-2014 Miao Wang <miaowang@google.com> Enable 64bit RS compat lib to build.

- Fix __LP64__ support bug
- Disable __system_property_get() for __LP64__ compat lib.

Change-Id: I5d7659443a5897bfab3826d9a3e1d52004d78adc
sdRuntimeStubs.cpp
914cbfc17d08d9b310e042691152152826a15625 12-Dec-2014 Tim Murray <timmurray@google.com> Merge "Move rsForEach with usrData to 32-bit only."
9f8ff09b0a7126e8c041f2cead3a4c6b9216ddb3 14-Nov-2014 Stephen Hines <srhines@google.com> Fix implementation of vload with [u]long3/4 and double3/4.

Bug: 18380209

These implementations were accidentally attempting to return <3 x i64> or
<4 x i64>, or the double equivalents. The ABI requires that this be converted
into a stack return instead, so we transform our hand-written bitcode to do
exactly that.

Change-Id: I2be489b23bf639b16d8762a11a8430f40ea5b16c
(cherry picked from commit b9675775b030b187b8528cba2d8e0e5c0a7bf8f7)
untime/ll32/allocation.ll
2f6dc8469a45fa2dafcb772c76009565d0c3885f 14-Nov-2014 Tim Murray <timmurray@google.com> Move rsForEach with usrData to 32-bit only.

Change-Id: I804b65fa11cde38b3e035efdaf3e75c8ab65453c
sdRuntimeStubs.cpp
3ef8201219144d7c914335de842e4a995534e2e8 21-Oct-2014 Tim Murray <timmurray@google.com> Fix AArch64 calling convention bug that prevents inlining.

bug 18071147

Change-Id: I062c919ba75c5aeb28e0358a671b81aa64a284c2
untime/arch/asimd.ll
acff9f25f1d9cfda55fd5b94e360ee58a8d7c82d 15-Oct-2014 Tim Murray <timmurray@google.com> Fix vload/vstore.

Functions were marked with readonly metadata, which breaks when
returning values on the stack.

bug 17615222

Change-Id: Ia600d0ded8e13d5a86a1bb0501b833846312e2e4
untime/ll64/allocation.ll
6a95b944f23e7c6a8fc3a6fe42350df4fad7d27d 15-Oct-2014 Tim Murray <timmurray@google.com> am d430d72f: Merge "Fix rsDebug issues with compat lib and long/long long changes." into lmp-dev

* commit 'd430d72fea1b1d4165198d481863899ab261cf12':
Fix rsDebug issues with compat lib and long/long long changes.
9f39aaf0145e9607200141e4716b73319055e6d7 13-Oct-2014 Tim Murray <timmurray@google.com> Fix rsDebug issues with compat lib and long/long long changes.

bug 17934731

Change-Id: Ie867c25a40dc4339731d74141b5107082cf7ee4e
sdRuntimeStubs.cpp
c8b78bcfa73890ddf5fdc9a2f9364403c8b71d87 10-Oct-2014 Tim Murray <timmurray@google.com> am b26ead53: Merge "Fix missing relocation entries and libclcore entry points." into lmp-dev

* commit 'b26ead533bb9d4e5e78f9a95fb543a577e7f95f2':
Fix missing relocation entries and libclcore entry points.
cbdb6480528fc374144df1ae9c604c9100d33268 09-Oct-2014 Tim Murray <timmurray@google.com> Fix missing relocation entries and libclcore entry points.

This fixes support for rsSetElementAt_ulong from pre-21 SDKs.

bug 17934731

Change-Id: I1598f612257b8faeec871df6b2f126395b0e7d82
sdRuntimeStubs.cpp
untime/rs_allocation.c
483ef72ca767c24d17e0ffd11155b0f1ee6d167b 01-Oct-2014 Tim Murray <timmurray@google.com> Fix building librsrt_<arch>.bc.

By building for host, the LOCAL_SRC_FILES_<bitness> was no longer
reliable.

Change-Id: Ic03dcc4fa70d730f87c8783edfdd5233051b9db7
untime/Android.mk
069fc8c18b1f951c41f9424843f234271ac86f80 01-Oct-2014 Tim Murray <timmurray@google.com> am 3370b383: Merge changes Ic03dcc4f,I5ac7a5fd

* commit '3370b383a13172a5f9678e9876063a19af00da3e':
Fix building librsrt_<arch>.bc.
Update prebuilts script to use new host lib directory.
1d279546c73b667c5afd855554c0120503e48f9f 01-Oct-2014 Tim Murray <timmurray@google.com> Fix building librsrt_<arch>.bc.

By building for host, the LOCAL_SRC_FILES_<bitness> was no longer
reliable.

Change-Id: Ic03dcc4fa70d730f87c8783edfdd5233051b9db7
untime/Android.mk
888b9f580f5327f6ee2e673dbcbca00840706135 25-Sep-2014 Tim Murray <timmurray@google.com> am 01ca8a4f: Fix vstore/vload/setelementat.

* commit '01ca8a4f99583e0fcaa980ca70415f21e0621b9b':
Fix vstore/vload/setelementat.
01ca8a4f99583e0fcaa980ca70415f21e0621b9b 24-Sep-2014 Tim Murray <timmurray@google.com> Fix vstore/vload/setelementat.

This contains two fixes. The first removes the readonly attribute
from vstore functions.

The second fixes 64-bit operations with vectors greater than 128
bits.

ll64/allocation.ll was based on ll32/allocation.ll, but the
AArch64 calling convention passes vectors greater than 128 bits
on the stack rather by value.

This fixes vload/vstore/SetElementAt.

bug 17615222

Change-Id: Ib8e2633f9b1236c8b360929b9ca5fe53ebb24703
untime/ll32/allocation.ll
untime/ll64/allocation.ll
untime/rs_allocation.c
5a45c938d8f5e66f0afff7b3a2a9afe06f79c76a 09-Sep-2014 Tim Murray <timmurray@google.com> am e1fa6516: Merge "Fix x86 calling convention issue." into lmp-dev

* commit 'e1fa65166a0fa1ff13b83697db0e121792a88c5a':
Fix x86 calling convention issue.
6789fec15ce3f4d33e644d4a1c69713ef8035869 09-Sep-2014 Jean-Luc Brouillet <jeanluc@google.com> am 1bb2eed6: Improve rsMatrix* documentation, fix bugs

* commit '1bb2eed69caa28cf8198d58db7d9134cc2f563f5':
Improve rsMatrix* documentation, fix bugs
e1fa65166a0fa1ff13b83697db0e121792a88c5a 09-Sep-2014 Tim Murray <timmurray@google.com> Merge "Fix x86 calling convention issue." into lmp-dev
240a6c96eb94734a84eed53349fb0928d3ce6d19 09-Sep-2014 Tim Murray <timmurray@google.com> Fix x86 calling convention issue.

bug 17398497

Change-Id: I4ef4e55f9b948b234b782a340178d4e57e76274f
sdRuntimeStubs.cpp
1bb2eed69caa28cf8198d58db7d9134cc2f563f5 06-Sep-2014 Jean-Luc Brouillet <jeanluc@google.com> Improve rsMatrix* documentation, fix bugs

Improves the user-facing documentation. Fix the incorrect row & column
naming on the Get/Set API. Fix a bug where rsMatrixLoadMultiply could
not have the destination be one of the source,
e.g. rsMatrixLoadMultiply(&l, &l, &r)

Change-Id: I42207aacf4ebe815d4a79db2aaa9c44f85864696
untime/rs_matrix.c
33164686a7ac88d4eda38201be4127937e9c12b0 01-Sep-2014 Yong Chen <yong.a.chen@intel.com> Fix bugs for x86 platform

- Fix incorrect input/output pointer for blur intrinsic
- Avoid the negative value for length function in bc lib

Signed-off-by: Yong Chen <yong.a.chen@intel.com>

(cherry picked from commit a0cdfe05905a5a4d2e494665809c8af9d040c116)

Change-Id: I3c6e082dffdfef122999c93d1c235e99af8c62ba
untime/arch/x86_sse3.ll
bf2963268010b1e17cba00674a73287bf12a1be9 04-Sep-2014 Stephen Hines <srhines@google.com> am 2993761f: Merge "Fix bugs for x86 platform"

* commit '2993761fda2146755533886495691936a78871ac':
Fix bugs for x86 platform
a0cdfe05905a5a4d2e494665809c8af9d040c116 01-Sep-2014 Yong Chen <yong.a.chen@intel.com> Fix bugs for x86 platform

- Fix incorrect input/output pointer for blur intrinsic
- Avoid the negative value for length function in bc lib

Change-Id: If173662b63d7aba906a75bb50856d8d50c04639f
Signed-off-by: Yong Chen <yong.a.chen@intel.com>
untime/arch/x86_sse3.ll
c8c7befb7d1be0c84ab3e26eab9ed0839de45dfc 29-Aug-2014 Stephen Hines <srhines@google.com> Build RS runtime libraries using our arm and aarch64 triples only.

Bug: 17333374

Without this change, we might end up using different (broken) calling
conventions on non-ARM architectures. This ensures that all C source
files get built the same. Any .ll files can still use the appropriate
target arch-specific features.

Change-Id: I2658c49620d297cb1ef8b96b5b5d1597f5fd7361
untime/Android.mk
untime/build_bc_lib_internal.mk
e0cdd4f6895597e3ab36253cc085ae01685ee1df 18-Aug-2014 Tim Murray <timmurray@google.com> Fix rsSetElementAtImpl and triple.

bug 16846318

Change-Id: Iac75d261aaf5c38dfd414adf73c8311005a189f0
(cherry picked from commit bdceed58826b6b4191a7f483764347895d0172d7)
untime/Android.mk
untime/ll64/allocation.ll
untime/ll64/math.ll
27b484acd4ba0ccd459e47901b06e832874967aa 02-Sep-2014 Stephen Hines <srhines@google.com> resolved conflicts for merge of f89af228 to lmp-dev-plus-aosp

Change-Id: I8c95fc6a409928262e23640a9aa8fa8bd87ee48c
8641b7ce4e963122603d7498d860d5679437a206 29-Aug-2014 Stephen Hines <srhines@google.com> Build RS runtime libraries using our arm and aarch64 triples only.

Bug: 17333374

Without this change, we might end up using different (broken) calling
conventions on non-ARM architectures. This ensures that all C source
files get built the same. Any .ll files can still use the appropriate
target arch-specific features.

Change-Id: I2658c49620d297cb1ef8b96b5b5d1597f5fd7361
untime/Android.mk
untime/build_bc_lib_internal.mk
2371f7ac32eee011314b11982e2a7c1f7c4a106e 28-Aug-2014 Tim Murray <timmurray@google.com> am bc1136f4: Fix 32-bit clcore on ARM64.

* commit 'bc1136f44f7816be807cfaf75a9e1e7983eace38':
Fix 32-bit clcore on ARM64.
bc1136f44f7816be807cfaf75a9e1e7983eace38 27-Aug-2014 Tim Murray <timmurray@google.com> Fix 32-bit clcore on ARM64.

32-bit clcore wasn't getting generic.c on ARM64, resulting in
missing symbols.

bug 17300428

Change-Id: I21969e06b620ecc667d507c5ee17cee739427178
untime/Android.mk
untime/build_bc_lib_internal.mk
e870df6d1f8f7c915fc12398cb0e59a91b41e39c 27-Aug-2014 Tim Murray <timmurray@google.com> am 97446779: Enable ASIMD math operations.

* commit '974467797f45a7e4ac191eb158edb78492a48e56':
Enable ASIMD math operations.
974467797f45a7e4ac191eb158edb78492a48e56 26-Aug-2014 Tim Murray <timmurray@google.com> Enable ASIMD math operations.

bug 16846318

Change-Id: Ia19cca77ef7ab6e14da9fefad522f79e25c810de
untime/Android.mk
untime/arch/asimd.ll
untime/arch/clamp.c
979e7b5b5c0e39cbdda7fe4987cc42315b02424d 25-Aug-2014 Tim Murray <timmurray@google.com> am fb0d8f6c: Merge "Fix GetAllocation in 64-bit." into lmp-dev

* commit 'fb0d8f6c222b7d7656ee0defe9b5af955b744d63':
Fix GetAllocation in 64-bit.
61db21cef81cbc8439b34a8f1d32952339ffc190 22-Aug-2014 Stephen Hines <srhines@google.com> resolved conflicts for merge of 81cfa2c5 to lmp-dev-plus-aosp

Change-Id: Ia3a7f084693825d4e46a4864788332a7d039d38f
47211dca5b2fc1aa5680ddebe5c4270c08c06e5d 21-Aug-2014 Tim Murray <timmurray@google.com> Fix GetAllocation in 64-bit.

bug 16846318

Change-Id: I639601939c3715a74153fd8d5d281e89fca8c463
sdRuntimeStubs.cpp
81303a1d9d90c50ab2afe18209aa3222ddbb64c4 21-Aug-2014 Jason Sams <jsams@google.com> am de08b7b4: Merge "Fix ulong" into lmp-dev

* commit 'de08b7b40dd02c6f2f1087af9a2e381b08b57b4e':
Fix ulong
7e3243389f49a0bf673c35f9a82e4bbfe211877b 21-Aug-2014 Stephen Hines <srhines@google.com> am 4bb773ef: Merge "Replace android::String8 with std::string"

* commit '4bb773ef75eeff5960852b733bcca5834020ee9e':
Replace android::String8 with std::string
44bef6fba6244292b751387f3d6c31cca96c28ad 12-Aug-2014 Chris Wailes <chriswailes@google.com> Replace NULL macros with nullptr literals.

Change-Id: I918c40879aa547438f77e7d1a95fa2aa33bec398
sdAllocation.cpp
sdBcc.cpp
sdCore.cpp
sdElement.cpp
sdFrameBuffer.cpp
sdFrameBufferObj.cpp
sdGL.cpp
sdGL.h
sdMesh.cpp
sdMeshObj.cpp
sdPath.cpp
sdProgram.cpp
sdProgramStore.cpp
sdRuntimeStubs.cpp
sdSampler.cpp
sdScriptGroup.cpp
sdShader.cpp
sdShaderCache.cpp
sdShaderCache.h
sdType.cpp
sdVertexArray.cpp
untime/rs_structs.h
569b09b34243f71dd6d81ce637a92a0a707adbe4 21-Aug-2014 Stephen Hines <srhines@google.com> am 3fa79f84: Merge changes I4c6abd96,I9bcf36d0

* commit '3fa79f84fcce0b5f59498980a2bb8e355cf53cd4':
Replaced android::Vector with std::vector.
Adjust to handle the change to std::vector in libbcc.
d8b8f8a16415496acc9844a89599ce7f377bd04d 20-Aug-2014 Jason Sams <jsams@google.com> Fix ulong

The new 64 bit functions were mismatches between long and ulong
Make all functions consistent.

bug 16846318

Change-Id: I806f392c12af881b54aa287153bd66ad7aa1b81e
sdRuntimeStubs.cpp
untime/arch/clamp.c
untime/rs_cl.c
d643be19cbf2c61f4cbb8e9c50ff35cbc44bdeae 19-Aug-2014 Tim Murray <timmurray@google.com> am bdceed58: Fix rsSetElementAtImpl and triple.

* commit 'bdceed58826b6b4191a7f483764347895d0172d7':
Fix rsSetElementAtImpl and triple.
bdceed58826b6b4191a7f483764347895d0172d7 18-Aug-2014 Tim Murray <timmurray@google.com> Fix rsSetElementAtImpl and triple.

bug 16846318

Change-Id: Iac75d261aaf5c38dfd414adf73c8311005a189f0
untime/Android.mk
untime/ll64/allocation.ll
untime/ll64/math.ll
444bd208b4f129bd8e4c0cce4cf6d709c8900891 14-Aug-2014 Yong Chen <yong.a.chen@intel.com> Explicitly accept RS large objects as references.

AArch64 promotes large objects to be passed by reference. As a result, if large objects as passed by value in rsdRuntimeStubs, the AArch64 kernel and an AArch64 rsdRuntimeStubs will have the same calling convention, both will promote, and everything will work.

However, other architectures do not share this same behavior by promoting large object structs to being passed by reference. As a result, an AArch64 kernel and an x86_64 rsdRuntimeStubs will disagree on the calling convention, causing a crash.

AArch64 continues to work despite this change because the calling conventions continue to line up, even if the rsdRuntimeStubs side explicitly uses pointers while the kernel side does not.

bug: 16846318

Change-Id: I5bc29de5259eda26967f2b32980d40ce249f9599
Signed-off-by: Yong Chen <yong.a.chen@intel.com>
sdRuntimeStubs.cpp
6847e73314e13aa02231268cca245a81eb0539ca 12-Aug-2014 Chris Wailes <chriswailes@google.com> Replace android::String8 with std::string

Change-Id: I5b2b6d3e38afd0b040f0a584613745206bf01ba0
sdMeshObj.cpp
sdShader.cpp
sdShader.h
sdShaderCache.cpp
sdShaderCache.h
3fa79f84fcce0b5f59498980a2bb8e355cf53cd4 20-Aug-2014 Stephen Hines <srhines@google.com> Merge changes I4c6abd96,I9bcf36d0

* changes:
Replaced android::Vector with std::vector.
Adjust to handle the change to std::vector in libbcc.
93d6bc872b7d9fba63abfa7513d56b38d9c3d371 29-Jul-2014 Chris Wailes <chriswailes@google.com> Replaced android::Vector with std::vector.

Change-Id: I4c6abd964dc4b1412ec2e592fc8e835fecfe53f6
sdBcc.cpp
sdMeshObj.cpp
sdShader.cpp
sdShader.h
sdShaderCache.cpp
sdShaderCache.h
sdVertexArray.cpp
sdVertexArray.h
e5919a91f465cc6f1841ee231e9dc0cb09ee3476 18-Aug-2014 Tim Murray <timmurray@google.com> am bec9c941: Merge "Explicitly accept RS large objects as references."

* commit 'bec9c9410b628aa78662bdee40aafc1296a192db':
Explicitly accept RS large objects as references.
26f26c7f30604712794cdce967f8724931078b23 18-Aug-2014 Stephen Hines <srhines@google.com> am 8d63899d: Merge "Collapse code paths for single- and multi-input kernels."

* commit '8d63899d90e3048832dc3c6c5ea5ef434658c8d5':
Collapse code paths for single- and multi-input kernels.
bec9c9410b628aa78662bdee40aafc1296a192db 18-Aug-2014 Tim Murray <timmurray@google.com> Merge "Explicitly accept RS large objects as references."
4e3633777ac5aadab5358b65b30ad4806432df83 14-Aug-2014 Yong Chen <yong.a.chen@intel.com> Explicitly accept RS large objects as references.

AArch64 promotes large objects to be passed by reference. As a result, if large objects as passed by value in rsdRuntimeStubs, the AArch64 kernel and an AArch64 rsdRuntimeStubs will have the same calling convention, both will promote, and everything will work.

However, other architectures do not share this same behavior by promoting large object structs to being passed by reference. As a result, an AArch64 kernel and an x86_64 rsdRuntimeStubs will disagree on the calling convention, causing a crash.

AArch64 continues to work despite this change because the calling conventions continue to line up, even if the rsdRuntimeStubs side explicitly uses pointers while the kernel side does not.

Change-Id: I5bc29de5259eda26967f2b32980d40ce249f9599
Signed-off-by: Yong Chen <yong.a.chen@intel.com>
sdRuntimeStubs.cpp
f37121300217d3b39ab66dd9c8881bcbcad932df 17-Jul-2014 Chris Wailes <chriswailes@google.com> Collapse code paths for single- and multi-input kernels.

This patch simplifies the RenderScript driver and CPU reference implementation
by removing the distinction between sing- and multi-input kernels in many
places. The distinction is maintained in some places due to the need to
maintain backwards compatibility. This permits the deletion of some functions
and struct members that are no longer needed. Several related functions were
also cleaned up.

Change-Id: Id70a223ea5e3aa2b0b935b2b7f9af933339ae8a4
sdBcc.cpp
385e32592394cf796d33102b8b7034ae81fdc13e 13-Aug-2014 Stephen Hines <srhines@google.com> am cd8df40f: Merge "Revert "Collapse code paths for single- and multi-input kernels.""

* commit 'cd8df40f07d88f896bea05ed06a20d1a4d5e9728':
Revert "Collapse code paths for single- and multi-input kernels."
38f10a1eee245153b843dd78712ecaff6e89c412 13-Aug-2014 Stephen Hines <srhines@google.com> am f2dd1651: Merge "Collapse code paths for single- and multi-input kernels."

* commit 'f2dd1651ea50bf176d5e6580cc0589f7a3e89995':
Collapse code paths for single- and multi-input kernels.
818cfa034e257c7bb48356257f5cb67334e19aa6 17-Jul-2014 Chris Wailes <chriswailes@google.com> Collapse code paths for single- and multi-input kernels.

This patch simplifies the RenderScript driver and CPU reference implementation
by removing the distinction between sing- and multi-input kernels in many
places. The distinction is maintained in some places due to the need to
maintain backwards compatibility. This permits the deletion of some functions
and struct members that are no longer needed. Several related functions were
also cleaned up.

Change-Id: I77e4b155cc7ca1581b05bf901c70ae53a9ff0b12
sdBcc.cpp
4b2bea3dc20865f3a198797702e19912a6a2171c 13-Aug-2014 Stephen Hines <srhines@google.com> Revert "Collapse code paths for single- and multi-input kernels."

This reverts commit 818cfa034e257c7bb48356257f5cb67334e19aa6.

Change-Id: I59f39f52e6c8f60bb01cbcb8ccf2215eaf46a57f
sdBcc.cpp
64147ebf4f0b1c23d2caf2cf7c1675d27de97d99 27-Jul-2014 Tim Murray <timmurray@google.com> Update time_t definition for 64-bit.

bug 16846318

Change-Id: I85918485b0bd446147defeee01b57a58b4b0620c
sdRuntimeStubs.cpp
6a45ddb32f391060aa05da6ff09c4814d450586e 06-Aug-2014 Tim Murray <timmurray@google.com> Bugfixes for AArch64.

- Disable use of runtime pointer until we can set it correctly in invokes.
- Disable YUV and ColorMatrix ASIMD intrinsics
- Modify runtime stubs to use large objects correctly
- Fix calling convention in allocation.ll
- Add appropriate rsr functions for compat lib and large objects

bug 16846318

Change-Id: I7f6a4ff66fd1b3ad40b08cfc9ecdda7d53e95c7d
sdRuntimeStubs.cpp
untime/rs_allocation.c
05ef73f2d934f1083cc3b8aeb33fe21de9d6e88f 05-Aug-2014 Jason Sams <jsams@google.com> Fix isObject when in 64bit mode.

This also cleans up the passing of args to SetObject and ClearObject.
Fix related issues in 64bit teardown.

Change-Id: I90d1b93c45ff5bc84957d5441ab48a4e2f6feb20
sdRuntimeStubs.cpp
89226c21a902990642d4c1a9b8a71b89825e3e01 12-Aug-2014 Tim Murray <timmurray@google.com> am 1aa9dfc0: Bugfixes for AArch64.

* commit '1aa9dfc002f6b763d34d75d9f47abb4aa70584a2':
Bugfixes for AArch64.
1aa9dfc002f6b763d34d75d9f47abb4aa70584a2 06-Aug-2014 Tim Murray <timmurray@google.com> Bugfixes for AArch64.

- Disable use of runtime pointer until we can set it correctly in invokes.
- Disable YUV and ColorMatrix ASIMD intrinsics
- Modify runtime stubs to use large objects correctly
- Fix calling convention in allocation.ll
- Add appropriate rsr functions for compat lib and large objects

bug 16846318

Change-Id: I7f6a4ff66fd1b3ad40b08cfc9ecdda7d53e95c7d
sdRuntimeStubs.cpp
untime/rs_allocation.c
fcdcdca7f5afb7377a159395e720096d7bf958ae 07-Aug-2014 Dan Albert <danalbert@google.com> am 3667cbd8: Merge "Fix the build."

* commit '3667cbd8b8da45c44d6791868f94ddce72738e13':
Fix the build.
5b0df2a1e2b329cbc3da9d4eed3bc469368c4009 06-Aug-2014 Jason Sams <jsams@google.com> am 262d77c2: Merge "Fix isObject when in 64bit mode." into lmp-dev

* commit '262d77c269ab55966d5803e4f795b3b60a548a37':
Fix isObject when in 64bit mode.
50394d782d2ede38ae53ca93fda073c744165646 05-Aug-2014 Jason Sams <jsams@google.com> am a039c4ca: Merge "Fix YUV allocation table." into lmp-dev

* commit 'a039c4ca5f655ecb2181f80bf9b6dbdc57804e2a':
Fix YUV allocation table.
3a3dfe7ecba55a3a832b44e4337276c09a6a25e9 06-Aug-2014 Dan Albert <danalbert@google.com> Fix the build.

For some reason this call to posinf() was taking a parameter.

Change-Id: Ic94d19184b3fec232f407a24c0b895554dbbe8ad
untime/rs_cl.c
262d77c269ab55966d5803e4f795b3b60a548a37 06-Aug-2014 Jason Sams <jsams@google.com> Merge "Fix isObject when in 64bit mode." into lmp-dev
f29edf80510d483b8663e9d8b859959e37361aee 05-Aug-2014 Jason Sams <jsams@google.com> Fix isObject when in 64bit mode.

This also cleans up the passing of args to SetObject and ClearObject.
Fix related issues in 64bit teardown.

Change-Id: I90d1b93c45ff5bc84957d5441ab48a4e2f6feb20
sdRuntimeStubs.cpp
d06653c70a67a987a2a1deb1bfb139e927fb7bd4 02-Aug-2014 Jason Sams <jsams@google.com> Fix YUV allocation table.

Change-Id: Ia6265c7eb2fa60f6789eb43b3e03fdfe8327dd7e
sdAllocation.cpp
df31f5e0c3262d6efff6c7db43fad8b50645337d 28-Jul-2014 Tim Murray <timmurray@google.com> am 3a5475c6: Merge "Update time_t definition for 64-bit."

* commit '3a5475c63ebfc8de29fafd84def9dacafaff4ca6':
Update time_t definition for 64-bit.
3a5475c63ebfc8de29fafd84def9dacafaff4ca6 28-Jul-2014 Tim Murray <timmurray@google.com> Merge "Update time_t definition for 64-bit."
785096e4f1da6a37e3b44203d222b6bb0fb1333e 27-Jul-2014 Tim Murray <timmurray@google.com> Update time_t definition for 64-bit.

Change-Id: I85918485b0bd446147defeee01b57a58b4b0620c
sdRuntimeStubs.cpp
f151f3b16a681d9f6c3edf85ad221c3c048985dd 25-Jul-2014 Stephen Hines <srhines@google.com> am 1f88f088: Merge "Fix rsg_generator.c to properly propagate NULL values."

* commit '1f88f088359ced06a2b53320b95c09fadc427c16':
Fix rsg_generator.c to properly propagate NULL values.
1f88f088359ced06a2b53320b95c09fadc427c16 25-Jul-2014 Stephen Hines <srhines@google.com> Merge "Fix rsg_generator.c to properly propagate NULL values."
d2d7c18c6ec3752ea19ca44157198f4a85d72464 18-Jul-2014 Jason Sams <jsams@google.com> Add native variants of more math lib functions.

Thunk though to normal impl for CPU path. This is intended
to support GPU hw with dedicated fast ops.

Change-Id: Ide52c2c5cbabc7128c84dbbdc60a240236616476
untime/rs_cl.c
bc2f74f24cdd96a2937ef7c7b162179a5f84ed26 22-Jul-2014 Jason Sams <jsams@google.com> am be553061: Merge "Add native variants of more math lib functions."

* commit 'be55306141e1db13e0f0c7d45ae737cd5afa68fa':
Add native variants of more math lib functions.
a140d9d93009aa5733f91bba86c9d5227279e457 18-Jul-2014 Jason Sams <jsams@google.com> Add native variants of more math lib functions.

Thunk though to normal impl for CPU path. This is intended
to support GPU hw with dedicated fast ops.

Change-Id: Ide52c2c5cbabc7128c84dbbdc60a240236616476
untime/rs_cl.c
db896f0918a7d79b9dd44a786e393206a0ac36a6 17-Jul-2014 Chris Wailes <chriswailes@google.com> Fix rsg_generator.c to properly propagate NULL values.

This patch modifies rsg_generator.c to properly propagate NULL values in the
presence of inlined data pointers.

Change-Id: I5f91518807d4ab05148c9382e143581157409be6
sdAllocation.cpp
058a7a4f5bfda35e75cbd87af2be58e874f254c4 12-Jul-2014 Tim Murray <timmurray@google.com> am 8c8eb23d: Merge "Add 64bit large object support"

* commit '8c8eb23d31768bca01e2fd69c3931aeda31f3329':
Add 64bit large object support
c562a29b2c221c22792cdbb7deeadca3fc0a6edd 12-Jul-2014 Stephen Hines <srhines@google.com> am db69bf01: Merge "Adds support for multi-input kernels to Frameworks/RS."

* commit 'db69bf0117c44d8996a3d179cc3b7a98bf8726ea':
Adds support for multi-input kernels to Frameworks/RS.
eb09f8b6bc156b7acd0729d877b4414967c55620 09-Jul-2014 Tim Murray <timmurray@google.com> am 6c6f7539: am 8c8eb23d: Merge "Add 64bit large object support"

* commit '6c6f7539377ec779a9ea36bfcc5859ad41f6e677':
Add 64bit large object support
4daa25749173cde4db977da44b43e94354a59b33 09-Jul-2014 Stephen Hines <srhines@google.com> am 09e1490a: am db69bf01: Merge "Adds support for multi-input kernels to Frameworks/RS."

* commit '09e1490af01ecd12cf19ee1b507cea860814470b':
Adds support for multi-input kernels to Frameworks/RS.
4b3c34e6833e39bc89c2128002806b654b8e623d 11-Jun-2014 Chris Wailes <chriswailes@google.com> Adds support for multi-input kernels to Frameworks/RS.

This patch modifies Frameworks/RS in the following ways:
* Adjusted the data-layout of the C/C++ version of RsForEachStubParamStruct to
accommodate a pointer to an array of input allocations and a pointer to an
array of stride sizes for each of these allocatoins.
* Adds a new code path for Java code to pass multiple allocations to a RS
kernel.
* Packs base pointers and step values for multi-input kernels into the new
RsForEachStubParamStruct members.

Change-Id: I46d2834c37075b2a2407fd8b010546818a4540d1
sdBcc.cpp
sdBcc.h
sdCore.cpp
a36c50a6ab87f4c9049318d4c6c8ec7b0a1e6e12 17-Jun-2014 Jason Sams <jsams@google.com> Add 64bit large object support

Add HAL hooks for filling in LO fields.

Change-Id: Ib9bdee714a062de519d2a9708c1016404a1b11a4

Conflicts:
driver/rsdBcc.cpp
driver/rsdCore.cpp
rsAllocation.h
rs_hal.h
sdAllocation.cpp
sdAllocation.h
sdBcc.cpp
sdBcc.h
sdCore.cpp
sdElement.cpp
sdElement.h
sdRuntimeStubs.cpp
sdSampler.cpp
sdSampler.h
sdScriptGroup.cpp
sdScriptGroup.h
sdType.cpp
sdType.h
untime/rs_allocation.c
1ed9a079c5e4107ead79bfb29aec7da55a04af90 25-Jun-2014 Stephen Hines <srhines@google.com> am afb31146: am 03836b04: Merge "Switch the dimensions array to use uint32_t instead of size_t."

* commit 'afb3114606d96c247ad91cb2bd15dc7ed6e1579a':
Switch the dimensions array to use uint32_t instead of size_t.
ac8d146a41f18afad5314ac8af440d6aedbe20bf 25-Jun-2014 Stephen Hines <srhines@google.com> Switch the dimensions array to use uint32_t instead of size_t.

size_t isn't safe, since we pack/unpack the array as a 32-bit int array, but
that is the wrong type for 64-bit. Switching to uint32_t is better, since we
only support 1 dimension today, and won't need many more than that even for
complex cases in the future.

Change-Id: Ie0dda264a9398b0e385e0f9ee0a91cda08325dbc
sdBcc.cpp
sdBcc.h
fc8ebe7c20e8938e294b4d1a91a88a81e1fa2347 21-Jun-2014 Jason Sams <jsams@google.com> am 06f9deff: am 9f63f5d8: Merge "Fix rootn(-5, 0) to return inf"

* commit '06f9defffe11ffd73911347e0d3cbc0781b9435c':
Fix rootn(-5, 0) to return inf
461178e21e0141f56e63f345de3f833d0edf72a3 20-Jun-2014 Jason Sams <jsams@google.com> Fix rootn(-5, 0) to return inf

Function is equal to pow(-5, 1/0)

Change-Id: Ic17abcf76b9a36979accd84ee78ff3362ed91203
untime/rs_cl.c
09b2b5996404cf767e36fe6ee7b5af289c8a6edd 13-Jun-2014 Tim Murray <timmurray@google.com> am 8aebccf0: am 6526d968: Merge "Switch to large objects for 64-bit."

* commit '8aebccf01de5b705f596c065ad7b6c44d368171b':
Switch to large objects for 64-bit.
7640122ad3b7251e00a29606e6264348f004899e 12-Jun-2014 Tim Murray <timmurray@google.com> am 59d6ab26: am 162d49ff: Merge "Update how the debug runtime is built for 64-bit."

* commit '59d6ab264446d3530483aa94f3597b41762e6ee6':
Update how the debug runtime is built for 64-bit.
fa6f90e9b5413fea556b1f4b92458f6cb9355635 12-Jun-2014 Tim Murray <timmurray@google.com> Switch to large objects for 64-bit.

Change-Id: I2dce35720b61c28cebac5bbb6791ea747c6c8a1d
untime/ll64/allocation.ll
16cfba29a921308efad37855c487d4278de5f571 12-Jun-2014 Tim Murray <timmurray@google.com> Update how the debug runtime is built for 64-bit.

Change-Id: I3b17836c789c5db3dab54737b790969c675b94c3
untime/Android.mk
untime/build_bc_lib_internal.mk
cc0d48ae2fdb06e55847705758e6c92eab42a12e 11-Jun-2014 Tim Murray <timmurray@google.com> am d7c3f3b0: am 33916f7a: Merge "Correctly build 64-bit runtime library by splitting into 32 and 64 components."

* commit 'd7c3f3b0e2b0eb21428398bd8633987f11e0e857':
Correctly build 64-bit runtime library by splitting into 32 and 64 components.
369e2d781e1620d94bf3c4c3ae23282bbaecb2c0 11-Jun-2014 Tim Murray <timmurray@google.com> am 090e4dc4: am c180b0ae: Merge "Update structs and defines for 64-bit."

* commit '090e4dc4f6854ff0d2fcc2d420f0b01eca510482':
Update structs and defines for 64-bit.
be46aa62ed595c517dbf236dfbb3d22e1c194907 10-Jun-2014 Tim Murray <timmurray@google.com> Correctly build 64-bit runtime library by splitting into 32 and 64 components.

Change-Id: Ia520418c42e5a50840b72610c3dc71190eaaf1d7
untime/Android.mk
untime/allocation.ll
untime/ll32/allocation.ll
untime/ll32/math.ll
untime/ll64/allocation.ll
untime/ll64/math.ll
untime/math.ll
e3af53b643677c40d228ffd3624cf259f4dc68ed 10-Jun-2014 Tim Murray <timmurray@google.com> Update structs and defines for 64-bit.

Also adds RS_FIND_OFFSETS, which prints address info for various types that allow us to easily update __pad.

Change-Id: I4d57248e155d113c83ff69f4f8f64160aa24fb9b
sdAllocation.cpp
untime/rs_structs.h
a874178b8b43056395e2abab3b6b0fa1fe2ab893 27-May-2014 Tim Murray <timmurray@google.com> am f6deeee1: am 7a09ae78: am bebfcc59: Merge "Update runtime stubs. "

* commit 'f6deeee12e6cfdcac4c0f5321095625226c44fdf':
Update runtime stubs.
60fe47db884673ace2b41c6a037a376bbd0fd670 27-May-2014 Tim Murray <timmurray@google.com> Update runtime stubs.

Adds rsDebug for doubles. Also adds additional powf lookup.

Change-Id: I0f0a815a2b143102bcbf6d274d1ca4a0d897b651
untime/math.ll
590dc6929b2da92c3658396a129bcbac4b31855d 20-May-2014 Tim Murray <timmurray@google.com> am 77822e7d: am b767e794: am 581eeb5d: Merge "Add support for LOCAL_SRC_FILES_<extra> to build_bc_lib.mk."

* commit '77822e7d0a89b4d5792a21fb259f5625050450cb':
Add support for LOCAL_SRC_FILES_<extra> to build_bc_lib.mk.
1efb81921fc26d70255ab61da987a232b47ad236 20-May-2014 Tim Murray <timmurray@google.com> Add support for LOCAL_SRC_FILES_<extra> to build_bc_lib.mk.

Change-Id: I7f857b86bf0bfd165de461fe2036f48ae0ac9128
untime/build_bc_lib_internal.mk
6b9d7ed50cdbfd7cd410dcc70b6a588ca0d4d364 20-May-2014 Jason Sams <jsams@google.com> am da074a2a: am d69675f9: am d370bb0b: Merge "Cleanup 64bit and remove deprecated functions"

* commit 'da074a2a6a3b9630f58873c5e8a856af20489a4e':
Cleanup 64bit and remove deprecated functions
3ff0fe77fdba8ad4a920dc27157d8c1786bb3661 20-May-2014 Jason Sams <jsams@google.com> Cleanup 64bit and remove deprecated functions

Change-Id: I8f4570af8ab7da05831258dd264118b28ce5d352
untime/Android.mk
untime/matrix.ll
untime/rsClamp.ll
untime/rs_allocation.c
untime/rs_core.c
untime/rs_element.c
untime/rs_matrix.c
untime/rs_mesh.c
untime/rs_program.c
untime/rs_sample.c
untime/rs_sampler.c
untime/rs_structs.h
f14e1270534769d2feb38d6c15c753f01441a766 15-May-2014 Stephen Hines <srhines@google.com> am 52f4786f: am ad468bb9: am 42faa571: Merge "Switch to use slang/rs_version.mk for consistency."

* commit '52f4786f8a2cd7bf7e5638e475eca39d6fe65640':
Switch to use slang/rs_version.mk for consistency.
c17fa065b6fee1d2176bd057de98b93d723b59e5 14-May-2014 Stephen Hines <srhines@google.com> Switch to use slang/rs_version.mk for consistency.

Change-Id: Ibfda53448570be58941133cb53c1bbb90391aa30
untime/Android.mk
untime/build_bc_lib_internal.mk
55bf7f9d593456d17ff0d8e2d5a91a5d47381a1e 13-May-2014 Jason Sams <jsams@google.com> am b63a2434: am 06a2896a: am 6fb30826: Merge "Fix errors with native_powr and small numbers."

* commit 'b63a2434b6ac6c8272168961e975672c6329c0e7':
Fix errors with native_powr and small numbers.
c944fc899e868612d25d5e70e3f038bbdb4a73b2 13-May-2014 Jason Sams <jsams@google.com> Fix errors with native_powr and small numbers.

There are still small errors around zero, but the error is greatly reduced.

Change-Id: I4571130f758225b17281040abddf8cd825fad447
untime/rs_cl.c
13759a5eed4e6fe5a32ba5a67b2886df431693bf 08-May-2014 Jason Sams <jsams@google.com> am 12b93bc5: am 0eacd5ac: am b5abf660: Merge "Implement long/double min/max"

* commit '12b93bc5a310cfae6e4cc71ffc6e39201c6986f9':
Implement long/double min/max
a06461be26c0807fdf3cbdf25a7e7c2d92fac96b 08-May-2014 jon.parr <jon.parr@imgtec.com> Specify EGL_PBUFFER_BIT when selecting EGL configuration.

Change the EGL config selection so that it sets the EGL_PBUFFER_BIT in the
EGL_SURFACE_TYPE attribute. The library makes use of pbuffers, so needs to
request a context that is guaranteed to support them. Without this attribute,
the returned context may not support pbuffers and the application will fail.

Change-Id: I7ef408578e8d7ec58086c9baaf3a16371051fd79
Signed-off-by: jon.parr <jon.parr@imgtec.com>
sdGL.cpp
53826db2ea7f26a241be881c2b454ab3e1e5dd50 08-May-2014 Jason Sams <jsams@google.com> Implement long/double min/max

Change-Id: I87a8fced5a9f33d40aa15f0c247c804fad09adb8
untime/arch/generic.c
untime/arch/neon.ll
untime/rs_cl.c
5695c9a8f2aad141667d5f931034347aa0a7bdbb 06-May-2014 Jason Sams <jsams@google.com> am 98950317: am be75fc2d: am a5b0367f: Merge "Switch to using LLVM intrinsics for conversions"

* commit '98950317aadf5e19c613644ce7a0e7ee293ac30e':
Switch to using LLVM intrinsics for conversions
70404fa9781f13a8ca07d621f74f3810daab9704 05-May-2014 Jason Sams <jsams@google.com> Switch to using LLVM intrinsics for conversions

Replaces the hand written .ll files for conversion.

Change-Id: Ie8c6c8354847ddc84217f163060a9ee909496327
untime/Android.mk
untime/convert.ll
untime/rs_convert.c
49374158db7dbd45390710ee138ca5d67f01f437 03-May-2014 Jean-Luc Brouillet <jeanluc@google.com> am b6f5e768: am 2679937a: am 985efd82: Merge "Fix float to long convert bug."

* commit 'b6f5e7685b782630ef992641e010fd1380ace954':
Fix float to long convert bug.
0f558365e0427d6e11396cf41384c45ca94012ca 03-May-2014 Jean-Luc Brouillet <jeanluc@google.com> Fix float to long convert bug.

(Extensive generated tests win!)

Change-Id: I411a77a054b8d2ed2ac9796eaedcdf3911683cc7
untime/convert.ll
22101c367ecfa0bb29148255a41ea3f9e49dd546 29-Apr-2014 Jason Sams <jsams@google.com> am 3b138598: am 69cf14d3: Merge "Fix precision issues with half_recip, half_sqrt, and half_rsqrt"

* commit '3b138598a274afd506effdfadc663f19153a9b92':
Fix precision issues with half_recip, half_sqrt, and half_rsqrt
69cf14d340132b99784a0d1497a3e9cbb23ca54b 29-Apr-2014 Jason Sams <jsams@google.com> Merge "Fix precision issues with half_recip, half_sqrt, and half_rsqrt"
ba92a7085bbb8916334a6571ff33355873883173 29-Apr-2014 Jason Sams <jsams@google.com> Fix precision issues with half_recip,
half_sqrt, and half_rsqrt

Change-Id: I37affd7e817dd66784a541beec811bb1bca701c2
untime/arch/generic.c
untime/arch/neon.ll
untime/rs_cl.c
0c8147f6d3ad217ee5f99f24822223d0a34c1342 26-Apr-2014 Stephen Hines <srhines@google.com> am 8e4ef1cb: am 2616f297: Merge "Fix x86_64 multiply defined symbol errors."

* commit '8e4ef1cb509d26150e1987ff318d6e816fb0a47f':
Fix x86_64 multiply defined symbol errors.
3a830c08a468ffba0caa22da00001230117d7a84 26-Apr-2014 Stephen Hines <srhines@google.com> Fix x86_64 multiply defined symbol errors.

Change-Id: Ib4c2ffc8b9f9dfd57ec4e0ca76d61459dfbbd775
untime/arch/generic.c
untime/rs_cl.c
253210bf676a3d95de9a7edcc7d02042ff482895 26-Apr-2014 Stephen Hines <srhines@google.com> am 06566548: am a6d32f10: Merge "Update fw/rs for Clang 3.5."

* commit '065665487fe9f9fb2d2f4e52f99e6387845b02d2':
Update fw/rs for Clang 3.5.
8c24cd62187fb963cb1b76d2e91ae8c247c7f6fb 11-Apr-2014 Tim Murray <timmurray@google.com> Update fw/rs for Clang 3.5.

Change-Id: I0a9a1b1e61cb435f0102936ad9ffd51599c49e88
untime/Android.mk
bd01bc12ece7ce447466cc0d2dd965f5ad8c81e7 23-Apr-2014 Tim Murray <timmurray@google.com> am 773be8ce: am 087fa6e1: Merge "Remove VP9-related runtime functions."

* commit '773be8ce959b3ac87c61eda628622b435c3856a2':
Remove VP9-related runtime functions.
087fa6e19968b55e5fae7aa38971c8ec63b616c6 23-Apr-2014 Tim Murray <timmurray@google.com> Merge "Remove VP9-related runtime functions."
ea77c3aab34b1e6069003daef8be618113328a49 19-Apr-2014 Jason Sams <jsams@google.com> am 45b94da9: am c58d40d9: Merge "Disconnect the ANativewindow before destroy the DrvAllocation."

* commit '45b94da93bb8de2ff969c40f882003f1cab9c7a2':
Disconnect the ANativewindow before destroy the DrvAllocation.
5537da4b965ce6d0c2043b945757b06688ee803e 17-Apr-2014 Tong, Bo <box.tong@intel.com> Disconnect the ANativewindow before destroy the DrvAllocation.

It should disconect the ANativewindow before destroy the DrvAllocation,
otherwise it will fail in the next loop to connect the ANativewindow in
rsdAllocationSetSurface, where the DrvAllocation is destroyed but the
ANativewindow is still being connected.

Change-Id: Id084f7d388e5ddfa3112ac3bdab7a49ce104b0db
Signed-off-by: Xiaofei Wan <xiaofei.wan@intel.com>
sdAllocation.cpp
b7cc2a38253b1d2224dfe05907bb49043d1ec721 18-Mar-2014 Jason Sams <jsams@google.com> am 4bed1e3e: am 21dbc8ba: Merge "Solve four separate memory leaks related to rsdHalInit"

* commit '4bed1e3e9bd60602e349dcdac4fd065a24a2a952':
Solve four separate memory leaks related to rsdHalInit
07ef704308b514272ed2f5c3e6a2f4c055550158 19-Feb-2014 Jens Gulin <jens.gulin@sonymobile.com> Solve four separate memory leaks related to rsdHalInit

Three of the items are local to RsdCpuReferenceImpl and now freed in
destructor after all threads are stopped.
Last one is the RsdHal item itself where the pointer for some reason
was explicitly cleared but not freed. There is no reference counting
but it should be ok to free in Shutdown.

Change-Id: I7832e412d12f4bd7cc728481ae0c782fa57b57e4
sdCore.cpp
599974f140ce621a0444a887d67ba072ca79e860 15-Mar-2014 Tim Murray <timmurray@google.com> am 43822964: am 693494d8: Merge "Make RS compile on ARM64."

* commit '43822964d1e9810144c598f09543d0061d5434ce':
Make RS compile on ARM64.
e195a3f57ace3b66d313a6ee88c6e93d5c9d87f4 13-Mar-2014 Tim Murray <timmurray@google.com> Make RS compile on ARM64.

bug 13280327

Change-Id: I79080c448ca17d0cba8df075737c22b24ce9a085
sdGL.cpp
sdMeshObj.cpp
sdMeshObj.h
sdPath.cpp
sdProgram.cpp
sdRuntimeStubs.cpp
sdShader.cpp
sdShader.h
sdVertexArray.cpp
sdVertexArray.h
untime/Android.mk
382a18010c46d51264cd5b7f1698b3bbd11de5cd 08-Mar-2014 Jean-Luc Brouillet <jeanluc@google.com> am 7b0ea6e4: am e02dc783: Merge "Enable more advanced CTS tests."

* commit '7b0ea6e4677c7a3add73cb535812d83fe0520e97':
Enable more advanced CTS tests.
bcd5b9af756d10317faf54fa3742f89dfacef152 08-Mar-2014 Jean-Luc Brouillet <jeanluc@google.com> Enable more advanced CTS tests.

Add the possibility to make the generated random values for one argument
be dependent on another one. Add the possibility to add precision limits.
Change the way precision of results is verified.

This is a redo of the mess that's CL 84333 and 84332

Change-Id: I6c59ee4588627540b5bf1952adaf70b061ccc025
untime/rs_cl.c
289694ef4dfc4e27b5f07886e68ce592db72e900 06-Mar-2014 Andy McFadden <fadden@android.com> Merge "FramebufferNativeWindow.h is obsolete"
f963cc0ec0a6e34cc32326c4514fa5c452ba2e43 06-Mar-2014 Andy McFadden <fadden@android.com> FramebufferNativeWindow.h is obsolete

Change-Id: I38a5e58da6069940b1715f95cb0943eeceeb7c61
sdGL.cpp
8e1f8dce2a9c36a0b9bb0dca278beabc3716e088 04-Mar-2014 Jason Sams <jsams@google.com> Add unsigned atomics

bug 11523997

Change-Id: If0527c3c6aa193f40b5f9c94c517781c56c66252
untime/rs_core.c
039aa29085562aa0cf967e8584fd40ae818a20c6 01-Mar-2014 Jason Sams <jsams@google.com> Merge "Implement vector load/store."
41660c4c73fc425a2e3511e2070b2748cdd1107c 01-Mar-2014 Jason Sams <jsams@google.com> Implement vector load/store.

Support loading vec(2,3,4) vectors from scaler
buffers of the same component type.

Change-Id: Ice9f96d595c62ffe5e58e3d28b278417cea08fee
untime/allocation.ll
untime/rs_allocation.c
d8c4983b1a6c975ef3a691bde0a62c34dda1197e 25-Feb-2014 Jason Sams <jsams@google.com> Add long & double conversions.

Change-Id: I236fb3d8cfed73fe8437c39a27e10f0d27a48ba1
untime/convert.ll
5158f4b3e144b8279f0a28c88078340c1f0b736a 26-Feb-2014 Tim Murray <timmurray@google.com> Merge "Add getPointer for USAGE_SHARED allocations."
b8a94e26c0a5e8f58d5b6ed04e46b411e95b77a4 25-Feb-2014 Jason Sams <jsams@google.com> Add getPointer for USAGE_SHARED allocations.

Change-Id: I13a2af09bbbeec6cc6131b935979ac21c02820be
sdAllocation.cpp
0b0bcff691d047da1d658889866c6a0347850f1c 26-Feb-2014 Jean-Luc Brouillet <jeanluc@google.com> Fix the sign issue on pown().

Change-Id: I9ee826c81c14f7c3ed137608643e5cfc0f078bce
untime/rs_cl.c
531ee4ef10f54dab0ba1d5f7248073da06907425 25-Feb-2014 Tim Murray <timmurray@google.com> Remove VP9-related runtime functions.

We've decided that it makes more sense to support this as an intrinsic rather than a set of runtime functions for kernels.

Change-Id: I9b99e4d9edc3ca185437a88c837405195eab18a2
untime/Android.mk
untime/rs_dct.c
untime/rs_dct.h
untime/rs_fadst.c
untime/rs_fadst.h
untime/rs_iadst.c
untime/rs_iadst.h
untime/rs_idct.c
untime/rs_idct.h
untime/rs_walsh.c
3e0d1e79789df55021b459ae13590844b67aebd2 25-Feb-2014 Jean-Luc Brouillet <jeanluc@google.com> Fix normalize and fast_normalize.

Did not handle 0 length vectors correctly. Also fast_normalize did
not handle negative scalars correctly.

modified: rs_cl.c

Change-Id: Ide13b0bcb004009200173bc1f6f59a0303ef4f87
untime/rs_cl.c
b1657a5989c1d52a5c107bd787a2ea8616cf69ee 12-Feb-2014 Colin Cross <ccross@android.com> rs: build bc files for multiple architectures

Build bc libs for first and second architectures on multilib builds.

Change-Id: I0732e070e2b3d906132cad0b62a699bf65d34ca6
untime/Android.mk
untime/build_bc_lib.mk
untime/build_bc_lib_internal.mk
1b0b0baa2e094de111f05e959f23cc9f589a99b6 19-Feb-2014 Colin Cross <ccross@android.com> Revert "rs: build bc files for multiple architectures"

This reverts commit 448c4db4867adeedf5860de7f89a401233393539.

Change-Id: I31e83868c09834228d54b8de9895a68220b70807
untime/Android.mk
untime/build_bc_lib.mk
untime/build_bc_lib_internal.mk
448c4db4867adeedf5860de7f89a401233393539 12-Feb-2014 Colin Cross <ccross@android.com> rs: build bc files for multiple architectures

Build bc libs for first and second architectures on multilib builds.

Change-Id: I5eddb2e73088ae9aac4e8816ba9aefa39abcc97a
untime/Android.mk
untime/build_bc_lib.mk
untime/build_bc_lib_internal.mk
d941ee179d5003617d1ab308d522b5951908a34f 13-Feb-2014 Jason Sams <jsams@google.com> Merge "Fix normalize(float)"
c3f2748adb72722206aa515381b7ee8d5ba99cc5 13-Feb-2014 Jason Sams <jsams@google.com> Fix mac build.

Change-Id: Id1c43976b8bd463ac59c793328b8544a3aeb0e89
untime/rs_idct.c
d22e2e22523f46ae4869982fdc8f3396cc3d0888 12-Feb-2014 Jason Sams <jsams@google.com> Clean up naming of VP9 support functions.

Change-Id: Ibfa931f3fb3a2ed2649733b7d7e679c0091dda90
untime/rs_dct.c
untime/rs_fadst.c
untime/rs_iadst.c
untime/rs_idct.c
untime/rs_walsh.c
afdb47f35f2c2df1cab652e7899943ddfe00692d 12-Feb-2014 Jason Sams <jsams@google.com> Merge "Add image computing oriented builtin functions"
197fc09254eace8d2625c23c192487e376b39d35 28-Jan-2014 Matthieu Delahaye <matthieu@multicorewareinc.com> Add image computing oriented builtin functions

The new built-in functions covers inverse DCT, ADST and walsh transforms.

Change-Id: Ie7044da4a5becf2cc80d066a258211721a5939d4
untime/Android.mk
untime/rs_dct.c
untime/rs_dct.h
untime/rs_fadst.c
untime/rs_fadst.h
untime/rs_iadst.c
untime/rs_iadst.h
untime/rs_idct.c
untime/rs_idct.h
untime/rs_walsh.c
5eaa97c8fb83fecd4ed8eaa22a736dcb7d720c62 08-Feb-2014 Jean-Luc Brouillet <jeanluc@google.com> Fix half* failing to load

Change-Id: I9800e0a3dffe2d0ded6047b5d35af91e8996c3e6
untime/arch/neon.ll
fce65a4abe55263645d468e36bcd42264ef5dfa3 08-Feb-2014 Jason Sams <jsams@google.com> Fix normalize(float)

Change-Id: I3770812f3ff64e9a1ab44ad0e3746541252d2116
untime/rs_cl.c
0dff3fc9ecb16468f335cb18fd19ae68a8f2231c 07-Feb-2014 Stephen Hines <srhines@google.com> Merge "Fix clz implementation for types with size < 4 bytes."
1788153fc5a35756d403a3a7e9c099b72c0e1d22 07-Feb-2014 Jason Sams <jsams@google.com> Merge "Fix half_recip decls."
beac9ca07271706b8429a676d071539b7e841f10 07-Feb-2014 Jason Sams <jsams@google.com> Fix half_recip decls.

Change-Id: I19c049adaa18d052a65923ad0935382334561ece
untime/arch/neon.ll
c117d8dad895ab9bae4ba6077365f0dfd33ece47 07-Feb-2014 Stephen Hines <srhines@google.com> Fix clz implementation for types with size < 4 bytes.

Bug: 12911231

Change-Id: I2b612b34ae7d69c2793ba44d2b43ab96432e3828
untime/rs_cl.c
0ec1635641a2075c9d2349219632650401f88881 23-Jan-2014 Jean-Luc Brouillet <jeanluc@google.com> Implement version of step() that takes a scalar edge and a vector for the other argument.

Tests to be done in another CL.

Bug: 12112379

Change-Id: I28a865a9a8f272e9ac4808dacd1ad35a16731a0b
untime/rs_cl.c
c3cfa12028dc35494a03b0ffd802b800ed9981de 21-Dec-2013 Stephen Hines <srhines@google.com> Produce librsrt_<ARCH>.bc files as host shared libraries.

BUG: 12247226

These will be used with bcc_compat and the RenderScript support library to
ensure that we can generate optimized shared object files.

Change-Id: I67306867f9f1b70f0986eb4ff484a26bcecba373
untime/Android.mk
untime/build_bc_lib.mk
cadee38f6940e5584d3ec3398a21bd2a494361e2 12-Dec-2013 Stephen Hines <srhines@google.com> Add missing functions and tests for support library.

Missing functions:
rsFrac(float)
rsMatrixLoadRotate(rs_matrix4x4 *, float, float, float, float)
rsMatrixLoadScale(rs_matrix4x4 *, float, float, float)
rsMatrixLoadTranslate(rs_matrix4x4 *, float, float, float)
rsMatrixRotate(rs_matrix4x4 *, float, float, float, float)
rsMatrixScale(rs_matrix4x4 *, float, float, float)
rsMatrixTranslate(rs_matrix4x4 *, float, float, float)
rsMatrixLoadOrtho(rs_matrix4x4 *, float, float, float, float, float, float)
rsMatrixLoadFrustum(rs_matrix4x4 *, float, float, float, float, float, float)
rsMatrixLoadPerspective(rs_matrix4x4 *, float, float, float, float)
rsMatrixInverse(rs_matrix4x4 *)
rsMatrixInverseTranspose(rs_matrix4x4 *)
rsMatrixTranspose(rs_matrix4x4 *)
rsMatrixTranspose(rs_matrix3x3 *)
rsMatrixTranspose(rs_matrix2x2 *)
rsUptimeNanos()
rsGetDt()

Headers tested in this CL:
rs_element.rsh
rs_math.rsh
rs_matrix.rsh
rs_object.rsh
rs_sampler.rsh
rs_time.rsh

Change-Id: I6cb1972a44f66dc7fed8fe3cf0329720d166af81
sdRuntimeStubs.cpp
1b490375edadee7c389cb42f305cdcf1835587ad 12-Dec-2013 Jason Sams <jsams@google.com> Merge "implement finish"
a5d9bef6b53ba394087c7c7b9cc60d3aaa7f121b 06-Dec-2013 Stephen Hines <srhines@google.com> Add tests for rsDebug() in support library and fix exported functions.

Functions using long vector types for rsDebug were being exported with the
wrong signature from libRSSupport.so. Essentially it comes down to the name
mangling rules being different for "long" and "long long" when combined with
the ext_vector_type attribute. We now hard-code the "long" vector types in
our type signatures and then have them be cast properly to the 64-bit types
we were expecting.

Change-Id: I8f3dad73d0f17f22f66703aff56d6f712fa6df1f
sdRuntimeStubs.cpp
70537f52bdc6e8702db03cc91fe511371fb31267 04-Dec-2013 Stephen Hines <srhines@google.com> Retain older message APIs since existing GPU drivers depend on them.

Change-Id: Ic5425fafb7971b6094108d79346d067785b91735
sdRuntimeStubs.cpp
276000a3673e639f9abc41db4709c1b0a96c1bf9 03-Dec-2013 Stephen Hines <srhines@google.com> Add missing rsForEach()/rsSendToClient*() functions and API tests.

These were missing from the support library.

Change-Id: I53dd062fc0f1d9a6f0ce06d148c4047ebb338b71
sdRuntimeStubs.cpp
9761c3fcb8cf2ce89a29cb9202e4282d94f33d9d 27-Nov-2013 Jason Sams <jsams@google.com> implement finish

Change-Id: If1ec99d0dbcf7aebf9d90d7779bf3ff34a8963f2
sdCore.cpp
7a01126d25c081f5b613eea80e5ff7e6c75c940f 27-Nov-2013 Stephen Hines <srhines@google.com> Add tests and missing functions for rs_allocation APIs.

This change also adds some missing support library functions:
rsAllocationCopy1DRange()
rsAllocationCopy2DRange()
rsAllocationIoSend()
rsAllocationIoReceive()

Change-Id: Ia50773d767f78f3cfa2cfdf0340d8c3d9cdb0991
sdRuntimeStubs.cpp
f827cadde659212b266b9635128c98515a7dcb01 19-Nov-2013 Stephen Hines <srhines@google.com> Add rsIsObject() to support library implementation.

We only had the "element" version of rsIsObject() previously. This change also
adds the beginning of a full API test for the script-side of RS (starting with
the RS object-related routines).

Change-Id: If341b352ad671be40b860a502c345a8149bf10f3
sdRuntimeStubs.cpp
e30a05aefa5ac6db3fac00cd67304126c7e0cd5e 04-Oct-2013 Stephen Hines <srhines@google.com> Fix target names for x86.

Change-Id: I8b890cc26c8cf7b5d8479f03395f082862378a5d
untime/arch/x86_sse2.ll
untime/arch/x86_sse3.ll
4da42506a08ed7fdb61615b3524f111df939fc6e 03-Oct-2013 Stephen Hines <srhines@google.com> Remove references/use of ARCH_X86_HAVE_* in frameworks/rs.

Bug: 11048298

These SSE-related defines are unnecessary because all x86 Android devices
have these features. We switch all the checks to __i386__ instead.

This also fixes an issue where non-ARM bitcode files were being created with
the ARM defines present. This is problematic when we then try to do things
that would be arch-specific (i.e. the presence of SSE-enabled functions for
clamp(), ...).

This also cleans up the different target architecture specified in the x86
bitcode files so that they match the platform target (i686-unknown-linux).

Change-Id: I4776bbdce360de26e8a00e05d2cb19341d94a173
untime/Android.mk
untime/arch/generic.c
untime/build_bc_lib.mk
untime/rs_cl.c
9dae48ed019a7bc4e1bd31471540cefcc667fab4 24-Sep-2013 Jason Sams <jsams@google.com> Fix hang in levels.

A call to connect was missing from the binding of a
surfaceTexture to an allocation.

bug 10752757

Change-Id: I2fee9bbfebe8ddc932421f907da3f68749098921
sdAllocation.cpp
0052f8dcb5ebb5c9205a1d25445629fb5a772380 20-Sep-2013 Jason Sams <jsams@google.com> Fix for YUV bugs

Two issues, YUV intrinsic would repeat u&v for the edge padding
During the support for flexible YUV, u&v got swapped in the accessor.

bug 10826418

Change-Id: I1cf6e27c2114807d6aece4f9dd44257d4f4aa477
sdAllocation.cpp
untime/rs_allocation.c
61656a7c6fc13421679d0a1cdf8b5b861e286892 04-Sep-2013 Jason Sams <jsams@google.com> Cleanup type offsets which cannot be calculated for flexible YUV.

Support flexible YUV

bug 10567550

Change-Id: I4f6e5a8d86eeee635605460f1751208f3320969b
(cherry picked from commit a75372759e288be3fb8835735a830b1f7d1a4c42)
sdAllocation.cpp
untime/rs_allocation.c
untime/rs_structs.h
146e138f5c6eb4980ee6d85d33b951b87b6e8efe 20-Aug-2013 Stephen Hines <srhines@google.com> Refactor the libbcc runtime for x86 platform

This patch is merged/rebased from AOSP, where it was initially submitted to
frameworks/compile/libbcc by Jun Tian <jun.j.tian@intel.com>. All conflicts
have been resolved.

This patch refactors the libbcc runtime code to support x86 platform.
It removed the redundant x86 code and added the missing functions in
libclcore_x86.bc.
It resolved the RenderScript failures on the x86 platform.

Bug: 9961583
Change-Id: I2c8be0f710960ee5e0614721f5edfbaf028c67e1
untime/Android.mk
untime/arch/dot_length.c
untime/arch/generic.c
untime/arch/sqrt.c
untime/arch/x86_clamp.ll
untime/arch/x86_dot_length.ll
untime/arch/x86_generic.c
untime/arch/x86_math.ll
untime/arch/x86_sse2.ll
untime/arch/x86_sse3.ll
untime/build_bc_lib.mk
untime/rs_cl.c
2d7d0b276ed4b3cedf72342a4d2ab287d4653ce0 16-Aug-2013 Stephen Hines <srhines@google.com> am 470a2f85: am 10f31703: Fix up dependencies further for RS compatibility library.

* commit '470a2f85d26034771c82de18509f072596d53531':
Fix up dependencies further for RS compatibility library.
10f317038dd53543dc8c7f5afe26a6360adfb5f3 16-Aug-2013 Stephen Hines <srhines@google.com> Fix up dependencies further for RS compatibility library.

Removed cutils dependency from rsdCore.cpp.
Removed system/grapics.h dependency by bringing in the only enum we use.

Change-Id: I0de6c0c2e049c78cc20516cfa2035291da2a0f04
sdAllocation.cpp
sdCore.cpp
e6b3d13534186d08f14d0753c26c535825ffdec8 08-Aug-2013 Stephen Hines <srhines@google.com> Move mmanWindows.* to proper locations.

Change-Id: If7044224de65735e257cf90d0c3bf655c31dd4d5
inkloader/include/mmanWindows.h
inkloader/lib/mmanWindows.cpp
9e9e6335fd281caa48378aee969a561eba964d88 07-Aug-2013 Stephen Hines <srhines@google.com> Use BUILD instead of HOST for bcc_strip_attr.

This is actually a merge of a separate patch that went into jb-mr2-dev libbcc:
https://googleplex-android-review.googlesource.com/#/c/337382/1

Change-Id: Ieb8acb6d7a4806cb7910e6eaf65e75d398b9345b
untime/build_bc_lib.mk
ddceab9a001f07a3395226c5e06e3b420720af0f 07-Aug-2013 Jason Sams <jsams@google.com> Refactor hal to remove cpuConsumer from drivers

This CL should minimize build breaks due to
BufferQueue changes in the future.

Change-Id: I565a6eae5cc25603741fef32f2cfcb31a32eb757
sdAllocation.cpp
sdAllocation.h
sdCore.cpp
sdRuntimeStubs.cpp
untime/rs_structs.h
126adc5dee94b157b0040ab3c543af02d4277990 02-Aug-2013 Mathias Agopian <mathias@google.com> separate BufferQueue's producer and consumer sides

Bug: 9265647
Change-Id: I37edf2d973a091c13563a5d019da0122d2000c18
sdAllocation.cpp
2644c42ddc16ef2515fc2e566ad2f60f1a1b47c6 03-Aug-2013 Raphael Moll <raphael@google.com> am 9b21cf51: am 1033b597: Fix Windows build issues for librsloader.

* commit '9b21cf5166b9ce3ac01c98d5122198dbde972b24':
Fix Windows build issues for librsloader.
8b9b3aa8e0b92e677c0100ee402a7328fc3ce1c4 03-Aug-2013 Stephen Hines <srhines@google.com> Clean up sloppy switch/case code.

Change-Id: Ic1dcbde50d998005f3e3e623c1b7c30fecdd9a70
sdAllocation.cpp
1ed5ef9b253850a199eecff6b7941e57c408e509 29-Jul-2013 Tobias Grosser <grosser@google.com> Provide Renderscript TBAA metadata for allocations

Annote all common runtime functions that get or set data in an allocation
with Renderscript TBAA metadata.

Change-Id: Ie56117f5d094b7e9579e9ff926990fcacfe38019
untime/Android.mk
untime/allocation.ll
untime/rs_allocation.c
1033b5974b02238c2413119963408a1ad65d5c93 24-Jul-2013 Raphael Moll <raphael@google.com> Fix Windows build issues for librsloader.

This change adds some unimplemented versions of functions from the
mman.h header file (mmap, munmap, mprotect, ...). These functions
are unused on Windows, since we don't actually need the loader.

Change-Id: I2058aa28af43ea2b2d9df77a457928788e2b9f15
inkloader/include/impl/ELFSectionBits.hxx
inkloader/include/impl/ELFSectionNoBits.hxx
inkloader/include/mmanWindows.h
inkloader/lib/MemChunk.cpp
inkloader/lib/StubLayout.cpp
inkloader/lib/mmanWindows.cpp
861cab4b1e81501a770509b19be4c53c006316ba 30-Jul-2013 Stephen Hines <srhines@google.com> Merge "Extract trivial rs(Get/Set)ElementAtImpl() method"
3cec9065841eeecb38aa412b8aeef6bca58c5a07 27-Jul-2013 Mathias Agopian <mathias@google.com> remove some old pixel formats

Change-Id: I314d3c49e78f6054e0ca88a614813e46567fda78
sdAllocation.cpp
f1ba8b82145b6fa08bca9a89652be73b54e04fab 23-Jul-2013 Stephen Hines <srhines@google.com> Merge "Remove unused and incorrect code"
b18ab3a86d70dbdc492ab1ba925af1d2dc1c423d 22-Jul-2013 Tobias Grosser <grosser@google.com> Remove unused and incorrect code

This code misses the clamp after the multiply-add. To not confuse we remove
this code.

Change-Id: Ibf2cdc05065d710c4000165fba30887206b43106
untime/rs_core.c
98f1f05105146e1caeb124cae6e286c151f63151 10-Jul-2013 Tobias Grosser <grosser@google.com> Extract trivial rs(Get/Set)ElementAtImpl() method

Reduce redundant code and create the rs(Get/Set)ElementAtImpl() methods which
only load or store data, but which do nothing else. Keeping those functions
simple is important, as they may later be replaced by LLVM-IR implementations
annotated with RenderScript specific alias information.

The immediate benefit of this change is the removal of code duplication.
Instead we rely on LLVM to perform inlining and constant propagation. We
verified that LLVM performs these transformations successfully by both
examining the generated LLVM-IR as well as by running the image processing
benchmark. We did not measure any performance impact.

We also discussed the possibility, that other compilers may not be able to
do this (rather basic) transformation. However, this code will generally be
compiled by LLVM. Vendors that might use a different compiler normally have
also their own implementation of the run-time library, such that this change
does not apply for them.

Change-Id: I3d079785b2fd5ce8373cc6e5fa118611ec1f487e
untime/rs_allocation.c
3318d1809dfce03eb876d6a2eba39018a0e7d7be 17-Jul-2013 Mathias Agopian <mathias@google.com> revert to using a pbuffer as the dummy egl surface

Change-Id: I2c30a6a33d3412ffee899494847fdc882b96e173
sdGL.cpp
797e2b7661259e1775c8690af049101dc7059272 16-Jul-2013 Mathias Agopian <mathias@google.com> Merge "always pass the BufferQueue explicitely to consumers"
d23255813297fea614f17f4b0ecbd4f99430c67c 13-Jul-2013 Mathias Agopian <mathias@google.com> always pass the BufferQueue explicitely to consumers

Change-Id: I422e1a9d29e375cc09490097ad118ac66c401504
sdAllocation.cpp
6ba6c664f773a53d7b6ddaf2c216d11404fd18fc 13-Jul-2013 Stephen Hines <srhines@google.com> Move linkloader into cpu_ref/ instead of driver/.

This library is actually part of the reference implementation and not part of
the direct instantiation in driver/. Having this code live in driver/ (for
partners to modify/replace) is misleading.

Change-Id: Ifba4575ff3bcdd09a3839384cfb26c2b0bf9d5fa
inkloader/android/librsloader.cpp
inkloader/android/librsloader.h
inkloader/android/test-librsloader.c
inkloader/include/ELF.h
inkloader/include/ELFHeader.h
inkloader/include/ELFObject.h
inkloader/include/ELFReloc.h
inkloader/include/ELFSection.h
inkloader/include/ELFSectionBits.h
inkloader/include/ELFSectionHeader.h
inkloader/include/ELFSectionHeaderTable.h
inkloader/include/ELFSectionNoBits.h
inkloader/include/ELFSectionProgBits.h
inkloader/include/ELFSectionRelTable.h
inkloader/include/ELFSectionStrTab.h
inkloader/include/ELFSectionSymTab.h
inkloader/include/ELFSymbol.h
inkloader/include/ELFTypes.h
inkloader/include/GOT.h
inkloader/include/MemChunk.h
inkloader/include/StubLayout.h
inkloader/include/impl/ELFHeader.hxx
inkloader/include/impl/ELFObject.hxx
inkloader/include/impl/ELFReloc.hxx
inkloader/include/impl/ELFSection.hxx
inkloader/include/impl/ELFSectionBits.hxx
inkloader/include/impl/ELFSectionHeader.hxx
inkloader/include/impl/ELFSectionHeaderTable.hxx
inkloader/include/impl/ELFSectionNoBits.hxx
inkloader/include/impl/ELFSectionProgBits.hxx
inkloader/include/impl/ELFSectionRelTable.hxx
inkloader/include/impl/ELFSectionStrTab.hxx
inkloader/include/impl/ELFSectionSymTab.hxx
inkloader/include/impl/ELFSymbol.hxx
inkloader/lib/ELFHeader.cpp
inkloader/lib/ELFSectionHeader.cpp
inkloader/lib/ELFSymbol.cpp
inkloader/lib/ELFTypes.cpp
inkloader/lib/GOT.cpp
inkloader/lib/MemChunk.cpp
inkloader/lib/StubLayout.cpp
inkloader/main.cpp
inkloader/utils/flush_cpu_cache.h
inkloader/utils/helper.cpp
inkloader/utils/helper.h
inkloader/utils/raw_ostream.cpp
inkloader/utils/raw_ostream.h
inkloader/utils/rsl_assert.cpp
inkloader/utils/rsl_assert.h
inkloader/utils/serialize.h
inkloader/utils/traits.h
140a7acade66ab5d1f3dc55803a3a65a71f3f86c 11-Jul-2013 Stephen Hines <srhines@google.com> resolved conflicts for merge of 5376c9bf to master

Change-Id: I51507da10f8d7116a2aa29446a00a43d397a37c8
b0934b67b95cc27e2358c2aa4db5f7c1067c8f9b 04-Jul-2013 Stephen Hines <srhines@google.com> Remove libutils and fix rsDebug for RS support library.

Bug: 9664050

Our bitcode runtime library translates vector rsDebug() calls into passing
their parameters via pointers. The previous version of libRSSupport.so was
being created with non-pointer versions of these routines accidentally.
This change also fixes a missing permission issue for ImageProcessing2, so
that the compatibility library can be verified.

This change also removes the use of libutils by switching the implementation of
String8/Vector in the compatibility library to internal types backed by
libstlport_static.

Change-Id: I20da75e8c19a82a42dc2bceaba1937d21372db84
sdAllocation.cpp
sdAllocation.h
sdBcc.cpp
sdRuntimeStubs.cpp
sdShaderCache.h
a221f569d741a425beca4f111931e12177e3a3f3 11-Jul-2013 Stephen Hines <srhines@google.com> Implement MemChunk::registerAllocFreeCallbacks().

This function allows a driver implementation to register its own handler for
allocating/freeing MemChunk objects. MemChunk is primarily used by the ELF
loader for various code/data segments.

Change-Id: If497f07a538c714933fcaa1b0c04ed5a6febeeba
inkloader/include/MemChunk.h
inkloader/lib/MemChunk.cpp
sdCore.cpp
582b3646d6634f74a13828cceb1414823c18e66f 01-Jun-2013 Stephen Hines <srhines@google.com> Take absolute value of value for fast_length().

Bug: 9018865
Change-Id: I3f6539a4f97d0b1276341adc0752ce510f13cda5
untime/rs_cl.c
080e2ef14e9090b38a37197d1bf5c5eba69cc77f 30-May-2013 Tobias Grosser <grosser@google.com> Build NEON run-time when targetting cortex-a15

The build of the NEON run-time library has been disabled for cortex-a15, as
performance with NEON enabled was lower than performance without NEON. We now
have ideas why this was the case. To enable testing of NEON performance and
later to switch on NEON by default, we now enabled the build of the library.

Change-Id: Iaf44e221a124d7829425c47a7e36aa43dc2fd02d
untime/Android.mk
5a47020542c52af3e879c1cd67674ca979ff0a18 30-May-2013 Stephen Hines <srhines@google.com> Move RS runtime to frameworks/rs.

Bug: 7342767
Change-Id: Ia45064a5257b8ce460918f327670e3be550d4b56
ndroid.mk
untime/Android.mk
untime/arch/clamp.c
untime/arch/dot_length.c
untime/arch/generic.c
untime/arch/neon.ll
untime/arch/sqrt.c
untime/arch/x86_clamp.ll
untime/arch/x86_dot_length.ll
untime/arch/x86_generic.c
untime/arch/x86_math.ll
untime/build_bc_lib.mk
untime/convert.ll
untime/math.ll
untime/matrix.ll
untime/rsClamp.ll
untime/rs_allocation.c
untime/rs_cl.c
untime/rs_core.c
untime/rs_element.c
untime/rs_matrix.c
untime/rs_mesh.c
untime/rs_program.c
untime/rs_sample.c
untime/rs_sampler.c
untime/rs_structs.h
c38948df79f3247b17ddc7c6639ce24e46b45a86 23-May-2013 Tim Murray <timmurray@google.com> Merge "Remove unnecessary tests from RS build."
e88167844b9bb9297e3b583fbd5f52f8592d1092 23-May-2013 Sakshi Agrawal <sakshia@codeaurora.org> am c88bcef4: Don\'t call free on MallocPtr not from Malloc

* commit 'c88bcef407e94afe33f5d26a0644a7116926b5ee':
Don't call free on MallocPtr not from Malloc
224acfd22e2e110bafb75afb732d900c7c110416 23-May-2013 Tim Murray <timmurray@google.com> Remove unnecessary tests from RS build.

Change-Id: I99d6f96f7895c876a243106738773303a92cb6a9
inkloader/tests/images/clean-testcases.sh
inkloader/tests/images/gen-testcases.sh
inkloader/tests/images/rodata-test.c
inkloader/tests/images/simple-test.c
inkloader/tests/images/test.c
inkloader/tests/stubs/arm-stub.c
inkloader/tests/stubs/mips-stub.c
inkloader/tests/stubs/stub-layout-test.cpp
c88bcef407e94afe33f5d26a0644a7116926b5ee 14-May-2013 Sakshi Agrawal <sakshia@codeaurora.org> Don't call free on MallocPtr not from Malloc

Change-Id: I9af8b3cd4cc98e4238c08bf5e20be615c9c72ff0
sdAllocation.cpp
2734b503d884c46ded30aac2e6801182e362012a 11-May-2013 Tim Murray <timmurray@google.com> am aafa7a84: Fix IO_OUTPUT teardown issue.

* commit 'aafa7a84e3158042ca456b1f3329c2890c72d53f':
Fix IO_OUTPUT teardown issue.
aafa7a84e3158042ca456b1f3329c2890c72d53f 09-May-2013 Tim Murray <timmurray@google.com> Fix IO_OUTPUT teardown issue.

bug 8891075

Change-Id: I6ec8d9a7db6def3db4111923d366f00f329cdacf
sdAllocation.cpp
bef2bae4d604d5c9be7a8c3b2814ed4f00b12ac3 08-May-2013 Stephen Hines <srhines@google.com> Merge "Provide a mechanism for adjusting RSCompilerDriver after construction."
b7d9c80c98fc96aa7c638e3124be24f13a6436b2 30-Apr-2013 Stephen Hines <srhines@google.com> Provide a mechanism for adjusting RSCompilerDriver after construction.

We add a simple callback to the reference implementation of libRSDriver.so,
such that additional BCC flags can be toggled/adjusted before doing any actual
CPU compilation.

Change-Id: Iaf253b7d967d0382937369b1c5dae2d23a99e8be
sdCore.cpp
4a17f289f611cb86e2f140a94cafdafea3f54d4b 29-Apr-2013 Jason Sams <jsams@google.com> Remove unnecessary set_buffer_count

bug 8669032

The extra set generates errors when the producer node changes
the number of buffers needed by the system.

Change-Id: Ied0f918a09f08386d16ec4266454af6af120fac4
sdAllocation.cpp
cca3d6ca444bef3b6d75431ec19bd07bfe40a733 15-Apr-2013 Stephen Hines <srhines@google.com> Add support for DEBUG context type.

Bug: 7343201

This change adds switching for the debug runtime (libclcore_debug.bc) when
running under a DEBUG RS context. It also fixes a small naming issue for
rsSetElementAt_int().

Change-Id: I8b574c9ce915a440375530325ba7de2b46707cfd
sdRuntimeStubs.cpp
886e51b2ef45ce123379c8a11579851c5580d957 12-Apr-2013 Tim Murray <timmurray@google.com> Merge "Add support for synchronous get()." into jb-mr2-dev
4961cceab2b71bf0ab59e1b66a7559f67ed28781 12-Apr-2013 Jason Sams <jsams@google.com> USAGE_IO notifications for new buffers.

bug 8566866

Change-Id: I49767ee902400f09b9b1c174e0fecac5b41e5611
sdAllocation.cpp
sdAllocation.h
sdGL.cpp
9c64239ebbfa4170190ede812e69150035e008e0 11-Apr-2013 Tim Murray <timmurray@google.com> Add support for synchronous get().

Change-Id: Ic94f1e36f7cffaaeda11fa9f0bb70e441fe1e535
sdBcc.cpp
sdBcc.h
sdCore.cpp
2df036b89596698b66ebddfead0eeb08360df5f8 10-Apr-2013 Jason Sams <jsams@google.com> Merge "Add texturing support for USAGE_SHARED." into jb-mr2-dev
ba24d08b4228fd1e35cd79319f15fddc11f24a49 10-Apr-2013 Tim Murray <timmurray@google.com> Add texturing support for USAGE_SHARED.

bug 8567006

Change-Id: I63a44a18797e4b3487560c608b0663f40a524388
sdAllocation.cpp
3bbc0fd40264ddae1592706d9023865b7b3e3195 09-Apr-2013 Jason Sams <jsams@google.com> Add 3D allocation copies.

Remove resize2d.

bug 8567058

Change-Id: Ib143b7a417c7db88aa8da8714a63e0ee6091269a
sdAllocation.cpp
sdAllocation.h
827237e9882948ddfdabfe6307c711d33b89ffac 08-Apr-2013 Stephen Hines <srhines@google.com> Merge "Move frameworks/compile/linkloader into frameworks/rs." into jb-mr2-dev
b53c8a59e6f21ed36a0c3d9d4ce5834d4cc3c298 06-Apr-2013 Stephen Hines <srhines@google.com> Move frameworks/compile/linkloader into frameworks/rs.

Bug: 7342767
Change-Id: I977d3fe5eb0cc21517e1771e555f83b89f0a1462
inkloader/android/librsloader.cpp
inkloader/android/librsloader.h
inkloader/android/test-librsloader.c
inkloader/include/ELF.h
inkloader/include/ELFHeader.h
inkloader/include/ELFObject.h
inkloader/include/ELFReloc.h
inkloader/include/ELFSection.h
inkloader/include/ELFSectionBits.h
inkloader/include/ELFSectionHeader.h
inkloader/include/ELFSectionHeaderTable.h
inkloader/include/ELFSectionNoBits.h
inkloader/include/ELFSectionProgBits.h
inkloader/include/ELFSectionRelTable.h
inkloader/include/ELFSectionStrTab.h
inkloader/include/ELFSectionSymTab.h
inkloader/include/ELFSymbol.h
inkloader/include/ELFTypes.h
inkloader/include/GOT.h
inkloader/include/MemChunk.h
inkloader/include/StubLayout.h
inkloader/include/impl/ELFHeader.hxx
inkloader/include/impl/ELFObject.hxx
inkloader/include/impl/ELFReloc.hxx
inkloader/include/impl/ELFSection.hxx
inkloader/include/impl/ELFSectionBits.hxx
inkloader/include/impl/ELFSectionHeader.hxx
inkloader/include/impl/ELFSectionHeaderTable.hxx
inkloader/include/impl/ELFSectionNoBits.hxx
inkloader/include/impl/ELFSectionProgBits.hxx
inkloader/include/impl/ELFSectionRelTable.hxx
inkloader/include/impl/ELFSectionStrTab.hxx
inkloader/include/impl/ELFSectionSymTab.hxx
inkloader/include/impl/ELFSymbol.hxx
inkloader/lib/ELFHeader.cpp
inkloader/lib/ELFSectionHeader.cpp
inkloader/lib/ELFSymbol.cpp
inkloader/lib/ELFTypes.cpp
inkloader/lib/GOT.cpp
inkloader/lib/MemChunk.cpp
inkloader/lib/StubLayout.cpp
inkloader/main.cpp
inkloader/tests/images/clean-testcases.sh
inkloader/tests/images/gen-testcases.sh
inkloader/tests/images/rodata-test.c
inkloader/tests/images/simple-test.c
inkloader/tests/images/test.c
inkloader/tests/stubs/arm-stub.c
inkloader/tests/stubs/mips-stub.c
inkloader/tests/stubs/stub-layout-test.cpp
inkloader/utils/flush_cpu_cache.h
inkloader/utils/helper.cpp
inkloader/utils/helper.h
inkloader/utils/raw_ostream.cpp
inkloader/utils/raw_ostream.h
inkloader/utils/rsl_assert.cpp
inkloader/utils/rsl_assert.h
inkloader/utils/serialize.h
inkloader/utils/traits.h
46b65dd7a3b9fc943188d573c3a692efaf2a475c 08-Apr-2013 Eino-Ville Talvala <etalvala@google.com> Merge "Use async CpuConsumer for IO_RECEIVE, and rework buffer acquire." into jb-mr2-dev
0d44f12aaeb34f7ed6d2a9acafac459646773e47 04-Apr-2013 Eino-Ville Talvala <etalvala@google.com> Use async CpuConsumer for IO_RECEIVE, and rework buffer acquire.

Change-Id: I50ceeac9ee80255db558c886642c72fd3a073982
sdAllocation.cpp
d09b9d667438c82e00c83cd21f693f32e3cf9f4b 03-Apr-2013 Jason Sams <jsams@google.com> Support all get/set element in debug

Adds error checking and works around ABI issues

Change-Id: Iad5df03be9235c4abdcba070215d9de0268b4ef8
sdRuntimeStubs.cpp
3aeab4f0a628cad27c3f18ec1cff6f154ae01b62 02-Apr-2013 Jason Sams <jsams@google.com> Delete sampler optimization.

Calling overhead makes this mostly pointless.

Change-Id: I899778db3e6b06f46a5d5ca9af34fc17cf105b14
sdSampler.cpp
11d2f805f851d42b72ecde7b04571961916b74a8 28-Mar-2013 Jason Sams <jsams@google.com> Merge "Disable sampler optimization until bugs are fixed." into jb-mr2-dev
d6f1f46b2929ed56c73ba32357cde31b82972fbe 26-Mar-2013 Tim Murray <timmurray@google.com> Add some missing compat lib functions and fix a bug.

Change-Id: I2950e1b4f785bcc1f0b6154ce822fe17832b3f4f
sdRuntimeStubs.cpp
fe3697bf62d0812209d9355eee082914eaf05689 27-Mar-2013 Jason Sams <jsams@google.com> Disable sampler optimization until bugs are fixed.

Change-Id: I5bcf0609f08672829650c34198ae1489b7fa173e
sdSampler.cpp
a8cd40f1c75d0af0e2276c9f169eb0a1ba034adf 26-Mar-2013 Tim Murray <timmurray@google.com> Merge "Start making RS 64-bit clean." into jb-mr2-dev
06b0f7d3b345ae1c36aed6686e79e403650f8baa 22-Mar-2013 Jason Sams <jsams@google.com> start refactoring rsSample

Change-Id: I3bc2209991dcb2a13a2629e8ecfe6955ae83a9a8
sdSampler.cpp
099bc262f862cdeb547cf8a78fe9e0e92560f437 21-Mar-2013 Tim Murray <timmurray@google.com> Start making RS 64-bit clean.

Change-Id: Ie40ad9a1d2b59094c86eb7e40b358e60120ce213
sdAllocation.cpp
sdAllocation.h
sdBcc.cpp
sdBcc.h
0b575de8ed0b628d84d256f5846500b0385979bd 15-Mar-2013 Tim Murray <timmurray@google.com> Add x86 server support.

Change-Id: I674acaf15b67afa48bc736f72942a11e2e38e940
sdAllocation.cpp
sdAllocation.h
sdBcc.cpp
sdCore.cpp
sdRuntimeStubs.cpp
sdShaderCache.h
sdVertexArray.h
110f181b7966212a36ef18016f9b81c7322d0a2f 15-Mar-2013 Jason Sams <jsams@google.com> Reduce diffs with compat lib.

Change-Id: Ibfa2c7c7da56d158f424ac343e364feacd0a21da
sdCore.cpp
sdRuntimeStubs.cpp
34689388556747b52c3c2f1c894929fb44580898 11-Mar-2013 Tim Murray <timmurray@google.com> Add custom allocator support for Allocation objects.

Change-Id: Iab546455354c2ee72797658fdcd49c90a5893527
sdCore.cpp
sdCore.h
9d8e5af146326250ebc1e9b3c93402bd0e7669bb 28-Feb-2013 Jason Sams <jsams@google.com> Fix bug introduced with IO_INPUT.

YUV allocations were calculating the wrong allocation size.

Change-Id: Iecca4f1d300aca93a34b744d8589e53105109480
sdAllocation.cpp
5261a5ea546ff358edd5aac7602fc4132434f481 28-Feb-2013 Jason Sams <jsams@google.com> Add checked get/set element at.

Change-Id: I069800e16ecfeb228a9376f8a3cd65ab61f86110
sdRuntimeStubs.cpp
3a25fdd3786c1a08b783d8a83ef94b756347ff5c 23-Feb-2013 Tim Murray <timmurray@google.com> Cleanup lots of things related to IO_OUTPUT and error checking.

Change-Id: Ic6802dd0ba9d3edc8c53f99002cdd905214a515c
sdAllocation.cpp
sdAllocation.h
733396b67724162844ea2785c7495115dc5ee8d8 22-Feb-2013 Jason Sams <jsams@google.com> Implement usage IO INPUT

Change-Id: I4dedd697ecd7719ba307ac393aca5abd67128e0c
sdAllocation.cpp
sdAllocation.h
sdCore.cpp
8880d49363e1950ae3d0cc1c1967a6d8e66fea6c 16-Feb-2013 Jason Sams <jsams@google.com> Merge "Support typed YUV allocations"
bc0ca6ba4e31239bf77060578d0bdf1a10e04168 16-Feb-2013 Jason Sams <jsams@google.com> Support typed YUV allocations

Change-Id: I844051ee1be1462e497d238f5460f301be1aaa1d
sdAllocation.cpp
33c622e98b57c5021c92133543ff00ffdbbcafe7 15-Feb-2013 Mathias Agopian <mathias@google.com> Refactoring: Rename SurfaceTextureClient to Surface

Change-Id: Iab892e07ec975ba5047806f9e289e7d1d972ceac
sdGL.cpp
c2cfe6abfc74befbaa4d2ca09024a27fbfb1f515 15-Feb-2013 Tim Murray <timmurray@google.com> Add alignment requirements with USAGE_SHARED.

Change-Id: I844e37ad29a893b6e35834588a5d80e52d8bf61b
sdAllocation.cpp
sdAllocation.h
d616f4a706c28f1d7dd89ba0c7e7e04dc81848be 06-Feb-2013 Stephen Hines <srhines@google.com> Merge "Fix stride 16-byte alignment issues in RS."
94999c3c7e3dcb6b6c0a9fe5785a0d3216357b0e 06-Feb-2013 Stephen Hines <srhines@google.com> Fix stride 16-byte alignment issues in RS.

Change-Id: I549d3acd4ebd921c36be3de6d2734bb89ec8a50e
sdAllocation.cpp
f18f9d4cb264ad6ded465e4b0678125077195ea6 06-Feb-2013 Jason Sams <jsams@google.com> Add error to catch mismatched allocations and samplers.

Change-Id: Id54d669fa9c3ce833fd094d5615e05ad4742e0ac
sdShader.cpp
10c9dd709f8b52213c6792961afa9c5de807db5c 01-Feb-2013 Jason Sams <jsams@google.com> Release the surface texture object on allocation destruction.

Change-Id: I0eff42377a36d29cc64a1c23b8263e6f46b43523
sdAllocation.cpp
c0baffe7c9020f32b948dd46789590cf5dc3b988 15-Jan-2013 Stephen Hines <srhines@google.com> Merge "Align all allocations to a 16-byte boundary."
2913f381a554c28abb44f49eddd1ee4c68a72578 15-Jan-2013 Stephen Hines <srhines@google.com> Align all allocations to a 16-byte boundary.

This change also fixes an issue in the Blur intrinsic, where we mis-cast a
float array to float4 (and thus encountered some new alignment errors with
the updated LLVM).

Change-Id: I3955b38f156c35f4d160652c75ab416bae09b2c8
sdAllocation.cpp
a572aca4eb4ddb32c10baa1f529431cfefd756b8 09-Jan-2013 Jason Sams <jsams@google.com> Add support for YUV allocations.

Change-Id: I21a47c745a2f8435af4f37ec0ad624002f3db555
sdAllocation.cpp
e7d4df3dd02ec7505a2d83348af16e327d1fce3a 28-Dec-2012 Jason Sams <jsams@google.com> Merge "Fix 3d Allocation support"
f2b611e26db1c83ad5e0e0cdebcfa639b03fba75 28-Dec-2012 Jason Sams <jsams@google.com> Fix 3d Allocation support

Change-Id: Ic80fc53739a11e3d06fde6e3aefc3436f4702000
sdAllocation.cpp
93eacc7ce0aad4314b4cb41a281f59ce54bb3286 18-Dec-2012 Jason Sams <jsams@google.com> Cleanup diff with compat.

Change-Id: Ieedcdec03ccb05cac68cbebbd398e07cb885f4d3
sdAllocation.cpp
sdAllocation.h
sdCore.h
sdSampler.cpp
38ac5d4092f32b08451c73ecabcf2ab21aef15d5 19-Dec-2012 Tim Murray <timmurray@google.com> Merge "Add USAGE_SHARED to driver."
9e2bda58db9e6427a1640ea302d4df079ffa0252 18-Dec-2012 Tim Murray <timmurray@google.com> Add USAGE_SHARED to driver.

Change-Id: Ie04f8ee2d6080729660dbe82b3a09af5cd40e239
sdAllocation.cpp
58fd6a5f10480551786739280d56dfa620c80b39 18-Dec-2012 Andy McFadden <fadden@android.com> Rename ISurfaceTexture and SurfaceTexture

The C++ class names don't match what the classes do, so rename
ISurfaceTexture to IGraphicBufferProducer, and SurfaceTexture to
GLConsumer.

Bug 7736700

Change-Id: I268f78847fcb7094fdfd17484c7f20e128b950e1
sdAllocation.cpp
sdGL.cpp
f79af7e3dfd48b8fda6e4f342809a4a74cb187a5 17-Dec-2012 Stephen Hines <srhines@google.com> am b53dc856: am 02437a5c: Merge "Remove dangling ptr in rsdAllocationInit"

* commit 'b53dc856325cfb12401abef33cc7b3b439c3152b':
Remove dangling ptr in rsdAllocationInit
b53dc856325cfb12401abef33cc7b3b439c3152b 17-Dec-2012 Stephen Hines <srhines@google.com> am 02437a5c: Merge "Remove dangling ptr in rsdAllocationInit"

* commit '02437a5ca8af6433c9932be84ff7ab1207fad5a2':
Remove dangling ptr in rsdAllocationInit
ed419f37009ff5375293c198268c381460efa0f2 16-Dec-2012 You Kim <you.kim72@gmail.com> Remove dangling ptr in rsdAllocationInit

Possible dangling ptr in exceptional case.

Change-Id: I4f5353b7709b215d4d79748c60668fdfadaf048f
sdAllocation.cpp
20c535f54fb41348a96af98079ad377d7a310c8a 07-Dec-2012 Stephen Hines <srhines@google.com> Skip the memcpy if src/dst are the same.

This is an optimization to go with our shared Bitmap storage.

Bug: 7256604
Change-Id: I7e3a40ba434c1af92f3c87f61537fc4d9d87c28c
sdAllocation.cpp
3e919276004bb81091f06c839be0ab47de4210cc 05-Dec-2012 Stephen Hines <srhines@google.com> am 36f07d85: Fix kernel bounds for ColorMatrix intrinsic.

* commit '36f07d854de88949d632f77bffab322ffa826bcc':
Fix kernel bounds for ColorMatrix intrinsic.
2e1a94df812f0caa42ff24eaefeba8f90fbdf1ac 29-Nov-2012 Tim Murray <timmurray@google.com> Add support for user-allocated buffers from the C++ API.

Bug: 7256604
Change-Id: Ia5d458ebadfd893e41130f90a1650258280a41cd
sdAllocation.cpp
36f07d854de88949d632f77bffab322ffa826bcc 04-Dec-2012 Stephen Hines <srhines@google.com> Fix kernel bounds for ColorMatrix intrinsic.

Bug: 7648342
Change-Id: Ia345523ead21cbe74fabd07edd79b386de5b995d
sdIntrinsicColorMatrix.cpp
2539203284ec7079edb6ecc35d32e79f3385c73c 01-Dec-2012 Jason Sams <jsams@google.com> am c4b6b3af: Fix kernel launch clipping.

* commit 'c4b6b3af8ea67c6ce86a4e44e9432f2887107cff':
Fix kernel launch clipping.
c4b6b3af8ea67c6ce86a4e44e9432f2887107cff 30-Nov-2012 Jason Sams <jsams@google.com> Fix kernel launch clipping.

bug 7648342

Change-Id: Ife61345bc834f876b03f87cefb2408b4aaba9e88
sdIntrinsicBlend.cpp
sdIntrinsicBlur.cpp
sdIntrinsicConvolve5x5.cpp
sdIntrinsicLUT.cpp
63d37605191b90c63d1ebe342713996ef6b5abc3 29-Nov-2012 Jason Sams <jsams@google.com> am fb6dfa66: Remove hard coded limit on intrinsic blur buffer size.

* commit 'fb6dfa66fe274ae6562c00084869f8fadf8d197e':
Remove hard coded limit on intrinsic blur buffer size.
fb6dfa66fe274ae6562c00084869f8fadf8d197e 28-Nov-2012 Jason Sams <jsams@google.com> Remove hard coded limit on intrinsic blur buffer size.

DO NOT MERGE

bug 7631746

Change-Id: I7fdf27bb2149c09c330124f032951cab32b85f62
sdBcc.cpp
sdIntrinsicBlur.cpp
358747a3118301c5faeee73c98dd5f839bbfb54a 26-Nov-2012 Tim Murray <timmurray@google.com> Add support for 2D strided copies to/from an allocation with the C++ API.

Change-Id: I55cd7512f683f8d36d2b75f894931fd0657521bc
sdAllocation.cpp
sdAllocation.h
f8a82cd44f1ce5712ad9375dccc03415c50636b2 26-Nov-2012 Tim Murray <timmurray@google.com> am 8575a2b6: Fix convolve3x3 off-by-one error.

* commit '8575a2b6c601357cf34deb80b801228c6bc72a66':
Fix convolve3x3 off-by-one error.
8575a2b6c601357cf34deb80b801228c6bc72a66 21-Nov-2012 Tim Murray <timmurray@google.com> Fix convolve3x3 off-by-one error.

Bug: 7599424
Change-Id: I577b0051487934c26603a5f6329b88939e36639a
sdIntrinsicConvolve3x3.cpp
1e84a97d5e97ba26b41da488cac76af102617d7c 21-Nov-2012 Stephen Hines <srhines@google.com> am cef5fe99: Fix single-CPU/thread case.

* commit 'cef5fe99666296748cd274eb71a04b573b031393':
Fix single-CPU/thread case.
23ebeaadc2d44b2ff9044e88763edb5e36750c72 20-Nov-2012 Stephen Hines <srhines@google.com> am 0d87d351: Merge "Fix intrinsic asm entry/exit names."

* commit '0d87d351221e7cc854eefc96ddb08a345360409a':
Fix intrinsic asm entry/exit names.
0a29ed5501c372e5c65c407b33dddf36cf0618ab 05-Nov-2012 Jason Sams <jsams@google.com> Fix intrinsic asm entry/exit names.

Change-Id: Ia7b1779847bdb33e43c12f8bd9693100e7b60a8a
sdIntrinsics_Convolve.S
709a0978ae141198018ca9769f8d96292a8928e6 16-Nov-2012 Jason Sams <jsams@google.com> Separate CPU driver impl from reference driver.

Change-Id: Ifb484edda665959b81d7b1f890d108bfa20a535d
sdAllocation.cpp
sdAllocation.h
sdBcc.cpp
sdBcc.h
sdCore.cpp
sdCore.h
sdIntrinsicBlend.cpp
sdIntrinsicBlur.cpp
sdIntrinsicColorMatrix.cpp
sdIntrinsicConvolve3x3.cpp
sdIntrinsicConvolve5x5.cpp
sdIntrinsicInlines.h
sdIntrinsicLUT.cpp
sdIntrinsicYuvToRGB.cpp
sdIntrinsics.cpp
sdIntrinsics.h
sdIntrinsics_Convolve.S
sdMeshObj.cpp
sdRuntime.h
sdRuntimeMath.cpp
sdRuntimeStubs.cpp
sdScriptGroup.cpp
sdScriptGroup.h
sdShader.cpp
cef5fe99666296748cd274eb71a04b573b031393 17-Nov-2012 Stephen Hines <srhines@google.com> Fix single-CPU/thread case.

Change-Id: Ia21a37922c6eb250519094e626e75b95d45db9c3
sdCore.cpp
e0e5e8475c37b777e16aa4e9d3d020f4c986e3fb 17-Nov-2012 Jason Sams <jsams@google.com> Merge commit 'f5ecac92' into manualmerge

Conflicts:
driver/rsdBcc.cpp

Change-Id: I04a06c157165a77f3c5edffa637b9e42a02ef617
cd62caad07b6e8458a0b7b0bfe3da14f8aadd56b 17-Nov-2012 Jason Sams <jsams@google.com> Merge commit '054af68e' into manualmerge

Conflicts:
driver/rsdBcc.cpp

Change-Id: I5922a32a3d27cb2a48e9672eab2d47d1b122bbc0
3ea5b9cc71960a95a34adfde600c8fb87d4f053a 15-Nov-2012 Jason Sams <jsams@google.com> Fix performance when reading or writing large buffers.

Blur intrinsic which uses ~25mb of data would spill the
L2 cache when a smarter walking pattern could reduce this
hit. We now vary the chunk size on both the processor
count and data size.

N7 execution time drops 1959ms to 930ms
Mako 470ms to 385ms
Manta, no change.

Change-Id: I57e36e2fec3bb51033a9bd9f3040963f5b071eb0
sdBcc.cpp
c5b34c6ff0f1c2a25c45af932e1d7a7b494a34b0 15-Nov-2012 Jason Sams <jsams@google.com> Thread launch latency improvements.

Change-Id: I38b104edc1e120f2d8187edbd75e5d9ea652c12e
sdBcc.cpp
sdCore.cpp
46862ad1387193beaced56d0ad613b4fd39b7486 06-Nov-2012 Jason Sams <jsams@google.com> Merge "Fix intrinsic asm entry/exit names."
c1e6eb07263cd21c42bfd08bb7789406dc863fdb 05-Nov-2012 Jason Sams <jsams@google.com> Fix intrinsic asm entry/exit names.

Change-Id: Ia7b1779847bdb33e43c12f8bd9693100e7b60a8a
sdIntrinsics_Convolve.S
374a259d380bec33b865c6e02276ee203ee9814a 01-Nov-2012 Stephen Hines <srhines@google.com> Update for new bcc build() interface.

Change-Id: Ief8f813e42b9c320d2185929d39c14cab8b08206
sdBcc.cpp
bee28c6b56d0c399402014cd58cea426da2b98c1 26-Oct-2012 Jason Sams <jsams@google.com> Merge script groups.

Change-Id: Id5baf5e7c59a004127250fced91b6b33b1fe053b
sdBcc.cpp
sdBcc.h
sdScriptGroup.cpp
2e5ef66f7d88e2f85bbc4f97edf1ed0b6edbaac7 22-Oct-2012 Tim Murray <timmurray@google.com> Fix intrinsics for clipped kernels.

Change-Id: I3ed6c97e7ba5f9f61f97f150a7341064b85ac8c4
sdIntrinsicBlend.cpp
sdIntrinsicBlur.cpp
sdIntrinsicColorMatrix.cpp
sdIntrinsicLUT.cpp
f598811a60088236222bb1879503842094ca378b 16-Oct-2012 Stephen Hines <srhines@google.com> Fix use of rs_script_call_t.

There were a few broken parts here for rs_script_call_t.
1) Incorrect runtime function signatures.
2) Missing enum at the start of the driver structure.
3) Missing update of pointer based on xStart.

Bug: 7212879
Change-Id: I25d44d5534ceb61b49b0bbc7cf1b5c6b16bab360
sdBcc.cpp
sdRuntimeStubs.cpp
78b050ea1e13108110ce3b8ead63252e5ebe2468 16-Oct-2012 Jason Sams <jsams@google.com> Fix bugs in scriptGroup.

Intrinsics were treating inputs as fields rather than varObjs.
This would generate a lot of extra work for the reflection
layers. Also we would like to deprecate this path in the future.

bug 7318821

Change-Id: I89ad25f96ae23502d7925b9824b629bbd8801963
sdBcc.cpp
sdBcc.h
sdIntrinsicBlur.cpp
sdIntrinsicConvolve3x3.cpp
sdIntrinsicConvolve5x5.cpp
sdIntrinsicLUT.cpp
sdIntrinsicYuvToRGB.cpp
sdIntrinsics.cpp
sdScriptGroup.cpp
15ff402e4728476054c7e2ecd1fe610e6e8d4e71 12-Oct-2012 Jason Sams <jsams@google.com> Fix potential null dereference in RS SG

bug 7318821

Change-Id: I53b0966996761f166551635054b982d2f137c5f7
sdScriptGroup.cpp
b801b949e286275b5d19a33135235ba68d3a19a9 10-Oct-2012 Jason Sams <jsams@google.com> Check for invalid configuration for Intrinsics.

Log error rather than crash upon user errors.
bug 7318821

Change-Id: I65fe0efa1f8d9eb6189f5e428e29a25455828c07
sdIntrinsicBlur.cpp
sdIntrinsicConvolve3x3.cpp
sdIntrinsicConvolve5x5.cpp
sdIntrinsicYuvToRGB.cpp
sdScriptGroup.cpp
bd726b2159c14bd78d45f3157befcb733037f8d4 10-Oct-2012 Jason Sams <jsams@google.com> Fix bug in script groups.

Links from output to field would fail due to the field not
getting uptated if it was uninitialized.

Change-Id: Ib3939f9bdca2c31957a9609a20175192bf52561c
sdScriptGroup.cpp
fa17cda2d7e0948677035890e40498ad0b639c92 27-Sep-2012 Jason Sams <jsams@google.com> Implement fast version of blend intrinsics.

bug 7190126

Change-Id: Icebd47ece0d2daa115097c5ea4003dfbaa79da73
sdIntrinsicBlend.cpp
sdIntrinsics_Convolve.S
36889a0ecf564e3d47e7f69bb030c6b927061792 24-Sep-2012 Tim Murray <timmurray@google.com> Implementations of various blend intrinsics.

Bug: 7190126

Change-Id: I84cd8b861b63489313b9c2827f43aa7391a62607
sdIntrinsicBlend.cpp
sdIntrinsicInlines.h
sdIntrinsics.cpp
sdIntrinsics.h
7c355cc6e667220244cfd55249b64cd161c3dbd9 25-Sep-2012 Jason Sams <jsams@google.com> Implement optimized kernel kickoff for T30

bug 7190126
~3x perf gain from lightweight intrinsics

Change-Id: I6cf001a2790f228efe252e0083e1915bd6373416
sdBcc.cpp
cf9ea9f4145cae663f439b1c2dab956fa37180bb 24-Sep-2012 Jason Sams <jsams@google.com> Implement backend of blend intrinsic

bug 7190126


Change-Id: I5095366eb3d091bba1628b7cceb5efb685c8f870
sdBcc.cpp
sdIntrinsicBlend.cpp
sdScriptGroup.cpp
a1b08e2cacf3891fcd6895422c6124887b75975e 24-Sep-2012 Jason Sams <jsams@google.com> Performance fix for Intrinsic 5x5 convolve.

bug 7190126

Change-Id: If5cda2581baf7f41027e5586434a32b830d54c84
sdIntrinsicConvolve5x5.cpp
sdIntrinsics_Convolve.S
915aa964a1a312f5e06c115112a3aea14fd31b33 22-Sep-2012 Jason Sams <jsams@google.com> yuv performance opts.

bug 7190126

Change-Id: I9b6b0d5877b73e8b02d38b9f4209660b174aa6de
sdIntrinsicYuvToRGB.cpp
sdIntrinsics_Convolve.S
2207ab7e0f2d28382fe61ff002ddd58c4fa3fb99 19-Sep-2012 Jason Sams <jsams@google.com> bug 7190126
FS intrinsic perf work.
Fix correctness issue with convolve 3x3.

Change-Id: I7f2657c5e9da003f91ad6a9c2f85d8d43913654b
sdIntrinsicBlur.cpp
sdIntrinsics_Convolve.S
e78e514f3f209e594767e8ebc64f5df4be5b0b41 19-Sep-2012 Jason Sams <jsams@google.com> Fix blur intrinsic performance.
bug 7190126

Change-Id: Iffda394ee77b40ca0e3109c43f6e25bf932f482b
sdIntrinsicBlur.cpp
sdIntrinsics_Convolve.S
eca876089980799774bbe5f8bf341e780bd94348 19-Sep-2012 Jason Sams <jsams@google.com> Checkin optimized Convolve3x3 with input from ARM.

Change-Id: Ib9e06bf3d3005c3efda57a70b515722694bcc94e
sdIntrinsics_Convolve.S
01f03a04da629b9a3e3ff33287dd277b12c54148 19-Sep-2012 Jason Sams <jsams@google.com> Implement YUV intrinsic.
bug 7190126

Change-Id: I8526e8ec5a9b48702e4d118ad3b26125239563d8
sdIntrinsicYuvToRGB.cpp
sdIntrinsics.cpp
ba808d71236c5c9deca01f0e2938cae983564940 18-Sep-2012 Jason Sams <jsams@google.com> Fix intrinsic threading.

Change-Id: If6fdf286cc37b975953d66f41713f2dec52898b0
sdBcc.cpp
dbe66d6783c1e53cd1572de0ef6ef6fdf6f76f48 17-Sep-2012 Jason Sams <jsams@google.com> Add backed for script groups.

Change-Id: If2fdbde7381fcdaeb54d41a913b855fd83d4f186
sdAllocation.cpp
sdBcc.cpp
sdBcc.h
sdCore.cpp
sdIntrinsics.h
sdScriptGroup.cpp
sdScriptGroup.h
d85e283087ecd00760a0d8d0c9d8482cda845efc 12-Sep-2012 Jason Sams <jsams@google.com> Implement intrinsics.

LUT, Blur, Convolve 5x5

Change-Id: I076dc260079f4475648a7f1a0b3e6d47655bf0b4
sdIntrinsicBlur.cpp
sdIntrinsicConvolve3x3.cpp
sdIntrinsicConvolve5x5.cpp
sdIntrinsicInlines.h
sdIntrinsicLUT.cpp
sdIntrinsics.cpp
31da039f044d7261dc7930b1418bfeaee0bc5d8f 11-Sep-2012 Stephen Hines <srhines@google.com> am 5359ef67: am 2f6d7e5a: Merge "Fix symbol table for libRS MatrixTranspose"

* commit '5359ef6790bad7a36b3aad97f5c859d4635bd926':
Fix symbol table for libRS MatrixTranspose
5359ef6790bad7a36b3aad97f5c859d4635bd926 11-Sep-2012 Stephen Hines <srhines@google.com> am 2f6d7e5a: Merge "Fix symbol table for libRS MatrixTranspose"

* commit '2f6d7e5a2dabdd47d6b395bb78f385ae34c96208':
Fix symbol table for libRS MatrixTranspose
c84b56e55737376b43a00531bffacae7d4716a31 11-Sep-2012 yuyan <yuyan@multicorewareinc.com> Fix symbol table for libRS MatrixTranspose

The renderscript runtime api: rsMatrixTranspose3x3 and
rsMatrixTranspose2x2 are not correctly exported in the symbol table.

This fix corrected the typo of the symbol name.

Change-Id: I0a11b4346ae83aa87938f60a6afd619f1dfd8ed0
Signed-off-by: yuyan <yuyan@multicorewareinc.com>
sdRuntimeMath.cpp
2085eb0eab322007cf0d50e82a42595773ccae19 08-Sep-2012 Jason Sams <jsams@google.com> Merge "Fix bugs in optimized colorMatrix." into jb-mr1-dev
40945e01597adaed9e728a14a17bf4a35452abd5 08-Sep-2012 Jason Sams <jsams@google.com> Fix bugs in optimized colorMatrix.

Change-Id: I4f8dd481f8ce72c2b8ef8586e9cee02b7c969f82
sdIntrinsicColorMatrix.cpp
sdIntrinsicConvolve3x3.cpp
sdIntrinsics_Convolve.S
414a46166126da6864258bd25ff183f9a3c6261d 06-Sep-2012 Stephen Hines <srhines@google.com> Attempt to create libRSDriver as shared library.

Change-Id: I047b32325efe2fa471b73c48fa7296beecc0c47d
sdCore.cpp
sdRuntimeStubs.cpp
537c4411b57ba30b688f437a663120e7f9c4f4e0 05-Sep-2012 Jason Sams <jsams@google.com> Implement ColorMatrix intrinsic.

Change-Id: I1b1f864f55c0a7c6b24eeed94594f6fc803242f6
sdIntrinsicColorMatrix.cpp
sdIntrinsicConvolve3x3.cpp
sdIntrinsicInlines.h
sdIntrinsics.cpp
e1e08b4c9cc80c51224fdaf3aeab0804daf073e6 05-Sep-2012 Jason Sams <jsams@google.com> Continue intrinsic development

Fix build issues with neon code
Add support for multiple intrinsics.

Change-Id: I3eb35ed47364b0df27ff14c99e4a5a2036fc4db0
sdBcc.cpp
sdIntrinsicConvolve3x3.cpp
sdIntrinsicInlines.h
sdIntrinsics.cpp
sdIntrinsics.h
sdIntrinsics_Convolve.S
6d958bc9ac6efc404be2b502c5c579e00837bff1 05-Sep-2012 Jason Sams <jsams@google.com> Revert "Fix intrinsic performance."

This reverts commit 49202fbfe57d2cc92b183baa8cbce3141e9a9ead

Change-Id: I01a12869b09322b10bb8ce8daec446361a0628ed
sdBcc.cpp
sdIntrinsics.cpp
sdIntrinsics.h
sdIntrinsics_Convolve.S
49202fbfe57d2cc92b183baa8cbce3141e9a9ead 01-Sep-2012 Jason Sams <jsams@google.com> Fix intrinsic performance.

Change-Id: I0bd511e8e7520f5dfe8643f3ff3db805b7881d99
sdBcc.cpp
sdIntrinsics.cpp
sdIntrinsics.h
sdIntrinsics_Convolve.S
83d07f19945918b91c290143cb1be3a0126c61de 24-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am 47771791: Merge "Fixed class previously declared as struct warning"

* commit '477717912d7bff1c0de856d26abb83d53c7cd66c':
Fixed class previously declared as struct warning
f74b9d9b2b8680f0d841107eb082c36e0ab92159 08-Aug-2012 Tareq A. Siraj <tareq.a.siraj@intel.com> Fixed class previously declared as struct warning

Change-Id: I381fdbff12312970e262a1ec35bf2a6aac27425c
Author: Tareq A. Siraj <tareq.a.siraj@intel.com>
Reviewed-by: Kevin Schoedel <kevin.p.schoedel@intel.com>
sdFrameBufferObj.h
17f03fc9552551024fa9ec50e3b020c7e3100cee 22-Aug-2012 Jason Sams <jsams@google.com> Generalize intrinsics

Change-Id: Ib11dec1702eab8c24f76d2b3a5b0791ab27205fc
sdBcc.cpp
sdIntrinsics.cpp
sdIntrinsics.h
5b9be087cf874fa3282c6e5c83da09a6d218ecf4 21-Aug-2012 Jason Sams <jsams@google.com> DO NOT MERGE - Fix stale realloc pointers.

bug 6886608

Change-Id: Icc96f17e20be1023187efa075c001ad1c46792d0
sdAllocation.cpp
41d6c769f5fa21da3cbc116af95d88949a4a5c76 22-Aug-2012 Stephen Hines <srhines@google.com> Clean up useless code, logging, and a typo.

Change-Id: I8c2296e7f60037907a969bcaf1746644e32868c3
sdBcc.cpp
sdBcc.h
463bfced38d97605dd8403a5e9435d9ad3394e35 21-Aug-2012 Jason Sams <jsams@google.com> Fix stale realloc pointers.

bug 6886608

Change-Id: Icc96f17e20be1023187efa075c001ad1c46792d0
sdAllocation.cpp
0db650c7aff639f24e9c6a651abd4539cb943609 26-Jul-2012 Jason Sams <jsams@google.com> DO NOT MERGE - Cleanup pointer access in adapter and font.

Change-Id: Ie500574adebb9bdb38c138f78582af2cd7610f76
sdAllocation.cpp
sdAllocation.h
sdBcc.cpp
sdCore.cpp
sdPath.cpp
sdShader.cpp
57dc11a5eb5a92d2bc7070ad3392b12047dd9adc 26-Jul-2012 Jason Sams <jsams@google.com> DO NOT MERGE - Move memory layout to driver.

This change moves all allocation data copies to the
hal. Also removes stride from the runtime. Follow on
changes will remove the malloc pointer from the runtime.

Change-Id: I30967c739800cd4b97186e9fc8b69f26a3f2787d
sdAllocation.cpp
sdAllocation.h
sdBcc.cpp
sdBcc.h
sdCore.cpp
sdMeshObj.cpp
sdRuntimeStubs.cpp
8eaba4fee0c7b5325742c87187622fdff51d5eff 14-Aug-2012 Jason Sams <jsams@google.com> Intrinisics

Change-Id: I1ce02ecd853382a2c92823b021750b93f1786ccf
sdBcc.cpp
sdBcc.h
sdCore.cpp
sdIntrinsics.cpp
sdIntrinsics.h
c3b8f060521ee952913b2ad0a12da911ec6a67ac 08-Aug-2012 Stephen Hines <srhines@google.com> am 72f3ad8f: Merge "fract() uses a float*, not an int*."

* commit '72f3ad8f09ba073882f2005aeb70b2436a253cc5':
fract() uses a float*, not an int*.
52a18464438e9bfbd042c8b6c288f0af444610c1 08-Aug-2012 Stephen Hines <srhines@google.com> fract() uses a float*, not an int*.

Change-Id: I24966f7c8de8eaf60a59a151928f59f0e93a4127
sdRuntimeMath.cpp
abd6d04992e4b7c903ed2c1278d744e73ac74334 01-Aug-2012 Jason Sams <jsams@google.com> Don't cap max-threads to current cpu count.

Change-Id: Ie437c0eccff0de0d9175633e004449211c141f6a
sdCore.cpp
378d30b1da622e0e75e551e95fafb18ff3a3f88e 28-Jul-2012 Stephen Hines <srhines@google.com> Rename RenderScript -> Renderscript.

Change-Id: I64ca3d4e52133a88c6e2c7ca820874eb469534fe
sdBcc.cpp
61a4bb734b91ced09fbfee4214c6f253cb66e5f0 26-Jul-2012 Jason Sams <jsams@google.com> Cleanup pointer access in adapter and font.

Change-Id: Ie500574adebb9bdb38c138f78582af2cd7610f76
sdAllocation.cpp
sdAllocation.h
sdBcc.cpp
sdCore.cpp
sdPath.cpp
sdShader.cpp
807fdc4b6f3fb893015ee136565d6151bb2332d3 26-Jul-2012 Jason Sams <jsams@google.com> Move memory layout to driver.

This change moves all allocation data copies to the
hal. Also removes stride from the runtime. Follow on
changes will remove the malloc pointer from the runtime.

Change-Id: I30967c739800cd4b97186e9fc8b69f26a3f2787d
sdAllocation.cpp
sdAllocation.h
sdBcc.cpp
sdBcc.h
sdCore.cpp
sdMeshObj.cpp
sdRuntimeStubs.cpp
586e2a41144dd520390b04897936b694647a1330 16-Jul-2012 Shih-wei Liao <sliao@google.com> Fix runtime error by removing unnecessary code.

Already moved the selection logic to libbcc. I.e.,
now libbcc shall handle the selection of libclcore. See the commit
"Link against NEON version of libclcore.bc when possible."

Change-Id: Ib742b5b9984993015886f078d9bf859a97d189e9
sdBcc.cpp
cca7ee69f5ae9aa5832082b81eb4fa0db84c5fa2 14-Jul-2012 Shih-wei Liao <sliao@google.com> Should be FP_Full instead of Full.

Change-Id: I71ee1216d83542526a54f348d328e9dc73ffb682
sdBcc.cpp
a3af2cd3cc684aee2a090475f797936f3bd1b8cb 25-Apr-2012 Shih-wei Liao <sliao@google.com> Start using new libbcc APIs.

Change-Id: If6b7b53890e3d4ee7db3b6c91bec9fe07fbadcd1
sdBcc.cpp
sdCore.cpp
sdRuntime.h
sdRuntimeStubs.cpp
7aa31aeb0ffa5b3cb8304a9322eeb8a3a7db3843 10-Jul-2012 Jason Sams <jsams@google.com> Merge "Generalize slicing."
a1dd74c5ce4db0991020a4836be24fc35af4f301 09-Jul-2012 Rajeev Sharma <rdsharma@google.com> Add rsDebug implementations for all basic types

Change-Id: Iae69fc211de166da486d5e638b9b4b48e23a743b
sdRuntimeStubs.cpp
0ab9f9f6b1fb31cda536ae4aeaed258f78ee1447 16-Jun-2012 Jason Sams <jsams@google.com> Generalize slicing.

Change-Id: Ied8c051678fad1739164bd196978ba0de1eceb04
sdBcc.cpp
cd919a177f2b25af1b304dd4d79f0a768fed342f 14-Jun-2012 Jamie Gennis <jgennis@google.com> Update ANativeWindow clients for sync

This change updates the uses of ANativeWindow to use the new ANW functions that
accept and return Sync HAL fence file descriptors.

Change-Id: I701729e34e00944709c4477acf9d63ca6a2ab0f6
sdAllocation.cpp
0bbb8e6c13474a24c0baadab0546d66b7c2bcc2e 14-Jun-2012 Jason Sams <jsams@google.com> am 9d6b2b35: Fix single level forEach threading

* commit '9d6b2b359c43a388090aa34b3a558c262214192b':
Fix single level forEach threading
9d6b2b359c43a388090aa34b3a558c262214192b 14-Jun-2012 Jason Sams <jsams@google.com> Fix single level forEach threading

No longer mark scripts single threaded just because a
forEach is present.

Change-Id: I617cb2b1ccb402526a78338612b1614f94da4efb
sdBcc.cpp
sdCore.h
sdRuntimeStubs.cpp
aa152101cc4d04597d9aefc3e5a1454eaf39d2cc 14-Jun-2012 Jason Sams <jsams@google.com> Fix single level forEach threading

No longer mark scripts single threaded just because a
forEach is present.

Change-Id: I617cb2b1ccb402526a78338612b1614f94da4efb
sdBcc.cpp
sdCore.h
sdRuntimeStubs.cpp
65977322142d4a4f2d0705d654ae282c18540596 09-Jun-2012 Jason Sams <jsams@google.com> Remove old and unused functions.

Change-Id: Iaa9e3fb13f7bdcf3db97e5696cc3cbc623a57fb7
sdRuntimeMath.cpp
efd960937763d687b2f0d9a89b6643312d3a4d52 18-May-2012 Jean-Baptiste Queru <jbq@google.com> am d2d868f9: Fix build - remove unused variable

* commit 'd2d868f98f235a0b6cecda7cbdef36c7d5c3d4af':
Fix build - remove unused variable
d2d868f98f235a0b6cecda7cbdef36c7d5c3d4af 16-May-2012 Jean-Baptiste Queru <jbq@google.com> Fix build - remove unused variable

Change-Id: I9e3ce14d2b60da80861fe321e35849186fe0eee9
sdCore.cpp
6537404d5ad7ec19f0f26533d695d39909782781 15-May-2012 Stephen Hines <srhines@google.com> Support float vector versions of rsDebug() directly.

We can do this now that we are building for the device with Clang.

Change-Id: I3133b1f6220ccd0fa9f8d2bc9502074beaa45d1a
sdRuntimeStubs.cpp
80291cfe38f4894fd350133be6ef438d93a4c980 14-May-2012 Stephen Hines <srhines@google.com> Merge "Fix warning from clang (class -> struct)."
433d5f43151a21e4403dc69ffebe0895ddb0905b 11-May-2012 Stephen Hines <srhines@google.com> Merge "Link against NEON version of libclcore.bc when possible." into jb-dev
1cd84930b25bf12e094b416a0ea4ae5fe839f537 11-May-2012 Stephen Hines <srhines@google.com> Fix warning from clang (class -> struct).

Change-Id: I298a062b161177f34849a4526a817d0b978efe60
sdFrameBufferObj.h
ebee9480507562109314cca00753a09002a91e7d 09-May-2012 Stephen Hines <srhines@google.com> Link against NEON version of libclcore.bc when possible.

BUG=6127576

Change-Id: I276feb9928b094e1b9a99de55a983a0c7ce241c7
sdBcc.cpp
1d892439c73e73ae2cdceb5df30f34f7c5eefe28 08-May-2012 Jason Sams <jsams@google.com> Fix leak when app does not exit cleanly.

BUG=6452240

Change-Id: I305300fa4e11a8f11e275067f46bde3d5ad1a6e9
sdGL.cpp
298691a87d1b30d1221e303a6788d5272c223971 03-May-2012 Stephen Hines <srhines@google.com> Patch up remaining issues with revert.

Change-Id: I18389962e83ab43930b46dbb1e7b8263e096e86e
sdBcc.cpp
070cb235d9f094048c0260aa72d5acf61ed840a3 03-May-2012 Stephen Hines <srhines@google.com> Revert "Start chewing new libbcc APIs."

This reverts commit ec3fc1163c01e18b1454057723c451f0d96868ad.
sdBcc.cpp
sdCore.cpp
sdRuntime.h
sdRuntimeStubs.cpp
2980f07d3dbbca727e8efe24ace7e7928a935648 10-Apr-2012 Stephen Hines <srhines@google.com> Support additional element/dim information for FieldPacker.

BUG=6009244

Change-Id: I3c439559d61b24b26f9a36f2525f0a0e05b00e77
sdBcc.cpp
sdBcc.h
sdCore.cpp
ec3fc1163c01e18b1454057723c451f0d96868ad 25-Apr-2012 Shih-wei Liao <sliao@google.com> Start chewing new libbcc APIs.

Change-Id: Idb4166eb0f0137a69b0c76be1e7fcb0d09bb1613
sdBcc.cpp
sdCore.cpp
sdRuntime.h
sdRuntimeStubs.cpp
2275e9cf534ff601fe42a72ff50580b230c04fe2 17-Apr-2012 Jason Sams <jsams@google.com> Fix duplicate malloc pointers.

Change-Id: I6525877cb93fe0f750339a8d7a747c7f5ce9a2f7
sdAllocation.cpp
sdAllocation.h
sdMeshObj.cpp
773d0083085ed15e3af4d336df7098d8d9646f45 13-Apr-2012 Alex Sakhartchouk <alexst@google.com> Setting the viewport for surface texture render targets.

Change-Id: If0544985ee7cc79d1b8ddbc08ad18754e6280ceb
sdFrameBufferObj.cpp
0dc66936c02f285a242b6a68166d6f03618a0f07 11-Apr-2012 Jason Sams <jsams@google.com> IO_OUTPUT + Rendertarget implemetation.

Change-Id: Ia402828d1847675304ce9ed049af3a35951f734f
sdAllocation.cpp
f22c8ace148b69847aaf5ad1829e9ec95a44df6c 04-Apr-2012 Jason Sams <jsams@google.com> Add support for stride != width.

BUG=6111812

Change-Id: I419dbf90f94ca54b4189fa6e62a2449efd893676
sdAllocation.cpp
sdBcc.cpp
b322033c13487a174bb9c26466e9684d1ff4de8d 02-Apr-2012 Jason Sams <jsams@google.com> Implement IO_OUTPUT + SurfaceTexture

Change-Id: Id96fecd6d768196523330c5eda77c4ee86b9bd3c
sdAllocation.cpp
sdAllocation.h
sdFrameBufferObj.cpp
sdGL.cpp
sdGL.h
sdRuntimeStubs.cpp
sdShader.cpp
0e8435acf07e1a77a4561899fa9fa17092931ecd 29-Mar-2012 Daniel Lam <dalam@google.com> rsdGL explicity connects the DummyConsumer

Change-Id: I5aa66f37c82a39f708f2f0db2267aec22bf07dcd
sdGL.cpp
a6ab26a035017143a24efa11859c9d8815a27f41 29-Mar-2012 Jason Sams <jsams@google.com> Workaround PDK issues.

Change-Id: I7dcb76a23cb3fd59e2a2d5e25af1329b2ac38415
sdBcc.cpp
65e9c8fb535139e30182977439a83dc136817925 27-Mar-2012 Alex Sakhartchouk <alexst@google.com> Merge "State based shader recompile to support camera input."
8ce904d48f335650596e0e22e34c45a3dcc3cb4b 24-Mar-2012 Daniel Lam <dalam@google.com> rsdGL uses DummyConsumer

Using a DummyConsumer instead of a SurfaceTexture avoids
errors such as BufferQueue has been abandoned due to the SurfaceTexture
going out of scope and disconnecting from the BufferQueue.

Bug: 6172739
Change-Id: I775ead2d0392a68fd0f7e724d6eb25298d2fb00d
sdGL.cpp
6d6e114f8bea8db08bf1decb673d3eb9a8f258ae 26-Mar-2012 Alex Sakhartchouk <alexst@google.com> State based shader recompile to support camera input.

Change-Id: Ia6c362571e1b44254461522a8c49a8551b46f28d
sdProgram.cpp
sdShader.cpp
sdShader.h
sdShaderCache.cpp
sdShaderCache.h
3522f40418fdf877f5a136475dbf75e57a3b7c77 23-Mar-2012 Jason Sams <jsams@google.com> Implement USAGE_IO_INPUT



Change-Id: Idbf7bb21f5ab673ad77082c5c19921d2b276c04b
sdAllocation.cpp
sdCore.cpp
sdProgram.cpp
sdShader.cpp
sdShader.h
sdShaderCache.cpp
sdShaderCache.h
d1f7da6803a1bfc0bf8129a66316cfb8994e7110 16-Mar-2012 Jason Sams <jsams@google.com> Add prop to force cap compute threading.

bug=6124869

Change-Id: Ibf2cc388f3906cea2741382ff5e522e3b416393c
sdCore.cpp
4edf030cbb7c6ac08dc563335c2af73c20f6e2e5 09-Mar-2012 Alex Sakhartchouk <alexst@google.com> More header untangling.

Change-Id: I090943775cbda8d9515cdb484957f6b05d5b1799
sdGL.cpp
ed8844c7275bcb80bf22e31ac47baf4ca231df94 06-Mar-2012 Glenn Kasten <gkasten@google.com> Remove references to sched_policy.h in RS

As part of scheduling policy cleanup, removing some references to
sched_policy.h and its APIs. Activity manager should be responsible
for configuring scheduling policy, rather than leaving it up to each app.

Change-Id: Iffe972799bf3fde090b1efdd3abce5141e4d261e
sdCore.cpp
8588697ff54ff51afb522509f19202a982305446 05-Mar-2012 Alex Sakhartchouk <alexst@google.com> Merge "Add multisampling support to renderscript."
a277734efa210be16f3646bf9c66924e59876c86 05-Mar-2012 Alex Sakhartchouk <alexst@google.com> Merge "Using surface texture as a default renderscript surface."
da7a148171869f392b5813635532c6ed5a752912 28-Feb-2012 Alex Sakhartchouk <alexst@google.com> Add multisampling support to renderscript.

Change-Id: I38bf50a5b54aa5df7e4f76ea40027d9e36dc4b5d
sdGL.cpp
5575cf16fa6e263ead96526683aed2f2cfd8ac96 28-Feb-2012 Alex Sakhartchouk <alexst@google.com> Using surface texture as a default renderscript surface.

Change-Id: I969aa56683fdf4538ff54fa1065dada77cf9d04d
sdGL.cpp
354add223fc498229b874e41477a874afe42ba2a 28-Feb-2012 Alex Sakhartchouk <alexst@google.com> Merge "Removing GL calls from librs"
b8eba193f3f0d25a6156236fa80f79a5b1dc89f6 25-Feb-2012 Mathias Agopian <mathias@google.com> remove dependency on android_native{s_priv|buffer}.h

Change-Id: Ie4b95f7061c240f37c504414259f92d72c4ffc89
sdGL.cpp
e255929025c4ec3fd91518350e3e7b447c745529 25-Feb-2012 Mathias Agopian <mathias@google.com> remove libui dependency on libEGL

Change-Id: I1194f04085637d5c384e134967249430cc43b6ee
sdGL.cpp
653b53ebcd2bedc94ac486080d2e82e1920232e3 24-Feb-2012 Alex Sakhartchouk <alexst@google.com> Removing GL calls from librs

Change-Id: Ida22199a33f0f9fd534dcc5951d12937967a187b
sdGL.cpp
sdGL.h
sdRuntimeStubs.cpp
bb5c0b1ef124e845564e928fe6d24a37f30e99ed 23-Feb-2012 Stephen Hines <srhines@google.com> Merge "Support running ForEach on non-root functions."
4419977d78018a9933c7f455fe001f644f2d638b 22-Feb-2012 Stephen Hines <srhines@google.com> Support running ForEach on non-root functions.

BUG=6000538

Change-Id: Ie2b16893b150cc5955ee4b9d028c988f69a82744
sdBcc.cpp
sdCore.h
38c04ad97fee58a4c1b9ed0bad9d08931bee504a 16-Feb-2012 Alex Sakhartchouk <alexst@google.com> Merge "Piping texture names through shader builder. Fixing uint size_t mismatch."
748eb07e805b93c2bf79340d4937963ab739d17c 16-Feb-2012 Alex Sakhartchouk <alexst@google.com> Piping texture names through shader builder.
Fixing uint size_t mismatch.

Change-Id: Ia7c8bd9f829deaa50e1cc381ccd50f29676bbdfb
sdProgram.cpp
sdProgramFragment.h
sdProgramVertex.h
sdShader.cpp
sdShader.h
254305944bf430eae672507546df368e97d50759 16-Feb-2012 Alex Sakhartchouk <alexst@google.com> Merge "Fixing uint32 size_t mismatches."
7ac2a4dda4d20ca1f1b714e129a3a08f63178c18 15-Feb-2012 Jason Sams <rjsams@android.com> Beging IO stream out from allocation to surface texture.

Change-Id: I4d6b7f7740a896d39b811d6fe7532bb00db62373
sdAllocation.cpp
sdAllocation.h
sdCore.cpp
c794cd56e46408e08862c42a022090e323684197 13-Feb-2012 Alex Sakhartchouk <alexst@google.com> Fixing uint32 size_t mismatches.

Change-Id: I5263158f5855472db6317a52c209fe4e273f3368
sdAllocation.cpp
sdProgram.cpp
sdShader.cpp
26b8a1625fceed5a17b33a38542c3fd3b84bd9e4 14-Feb-2012 Stephen Hines <srhines@google.com> Merge "Initialize all class members."
ebf4a148cda98359129c04b96ed755a7d8c98b37 14-Feb-2012 Stephen Hines <srhines@google.com> Initialize all class members.

Change-Id: I2bb2701a9dde66f6c4484a62945c72ddf52248fa
sdShaderCache.h
e98fc94cfa53b78bc91519cc7993b3beef199c6e 11-Feb-2012 Alex Sakhartchouk <alexst@google.com> am 87a36a3b: Merge "Making shader compilation errors throw a Java exception."

* commit '87a36a3b291e78a612d2d08c14b245ff970080e0':
Making shader compilation errors throw a Java exception.
d32b7491f2f3ad65fc274e92c16f8e2213861d7a 11-Feb-2012 Alex Sakhartchouk <alexst@google.com> Merge "Making shader compilation errors throw a Java exception."
cf27eb46f97cff087ebfc5b81fe998eabe0569cf 10-Feb-2012 Jason Sams <rjsams@android.com> Start implementing SurfaceTexture streaming into RS allocations.

Change-Id: I561fbb63c63371ea59047c07fb2d68c21d16e76b

Conflicts:

libs/rs/rsAllocation.h
sdAllocation.cpp
sdAllocation.h
sdCore.cpp
sdShader.cpp
sdShaderCache.h
7510992812e32c83114b98ea47fbb39876bdc223 08-Feb-2012 Alex Sakhartchouk <alexst@google.com> Making shader compilation errors throw a Java exception.

Change-Id: I612142b6fe1b75eab62e89950c3bea6f326cb730
sdShader.cpp
sdShaderCache.cpp
d3e4b744900ed6666f4dd3182ad5443be26c96dd 08-Feb-2012 Jason Sams <jsams@google.com> Merge commit 'bdeec118' into manualmerge

Conflicts:
libs/rs/rsThreadIO.h

Change-Id: I7f448996a86f41188b47ec3dc353c364692e8bf2
5f27d6fb0b0b9184ba9820c629fc1354a635e515 08-Feb-2012 Jason Sams <rjsams@android.com> Implement RS VSync on new vsync infrastructure.

Change-Id: I662159a086a56e28732dd64a3a3cb30f8d4b72b1

Replace lockless fifo from server to client with sockets.

Change-Id: I99a4ab4f18496c0fbac96ee7b8099797af4712ea
sdGL.cpp
ad4a428a86937b5168764c9377331f55f920d973 30-Jan-2012 Mathias Agopian <mathias@google.com> am dfbcee6c: fix build

* commit 'dfbcee6cb8ab9cf89b9052eb7498e453afdb1463':
fix build
917027582745bbf27335a70360a4e6da51961978 30-Jan-2012 Mathias Agopian <mathias@google.com> fix build

Change-Id: Ibdc45f1794e7ef60dc1ca0ff85c5cc4dff84c3fa
sdGL.cpp
sdGL.h
sdShader.cpp
4b1872bad35af3d478f727367362f8dc500448ff 26-Jan-2012 Stephen Hines <srhines@google.com> am caaac348: Merge "Fix bugs with unsigned rsAtomicCas/Max/Min."

* commit 'caaac348ed163f59cf1b8185bb14137050c18e7e':
Fix bugs with unsigned rsAtomicCas/Max/Min.
fa54999eb657180fe82b556c75761f37fed599dc 26-Jan-2012 Stephen Hines <srhines@google.com> Fix bugs with unsigned rsAtomicCas/Max/Min.

BUG=5888007

rsAtomicMax/Min did not have proper semantics for unsigned integers. They were
always using signed comparisons. rsAtomicCas had the wrong function signature
in our math library, leading to no way to properly link/execute it.

Change-Id: I336cdd8cd9f2d8093f12e101b55b2797515f039b
sdRuntimeMath.cpp
2b5797f50f99b0b7f81b9923b0bee96d13ffd19d 13-Jan-2012 Stephen Hines <srhines@google.com> am d36f7d24: Merge "Add support for new root.expand() calls."

* commit 'd36f7d249591559e713a8ca45c6d452c14c94895':
Add support for new root.expand() calls.
41e373d91a60043afa0f9abd026218b49cbc1201 13-Jan-2012 Jason Sams <jsams@google.com> Start implementing SurfaceTexture streaming into RS allocations.

Change-Id: I561fbb63c63371ea59047c07fb2d68c21d16e76b
sdAllocation.cpp
sdAllocation.h
sdCore.cpp
sdShader.cpp
sdShaderCache.h
ee7aa2e3900f807ee41bb9735da86b3eb4cc2e70 13-Jan-2012 Stephen Hines <srhines@google.com> Add support for new root.expand() calls.

BUG=5444144

Change-Id: I9ab942561a03e9f837a3199457259bb3e07ac76f
sdBcc.cpp
sdCore.cpp
sdCore.h
9719bd4a0187c400ba868712612fe66da4635aac 12-Jan-2012 Jason Sams <jsams@google.com> Plumbing for RS priority.

Change-Id: Ibddfd40407fd6d24ac829a76a9a1e2047c48c5fd
sdCore.cpp
sdCore.h
sdGL.cpp
sdGL.h
028f20a6e5e883b7308298273b9aa517e5c890f5 11-Jan-2012 Jason Sams <jsams@google.com> Fix LOGE.

Change-Id: I533bedf0827edb27e0aead78e2bb3389be85acd8
sdPath.cpp
da042e76b482e026592c42e5ee57b86413b9c57a 10-Jan-2012 Alex Sakhartchouk <alexst@google.com> Merge "Adding ability to bind constants to shaders." into graphics-dev
a720a144508edd91e4790b23eadd6cd270368df9 10-Jan-2012 Alex Sakhartchouk <alexst@google.com> Adding ability to bind constants to shaders.

Change-Id: I63b664fd2fec7e0c8157b7185782192132222f1a
sdRuntimeStubs.cpp
03f1910431433f3a35f1445aa0bba2b00417f0cc 10-Jan-2012 Steve Block <steveblock@google.com> resolved conflicts for merge of 08289f55 to graphics-dev

Change-Id: I2c95cd461e364cbeae7ffbaea7ad5c87713d7df7
af12ac6a08651464f8d823add667c706f993b587 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/157220

Bug: 5449033
Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
sdAllocation.cpp
sdBcc.cpp
sdCore.cpp
sdGL.cpp
sdMeshObj.cpp
sdProgramStore.cpp
sdRuntimeMath.cpp
sdRuntimeStubs.cpp
sdShader.cpp
sdShaderCache.cpp
c0a65425f8eb3573b1abd2a48292ca953c0a8590 05-Jan-2012 Alex Sakhartchouk <alexst@google.com> Cleanup based on comments.

Change-Id: I2d261b3cd240b890001dcc7d2a849cfdc34328bf
sdMesh.cpp
sdMeshObj.cpp
sdMeshObj.h
sdProgramRaster.cpp
sdProgramStore.cpp
sdShader.cpp
611c6b286747b0893c4248f0cc83d339d9d7858a 05-Jan-2012 Glenn Kasten <gkasten@google.com> am a8719ad9: Merge "Use the standard CC_LIKELY and CC_UNLIKELY macros"

* commit 'a8719ad9d53d3fe51e8031b2471e9558b8ef727f':
Use the standard CC_LIKELY and CC_UNLIKELY macros
84f304fd48e8314139279c7b5f8c3fdbc8a8bda2 05-Jan-2012 Glenn Kasten <gkasten@google.com> Merge "Use the standard CC_LIKELY and CC_UNLIKELY macros"
72f4f4cec34098e179ad5d257b07df3a514fcae2 15-Dec-2011 Glenn Kasten <gkasten@google.com> Use the standard CC_LIKELY and CC_UNLIKELY macros

Several source files privately defined macros LIKELY and UNLIKELY in terms
of __builtin_expect. But <cutils/compiler.h> already has CC_LIKELY and
CC_UNLIKELY which are intended for this purpose. So rename the private
uses to use the standard names.

In addition, AudioFlinger was relying on the macro expanding to extra ( ).

Change-Id: I2494e087a0c0cac0ac998335f5e9c8ad02955873
sdRuntimeMath.cpp
e460316daefd1f73bc19f12fa8765ec903ad9051 05-Jan-2012 Alex Sakhartchouk <alexst@google.com> Merge "Adding better error behavior to RS" into graphics-dev
8791e379223be8841c59216e550adbe2e3479343 05-Jan-2012 Alex Sakhartchouk <alexst@google.com> Merge "Adding RS comments, cleaning up the gl implementation with new Element hal." into graphics-dev
c7cb70396934adcb3fd620d147dd5ea1c3ff8def 04-Jan-2012 Steve Block <steveblock@google.com> am 41891aea: Merge "Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE"

* commit '41891aeaf4e6e4006ae3087fa537786e9ec8caa4':
Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE
4a48244edc93b50bb9af35f7ec03825c8f7471c9 20-Dec-2011 Steve Block <steveblock@google.com> Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/156016

Bug: 5449033
Change-Id: I4c4e33bb9df3e39e11cd985e193e6fbab4635298
sdRuntimeStubs.cpp
25a59d051a218bd608b005a149509464b3e6d4f0 29-Dec-2011 Alex Sakhartchouk <alexst@google.com> Adding better error behavior to RS

Change-Id: Iea1cc76793f8978d60575404d7b1c5145e268d6e
sdMeshObj.cpp
sdProgramRaster.cpp
4a43e3ea8a0328c56ace0af1869b4c8c781a7b26 28-Dec-2011 Alex Sakhartchouk <alexst@google.com> Adding RS comments, cleaning up the gl implementation with new Element hal.

Change-Id: I74de1e8248a73a45a39976e6027dac2626d580e9
sdMeshObj.cpp
sdShader.cpp
ade1e2229d95f3e258b0dd81298be23aa17dd70d 27-Nov-2011 Logan Chien <loganchien@google.com> am 12be3fff: Remove dead code.

* commit '12be3fff12e5c55193867f49e13169b9400b2997':
Remove dead code.
1415ca46b289604fd727310e4f6ae3c8c68276c9 27-Nov-2011 Logan Chien <loganchien@google.com> Remove dead code.

Change-Id: I2838a40026291e7345b07911af3ba17278b63ffe
sdBcc.cpp
179e9a457095fea4c9e6d366c269754b882d05dd 24-Nov-2011 Jason Sams <jsams@google.com> Private API to support MFF transition.

Change-Id: I17cc9dc46eb37e4397428ba64305b0fd8ed3ae81
sdAllocation.cpp
9e0afb5a2b3e476c42a373e7cd89cef4a34f8195 31-Oct-2011 Jason Sams <rjsams@android.com> Path rendering

Change-Id: I5379a676c9ec6a9b25f21bc1e050053f27e411dd
sdCore.cpp
sdPath.cpp
sdPath.h
sdRuntimeStubs.cpp
6598201f1c4f409defac9a5af789fb53a7cc00f8 20-Oct-2011 Steve Block <steveblock@google.com> Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/143865

Bug: 5449033
Change-Id: I0122812ed6ff6f5b59fe4a43ab8bff0577adde0a
sdAllocation.cpp
sdBcc.cpp
sdCore.cpp
sdGL.cpp
sdProgram.cpp
sdShader.cpp
sdShaderCache.cpp
sdVertexArray.cpp
064aa7ed76db9564b041afcd4b75da5b3d12faba 18-Oct-2011 Alex Sakhartchouk <alexst@google.com> Remove ObjBaseRef from the hal struct

Change-Id: Idcac14ecfdd4d06a0f54bf50e3b9657be62e6638
sdFrameBuffer.cpp
sdMeshObj.cpp
sdProgram.cpp
sdShader.cpp
96cd1361e25f0dab881aa416d206fc4574dc602e 13-Oct-2011 Jason Sams <rjsams@android.com> Fix bug with 1D arrays and threading.
Some elements got launched multiple times.

Change-Id: Icb257019df591a5d9525867c8ef8d18ef7d4cde5
sdBcc.cpp
70415115431f3c52e1da44ba838962ff3b22eb69 12-Oct-2011 Jason Sams <rjsams@android.com> Improve rsForEach overhead.

Change-Id: Iaabef7bb573233ef7c5756077f840ee933ee0c39

fix spacing, reduce rsForEach overhead about 50%
sdBcc.cpp
sdCore.cpp
sdCore.h
4ff21865d7e6c24adf8e4159783c848530ecc4a2 05-Oct-2011 Jason Sams <rjsams@android.com> Fix crash running old HC apps.

Change-Id: If7206de334868cb40eb8e5dd04fbe8c70bc1d614
sdBcc.cpp
86d842a703da80b40eae5a482d4e26d8b2aae048 21-Sep-2011 Jason Sams <rjsams@android.com> Cleanup RS logs
Reduce the startup/shutdown info and format the logs
in a consistent manner.

Change-Id: I4592cd9fcf7e2920010d84c7137137262cdc73b9
sdCore.cpp
sdGL.cpp
2382aba4a55c6ae74789c478eead8fbd96593321 14-Sep-2011 Jason Sams <rjsams@android.com> Add RS watchdog.

Change-Id: I4c912beb84fa8a37ada0088049f7776132e994b6
sdAllocation.cpp
sdFrameBufferObj.cpp
sdGL.cpp
sdGL.h
sdMeshObj.cpp
sdProgramRaster.cpp
sdProgramStore.cpp
sdShader.cpp
4ee16ffbd9d1d72e1757c9b26715597fdc044117 01-Sep-2011 Stephen Hines <srhines@google.com> Call .rs.dtor() when tearing down Scripts.

BUG=5186750

This allows us to properly reference count any globals (static or extern) that
need to potentially be cleaned up.

Change-Id: I03d2c38c1e7a4ca96c40003d2eeecb6f395d5835
sdBcc.cpp
sdBcc.h
sdCore.cpp
3815badf95a7dca8aa278e3e12f07a3924a82319 19-Aug-2011 Stephen Hines <srhines@google.com> Issue proper parameters to root() calls for RS.

BUG=5076887

Change-Id: Ic0ce9d45ee20a99add4c780233c0804d05a55e96
sdBcc.cpp
sdCore.cpp
sdCore.h
451cf2e16555c96eaaf9d8180e29dd97a5d6cbd7 17-Aug-2011 Jason Sams <rjsams@android.com> Add structure to pack params for forEach.
This allows the driver to not pass all the sub-params.

Change-Id: I9728a7bb39893f49193a55155994ede0400cb7a6
sdBcc.cpp
319680d6280bd8eb1eeecb6dfb8074dc42aaeec7 09-Aug-2011 Stephen Hines <srhines@google.com> Merge "Migrate perf-critical functions away from librs."
1e5149f5cd3e75a010b58b985b1151d955d227d1 09-Aug-2011 Stephen Hines <srhines@google.com> Migrate perf-critical functions away from librs.

BUG=3497315

Change-Id: Ieaa0d64933767d422aa62740d72b31042dcd4a2f
sdRuntimeStubs.cpp
b2baef7a8de3aa06479eed6307b5d1fc4bf8383d 08-Aug-2011 Alex Sakhartchouk <alexst@google.com> Merge "Fixing rs crash when no texture is bound."
ba157304ce99d212403898b055998e6da7a20e9b 06-Aug-2011 Alex Sakhartchouk <alexst@google.com> Fixing rs crash when no texture is bound.

Change-Id: I2c15106f50de995c63691f27e2c4d89dbffc758e
sdProgram.cpp
sdShader.cpp
sdShader.h
242a264cb704449ab0349a0b65eb8bc3a6a29a96 05-Aug-2011 Stephen Hines <srhines@google.com> Merge "Start using bcinfo components within librs."
cbb0b8aceedb9146ba901cba1fbd6d1e9ca88f51 02-Aug-2011 Stephen Hines <srhines@google.com> Start using bcinfo components within librs.

BUG=4942491

Change-Id: I3a46783511c4954bac9eadbbbefe5abf85498c16
sdBcc.cpp
c40ad9ae72f335e035d0881a2ee7ebf0352cfc40 30-Jul-2011 Logan Chien <loganchien@google.com> Finish the refactor work of bccPrepareExecutable

Rename bccPrepareExecutableEx to bccPrepareExecutable.
(These functions are the same, and we will remove
bccPrepareExecutableEx several commits later.)

Change-Id: I519130bb3b731bf927cb92924f355d7d1ea0242c
sdBcc.cpp
c500e74d0848b721bf01cf0ab344a6adb035c312 25-Jul-2011 Jason Sams <rjsams@android.com> Add size param to rsForEach
bug 5074640


Change-Id: I395bd8b295beacc979681ccdd3451d9d6cc3d672
sdRuntimeStubs.cpp
689821f178503af951a3d9dd558ef8eace6537cd 19-Jul-2011 Stephen Hines <srhines@google.com> Extract BC metadata using a single call.

BUG=4278636

Change-Id: Idc056c4fa50240aadbc81d300fbed759c5a187cf
sdBcc.cpp
cc24af6ed02e23d1483097add12d0f20944e7492 13-Jul-2011 Jason Sams <rjsams@android.com> Merge "Add slot number to forEach hal."
35e429ebf817130d8590d11d441a77aa697bd7d4 13-Jul-2011 Jason Sams <rjsams@android.com> Add slot number to forEach hal.

Change-Id: I0f2992d5f4128422d07f897b335c219cc7f1d02c
sdBcc.cpp
sdBcc.h
abfaab8983d9727d3d5ca34e2a0ff3e80ba2eb24 11-Jul-2011 Logan Chien <loganchien@google.com> Use resource entry name instead of mangled name.

Change-Id: I833fa1b529fe505ce20ede12b7f4b5952a6ac1f0
sdBcc.cpp
585f554211bd9945ef84878d89bfc9b4b1c0bd94 10-Jul-2011 Logan Chien <loganchien@google.com> Fix typo: mFieldCount -> mPragmaCount.

Change-Id: I081a521c13a78bc5ec1bf9faecb066bed5ca8ab4
sdBcc.cpp
67605d7185c384469952b10d75c3d201b19cc07f 07-Jul-2011 Mathias Agopian <mathias@google.com> Fix EGLUtils::selectConfigForPixelFormat()

- renderscript now calls EGL directly instead of relying on this function
- surfaceflinger also does its own EGLConfig selection
- selectConfigForPixelFormat stays for legacy reason (many tests use it) but
it now only tries to match the alpha channel of the format rather than the
format itself.

this will allow implementations who don't support the exact formats
defined in the HAL to work properly.

Bug: 4998223

Change-Id: Ic664dfc14d5072a514b6f77a115d1521bfc1578f
sdGL.cpp
02932bf86982eb1220033bbb2227f072ac9cec0a 24-Jun-2011 Stephen Hines <srhines@google.com> Move divsi3, modsi3, udivsi3, umodsi3 to libbcc.

BUG=3435530

Change-Id: I4e90a6cdf5af534f93d83093ea31b1defd1e896c
sdRuntimeStubs.cpp
0a44ab45c739f00f457874418e7384492e4df979 24-Jun-2011 Stephen Hines <srhines@google.com> Remove verbose logging, update test app and docs.

Change-Id: I6659c5e51a747011239128dc2682a5d78aecfa26
sdAllocation.cpp
e1eb6156604d0a4cc4b7e7353aa2fc8dc4d8eade 22-Jun-2011 Jason Sams <rjsams@android.com> First cut of atomics for renderscript.

Change-Id: Iefc0228d802e6f5348ae787553c9252fb90ba110

update atomic patch.

Change-Id: Idd0596439c092f570b6b226e9a9c7102ddffe88e
sdRuntimeMath.cpp
c33e6903d25b9cd9d88f45c7320534a5a05c9064 21-Jun-2011 Jason Sams <rjsams@android.com> First cut at RSTextureView.

Change-Id: I920950f33079b6bb7e48bb8970201ab9737bb021
sdGL.cpp
a94952436aeb251f587c1bccdf94c7f75285dfe2 16-Jun-2011 Alex Sakhartchouk <alexst@google.com> Adding ability to read back fbo data to renderscript

Change-Id: Ie684c26cbcde22f2483b43415dfc39a3de22c5a1
sdAllocation.cpp
sdAllocation.h
sdFrameBuffer.cpp
sdFrameBufferObj.cpp
sdFrameBufferObj.h
sdGL.cpp
sdGL.h
sdMeshObj.cpp
sdRuntimeStubs.cpp
74a827988567a9d65954bb0d825a3ba4a97e2947 14-Jun-2011 Alex Sakhartchouk <alexst@google.com> Allocation copy functions.

Change-Id: Idce6d44a4f4bb2e399284a40c0f90dc1bff912fd
sdAllocation.cpp
sdAllocation.h
sdCore.cpp
sdRuntimeStubs.cpp
b81a0eb8180791e4eaab1253b59fa8bd562b046b 03-Jun-2011 Alex Sakhartchouk <alexst@google.com> More work to make libRS buildable on the host.

Change-Id: I239585ef7c1334f7fc19fa6423535dea7b9a753f
sdCore.cpp
sdCore.h
a614ae175bbf97201b5e18984d814a1d3e86faa8 27-May-2011 Jason Sams <rjsams@android.com> Cleaup of rsComponent to remove GL types.

Change-Id: I9f82bafe42f5fb30335b15f38eb251dc1ec62e80
sdAllocation.cpp
sdAllocation.h
sdMeshObj.cpp
eb4fe18dd88634330f9566cbb9e785d8c7ec5813 27-May-2011 Jason Sams <rjsams@android.com> Start splitting allocation into hal and core.

Change-Id: Ic506abb0469238cb0471eb1401cfcb7b2fbbe4bb
sdAllocation.cpp
sdAllocation.h
sdCore.cpp
sdFrameBuffer.cpp
sdMeshObj.cpp
sdProgram.cpp
sdShader.cpp
7257c7ee4b66f00c43d9235f3ac600061ae79968 17-May-2011 Alex Sakhartchouk <alexst@google.com> Preparing libRS for for compilation on host.

Change-Id: I851add79831331c8a8b20dcccdb0817f8ad0c359
sdGL.cpp
sdGL.h
da6d34a5a6ece8c30d20673b9b6ff07d8c91768b 13-May-2011 Alex Sakhartchouk <alexst@google.com> Moves fbo support in renderscript behind the hal

Change-Id: I26a857586f5f0b47df4c1f4589d2023e70481ec7
sdCore.cpp
sdFrameBuffer.cpp
sdFrameBuffer.h
c19ff0177a7a0dadfc01b1990f822354fdc95991 06-May-2011 Alex Sakhartchouk <alexst@google.com> rsLib cleanup

Change-Id: Ifb66059338e3435ac79435296a650c44699921aa
sdGL.cpp
sdGL.h
sdMeshObj.cpp
sdShader.cpp
sdShaderCache.cpp
sdVertexArray.cpp
sdVertexArray.h
7f126c78a107257090c6675ea40ffac41516a9dc 06-May-2011 Alex Sakhartchouk <alexst@google.com> Moving samplers behind the hal.

Change-Id: I494e5a9d2b599d07b985328b346f1f10ae4972e1
sdCore.cpp
sdSampler.cpp
sdSampler.h
sdShader.cpp
sdShader.h
a04e30dbb5ab11592b03666bb3d102070759c58e 30-Apr-2011 Alex Sakhartchouk <alexst@google.com> Moving renderscript GL code into the HAL
This change affects
- shaders
- meshes
- fonts
- quad rendering

Change-Id: I2a53acb4cd1fa8f4c6e67668f6ee969f3d7f7aa1
sdCore.cpp
sdGL.cpp
sdGL.h
sdMesh.cpp
sdMesh.h
sdMeshObj.cpp
sdMeshObj.h
sdProgram.cpp
sdProgramFragment.h
sdProgramVertex.h
sdRuntimeMath.cpp
sdRuntimeStubs.cpp
sdShader.cpp
sdShader.h
sdShaderCache.cpp
sdShaderCache.h
sdVertexArray.cpp
sdVertexArray.h
b8fa756a727b7816ed4a6c9f9dbadb548f7fa80f 22-Apr-2011 Jason Sams <rjsams@android.com> Fix rsRand(float, float)

Change-Id: I553d83e1e962ad34aacbe6572d47ff25c3d50060
sdRuntimeMath.cpp
f736d02817f64b75b84b7456716c4a31c687b87e 22-Apr-2011 Jason Sams <rjsams@android.com> Merge "Move TLS behind hal."
83c451a4ef4388e002482e383d488ca9b7b7600d 21-Apr-2011 Jason Sams <rjsams@android.com> Move TLS behind hal.

Change-Id: I9e84acb3736bc98fa5fb0720bddb13a030285319
sdBcc.cpp
sdCore.cpp
sdCore.h
sdRuntimeStubs.cpp
6ea39c9f1e2eda1194a56380291069dcd9d65613 21-Apr-2011 Stephen Hines <srhines@google.com> Merge "Reduce verbosity of Renderscript logging."
2b3ce1d5812fb3ea02d28ae75600d8bc6689acaa 21-Apr-2011 Jason Sams <rjsams@android.com> Remove accidental logging.

Change-Id: I59073a620c312485a0631069856fbd7ca40b4cbd
sdRuntimeStubs.cpp
9db7fe256cf6b77eafafb42d024128701faee6bb 21-Apr-2011 Stephen Hines <srhines@google.com> Reduce verbosity of Renderscript logging.

Change-Id: I0e20274e01b4068f90ef6ddd6ed7837d42f35813
sdGL.cpp
87fe59a2f4d4c74539bfa0bff5f9a7e320e99415 21-Apr-2011 Jason Sams <rjsams@android.com> Create runtime stubs for compute driver.

Change-Id: I8e0250a642844a2ad3ff6efc38e385445b7da032
sdBcc.cpp
sdBcc.h
sdCore.cpp
sdCore.h
sdGL.cpp
sdRuntime.h
sdRuntimeMath.cpp
sdRuntimeStubs.cpp
eed1b156ca3e439f3d178ce99a4fa736527b15f9 11-Apr-2011 Stephen Hines <srhines@google.com> Fix broken assert (if input allocation is NULL).

Change-Id: If02e86eee4ec059402edd6f8c408fd89b248bc80
sdBcc.cpp
4b3de47071d875faaa7d419d050a464b09538797 07-Apr-2011 Jason Sams <rjsams@android.com> Migrate most GL from context to driver.

Change-Id: I5cba3a6e879d2e9332fc667a1061a5312fcf14ba
sdCore.cpp
sdCore.h
sdGL.cpp
sdGL.h
721acc495b859c6d884725a4f9b5523583dd11c7 06-Apr-2011 Jason Sams <rjsams@android.com> Seperate ProgramRaster.
Cleanup ProgramRaster and ProgramStore creation.

Change-Id: If25ea74355238d405340f0ccfb8117ad6e1307b7
sdCore.cpp
sdProgramRaster.cpp
sdProgramRaster.h
8feea4e0dec48ea03bd6d32706d058b86dddc5ba 18-Mar-2011 Jason Sams <rjsams@android.com> Seperate GL from RS program store.

Change-Id: I0eae9c0699845af8e8611b065e70738cc9f2b15c
sdBcc.h
sdCore.cpp
sdProgramStore.cpp
sdProgramStore.h
8d43eafdd2684b7bcb2554e65676dc914b7eabd7 25-Mar-2011 Stephen Hines <srhines@google.com> Properly handle script teardown.

If libbcc optimizes away a global variable, we need to make sure that
RenderScript's ~Context() doesn't attempt to clear away the slot's NULL
pointer that denotes this.

Change-Id: I77d0f740ab333338e53db481e4a3eca338aba411
sdBcc.cpp
6f6bf8ee67db7c0741b57f194bbfd957981a4df5 24-Mar-2011 Stephen Hines <srhines@google.com> Revert "Fix cleanup bug clearing script references."

This change was actually incorrect and causes crashes in ~Context.

This reverts commit 88728ecaeab1358e1748cbbf6ed954fd9a960692.
sdBcc.cpp
e2170445fd465db2bce1c38586c0d6318f0a65f3 19-Mar-2011 Jason Sams <rjsams@android.com> Fix cleanup bug clearing script references.

Change-Id: I693dd7523658a32837764854c12a6b690e8fb7c6
sdBcc.cpp
2cfe51e7a9eef3dec091ce7c15d2a5a2216e9d3e 19-Mar-2011 Jason Sams <rjsams@android.com> Fix bug with hal init uninitialized var.

Change-Id: I172bb65b57653e32697f2c2df941beb0aaf65603
sdCore.cpp
cdfdb8f2cdf4668c476cac842212892b2505ff3f 18-Mar-2011 Jason Sams <rjsams@android.com> Migrate thread launch to driver.

Change-Id: If182c524cceb327547640f22f956856d291d1787
sdBcc.cpp
sdBcc.h
sdCore.cpp
sdCore.h
bad807405b2b9764372af1ad24bcfd4fb1f33d8e 17-Mar-2011 Jason Sams <rjsams@android.com> Start seperating out RS compute implementation. Create hal
layer to seperate from runtime.

Change-Id: Idf5c1261be4131690d25c15948e98324e979b4f9
sdBcc.cpp
sdBcc.h
sdCore.cpp
sdCore.h