History log of /frameworks/rs/driver/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b9675775b030b187b8528cba2d8e0e5c0a7bf8f7 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
untime/ll32/allocation.ll
0dbb70da81c442b85bfb4adf64793941afb93a23 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
3cd8f59d97123043dfec314c87db49f0b762b90d 15-Oct-2014 Tim Murray <timmurray@google.com> Merge "Fix vload/vstore." into lmp-mr1-dev
a1795f6ba2ced93b6811fc9c3e2d0e579af196d6 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
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
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
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
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
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
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
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
47211dca5b2fc1aa5680ddebe5c4270c08c06e5d 21-Aug-2014 Tim Murray <timmurray@google.com> Fix GetAllocation in 64-bit.

bug 16846318

Change-Id: I639601939c3715a74153fd8d5d281e89fca8c463
sdRuntimeStubs.cpp
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
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
64147ebf4f0b1c23d2caf2cf7c1675d27de97d99 27-Jul-2014 Tim Murray <timmurray@google.com> Update time_t definition for 64-bit.

bug 16846318

Change-Id: I85918485b0bd446147defeee01b57a58b4b0620c
sdRuntimeStubs.cpp
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
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
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
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
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