History log of /frameworks/rs/rsContext.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5fccd07875424d16622e535c3931601d1aac944c 17-May-2017 Miao Wang <miaowang@google.com> Remove OVERRIDE_RS_DRIVER from libRS_internal

- As a system lib, libRS_internal should not be conditionally compiled
based on device specific config.
- Remove OVERRIDE_RS_DRIVER and provide an API for HIDL implementation
to specify the vendor driver to use.

Bug: 37035983
Test: mm
Test: manually push to sailfish & angler, GPU driver loads successfully
and tests are passing.

Change-Id: I2ad124f89f2fee5818531ba98fb2778c8eaeaddb
Merged-In: I2ad124f89f2fee5818531ba98fb2778c8eaeaddb
/frameworks/rs/rsContext.cpp
0445e2ae13078ac8433f71c32080fe33182f0230 18-May-2017 Miao Wang <miaowang@google.com> Release mutex_lock if mIO.init failed during ContextCreate.

Bug: 38355404
Test: mm and boot sailfish
Change-Id: I0c5b2dfd6572edeccd929db0edc8b51e854896f0
/frameworks/rs/rsContext.cpp
520ddb785d32fef23039aa1b751ab40dc0d98eeb 16-May-2017 Miao Wang <miaowang@google.com> Only try to join the pthread when it is successfully initialized.

- When Context::initContext fail to initialize a pthread, it tries to
join a invalid pthread in Context::~Context(), in certain
circumstances.
- This CL uses the Context::mRunning as an indicator of whether the
pthread is successfully initialized, and only join it when mRunning is
true.

Bug: 38322462
Test: mm, boot sailfish, and CTS tests pass.
Change-Id: I44525907b213a83a0654c731877c3277de249f24
/frameworks/rs/rsContext.cpp
9ed983b04aa6262a186f17c247115bc8e0b4ecbb 18-Apr-2017 Yang Ni <yangni@google.com> Handle socket creation error in context init

Bug: 27870945

Fail context creation, if the IO Fifo fails to create due to socket
creation error, which was never checked.

Test: CTS on Angler and x86_64 emulator
Change-Id: I61aa973ccd0ef4bd846f891c47c2df28899bfd07
(cherry picked from commit 436444f18d75827d1040ccfdaad1acae075ee630)
/frameworks/rs/rsContext.cpp
025a1f48df53a3bd13dd3a5d765a7a78de3a1bf5 07-Apr-2017 Miao Wang <miaowang@google.com> Break libgui and libui dependencies.

- Use EGL sync fence instead of gui/DisplayEventReceiver.
- Remove obselete inclusion of ui/PixelFormat.h and gui/Surface.h.
- Remove dead code using SurfaceTexture in rsdAllocation.cpp, as
drv->surfaceTexture was never initialized.

Bug: 34396220
Bug: 37067080

Test: mm, boot Angler, all CTS tests pass, and example RS graphic apps
all still fine.

Change-Id: I5369c382a9815095301660735de61573e348a1dc
/frameworks/rs/rsContext.cpp
63e14e5542f9d77715e258459b1e6da9ba196e14 16-Mar-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Set the default cachedir during context create."
10ad0772c14287f16131eed11ae3fafcd2c4a55b 15-Mar-2017 Miao Wang <miaowang@google.com> Set the default cachedir during context create.

- Use JNI reflection to access RenderScriptCacheDir.mCacheDir, and set
it immediately after the context is created.
- Java or C++ APIs could still call ContextSetCacheDir to override it.
- The JNI query is guarded by std::unique_lock to make sure that the
current thread is the only one attached to JNI.
- This change ensures that vendors could always get a valid code cache
dir even with support lib path, as RenderScriptCacheDir.mCacheDir is
set by ActivityThread.java when launching the application, regardless
of using RenderScript or not.

Bug: 34396220
Test: mm, CTS tests pass, tested with RSTest_CompatLib to make sure that
support lib path is covered.

Change-Id: I542ed2fe03e34b72e85398271b748c0053a35ae3
/frameworks/rs/rsContext.cpp
59f6142d7657e43b4d21e077a28387431db02edf 14-Mar-2017 Miao Wang <miaowang@google.com> Remove libgui and libui dependencies for vendor libs.

- This CL removes dependencies on libgui, libui and other remaining
dependences, if build with RS_VENDOR_LIB defined.
- We cannot remove the dependencies for platform RenderScript CPU
fallback, because of the legacy graphics APIs.
- Vendor drivers will be built without graphics APIs, the reference
build file will be posted in another CL.

Bug: 34396220
Test: mm, CTS test pass with the vendor libs.
Change-Id: If90b600a58d0f81488f56a1e21ca332f1a235162
/frameworks/rs/rsContext.cpp
82e135c4bbe18855d8ed02632bb074f8da0b96e0 28-Feb-2017 Miao Wang <miaowang@google.com> Remove libutils.so dependency from libRSDriver, libRSCpuRef, and most
parts of libRS_internal.

NOTE: we're resolving dependencies to provide a model for vendors.
For us, all this code is above the HAL, thus the dependencies
are acceptable; whereas for vendors, their equivalent of this code is
below the HAL, and so the dependencies are not acceptable.

This CL resolves the libutils dependency by:
- Implement the timings functions in android::renderscript namespace
using NDK APIs, instead of using libutils counterparts.
- Replace android::Vector and android::String8 by std::vector and
std::string.
- PROPERTY_VALUE_MAX is replaced as PROP_VALUE_MAX.

This CL didn't resolve the libutils dependency of rsFont.cpp and
rsDebugger.cpp in libRS_internal:
The dependent functionality in rsDebugHelper.h is off by default, and
only intended for use during development; and rsFont.cpp is part of
graphics API which is not implemented below the HAL and is not used as
a model by vendors.

Additionally, this CL fixed the bug that mNodes was sorted in a
decreasing order. Nodes in ScriptGroup should be executed in
ascending order. The bad sort was only for support lib; so there was a
previously-unknown bug in support lib implementation of ScriptGroup.

Background:
libutils contains a collection of things like Vector, String8,
CallStack. It served the purpose similar to a STL library, when there
was no stable STL implementation available in Android. And most
importantly, it is not part of NDK.
Support lib used to use our own implementations of android::Vector and
android::String8, because it can only depend on NDK, similarly for the
timing related functions.
As part of the Treble requirements, native RS, including vendor version
libRS_internal, libRSDriver, libRSCpuRef could only depend on NDK
too. So we need to break the dependency on libutils. And since we now
have reasonable support of STLs, we should use that instead.

Bug: 34396220
Test: mm, and all CTS tests pass on Bullhead;
RsTest and RSTest_CompatLib (both native and compat path) also pass.
Change-Id: Ib9a37d16235c1dcd0f5bae3b95c374e394483c91
/frameworks/rs/rsContext.cpp
2a61168a777ee434ce2c28945aa74f6a6bcf2820 28-Feb-2017 Miao Wang <miaowang@google.com> Remove libcutils dependency.

- Implement property_get using __system_property_get, remove
dependencies on cutils/properties.h.
- remove rsCompatibilityLib.cpp since it only contains propery_get, and
it is now in rsCppUtils.cpp.
- Disable ATRACE. The systrace is current done in Java level. If we
want to do it in the driver, we need to have our own implementation
similar to native/utils/trace.cc
- Remove CC_LIKELY macro.

Bug: 34396220
Test: build

Change-Id: I6a6cbcfb2ca15b9d1f09b9ce0579d39fdbe98727
/frameworks/rs/rsContext.cpp
62237219e567b9f972c86e7ca4e96f9b3d5ad4de 28-Feb-2017 Miao Wang <miaowang@google.com> Remove RS_SERVER macros and references to unused headers.

- The RS_SERVER macros were intended to have a version of RenderScript
running on the desktop. It has not fully worked for a very long time.

Bug: 35473587
Test: build and CTS tests pass
Change-Id: I0da3fc9d4601951442384d05f9dbecaeddeff8cc
/frameworks/rs/rsContext.cpp
dd4c8f195233eeebc55c94da082da17973e6ca61 21-Jan-2017 Miao Wang <miaowang@google.com> RenderScript HIDL client-side implementation

- Client-side implementation converts RenderScript HAL (top level)
from C/C++ to HIDL
- Fallback to default CPU implementation if it could not find a
matching RS driver through HIDL.
- HIDL adaptation and Graphics fallback are handled by two
corresponding singleton classes.
- Remove HOST_STATIC version of libRS from the makefile. The host
version of libRS is not used at all, and generating build errors with
HIDL.
- Always use fallback path for RS graphics API.
- Removed reference to Device from rsContext.cpp. In our current
implementation, Device is equivalent to HIDL IDevice class.
Thus, our HIDL HAL no longer provides DeviceCreate and DeviceDestroy,
making Device no longer useful to Context.
- Wait for the debugger to attach if RS_CONTEXT_WAIT_FOR_ATTACH flag
is set. The waiting part is now moved out of the context class.

Bug: 34396220
Test: mm, all CTS tests pass on bullhead, LiveWallpaper apps using RS
graphics APIs run well.

Merged-In: I86493b11328d5d8c904cebafa99243e92dfdf6a7
Change-Id: I86493b11328d5d8c904cebafa99243e92dfdf6a7
/frameworks/rs/rsContext.cpp
a2c1b2474f31e3d134cad93001c9d115b7edb5d6 13-Dec-2016 Yang Ni <yangni@google.com> Merge "Make sure RSoV is off by default unless flag is set"
983a973fb4ccad29a1d23fd7db0f98acb61d47d7 13-Dec-2016 Yang Ni <yangni@google.com> Make sure RSoV is off by default unless flag is set

Bug: http://b/33569705

The field in the context may be left uninitialized and select RSoV
by mistake. Fixed it by always correctly initializing it to false
in the Context constructor.

Also made a fix to correctly return error on context creation and
intialization so that a client can handle a RS context creation
failure.

Test: mm
Test: boot and tested UI
Test: fast tap on build number
Test: RSTest

Change-Id: Ib40d6715004f5379521972653e8fe9011ffe771c
/frameworks/rs/rsContext.cpp
048464b9d95480f73a0897988e7e0003ad9662c1 12-Dec-2016 Yang Ni <yangni@google.com> Merge "Initial driver for RSoV (RenderScript over Vulkan/SPIR-V)"
75f0d3110b04346b901771f96ce15cdbe907278f 11-Nov-2016 Yang Ni <yangni@google.com> Initial driver for RSoV (RenderScript over Vulkan/SPIR-V)

Bug: 30964317

Supports the following:

* Allocations of 32-bit integers and floating point numbers and vectors
* Single-input single-output kernels
* Co-existence of RSoV scripts and CPU intrinsics

Added default .clang-format for driver code using Google C++ code style.

The RSoV driver is loaded, if and only if the property debug.rs.rsov is
set to non-zero.

Test: RSTest and CTS with debug.rs.rsov set to 0; and RSoVTest with
debug.rs.rsov set to 1.

Change-Id: If63370a502d499e8fc5f4bbd2e90ce84b167c331
/frameworks/rs/rsContext.cpp
11496ac131bb691edf5bdcab3029dceef5c1e4e1 16-Nov-2016 Chih-Hung Hsieh <chh@google.com> Fix google-build-using-namespace warnings in rs.

* Most files define classes in renderscript namespace.
Define them in the namespace instead of "using namespace ...".
Some files define global C++ names, and we replace
"using namespace ..." with using declarations of the required names.
* Add "NOLINT" comment to rsg_generator.c output code to suppress
such warnings.

Bug: 32670901
Test: build with WITH_TIDY=1
Change-Id: I9b0edcad3e1fb37c79927b05fd58fb1a301bdf22
/frameworks/rs/rsContext.cpp
ad6dcb206330b87c6a250e5300522e634511f573 05-Apr-2016 Yang Ni <yangni@google.com> Merge "Avoid destroying Device separately" into nyc-dev
am: ebe5b73

* commit 'ebe5b7391522d25c3994b7e0bd779df3f101b108':
Avoid destroying Device separately

Change-Id: If2ca1967d223e3941f3ec2acba1a1c21c75892af
ebe5b7391522d25c3994b7e0bd779df3f101b108 05-Apr-2016 Yang Ni <yangni@google.com> Merge "Avoid destroying Device separately" into nyc-dev
8ca49acfcc784355bd806f87701747a4c1ab9749 04-Apr-2016 Yang Ni <yangni@google.com> Avoid destroying Device separately

Bug: 27983025

Device should be destroyed inside the destructor of the associated
Context.

Change-Id: I921a89974e1174f837349a89aef9b03efa4882f5
/frameworks/rs/rsContext.cpp
0a5977d5dfdddc911e372578f3826a292c5394f9 01-Apr-2016 David Gross <dgross@google.com> Merge "Guard general reduction logging output under property "debug.rs.reduce"." into nyc-dev
am: 8ad1691

* commit '8ad1691f2e620ab6d5e9b3e61d03a205d295d056':
Guard general reduction logging output under property "debug.rs.reduce".

Change-Id: I6fbf02072505f315f1440c1ab612057e2ee499f2
06865292cd3694ea5c8278787f5ca49a301e0797 01-Apr-2016 Stephen Hines <srhines@google.com> Merge "Move gDebuggerPresent to libRS.so, and fix up driver after split." am: 0c32fa9
am: f39e0c4

* commit 'f39e0c47de86d254a00c536ad3f465586e159818':
Move gDebuggerPresent to libRS.so, and fix up driver after split.

Change-Id: Id7329177ade15f6d6301b5d5b62b7361cbb2dd85
6760f7ba7934ddd51938a8d0206fc41c2a7cb419 01-Apr-2016 David Gross <dgross@google.com> Guard general reduction logging output under property "debug.rs.reduce".

Bug: 27299475
Change-Id: I5be634fe38d20b9fe6867ad3c0c0b982442b52fd
/frameworks/rs/rsContext.cpp
98cb2d1420a22536649af2c493a58595f7c2542e 31-Mar-2016 Stephen Hines <srhines@google.com> Move gDebuggerPresent to libRS.so, and fix up driver after split.

Now that libRS.so has been split into public/private libraries, we must
also move gDebuggerPresent into the public side. lldb uses this as a
flag to indicate that the driver can proceed (after waiting for the
debugger to attach).

Change-Id: I4c8f5c466644a51d50368ac8dd91f0bfd699302d
/frameworks/rs/rsContext.cpp
545fde38d592759e30dcfe35e15cbe975a15335f 30-Mar-2016 David Gross <dgross@google.com> Merge "Multithreaded execution of certain general reduction kernels; reduction test overhaul." into nyc-dev
am: abe31c5

* commit 'abe31c581489727afa84f9b756f0d2a0f4be057e':
Multithreaded execution of certain general reduction kernels; reduction test overhaul.

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

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

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

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

Bug: 27299475
Change-Id: I58f99c21389dbae5c8e3ad85d98700dc165664bb
/frameworks/rs/rsContext.cpp
3df9bb0bd784bd9d01653de4de13af0982528a44 18-Mar-2016 Yang Ni <yangni@google.com> Separate libRS.so into public and internal libs

Bug: 26546579

libRS_internal.so is not going to be whitelisted by the NDK linker,
therefore loadable only by the internal implementation, but not any
application code.

libRS is going to contain only publicly exported functions, i.e. the
functions declared in frameworks/rs/rs.h, including those in
rsApiFuncDecl.h (generated from rs.spec).

Change-Id: Iac58695316edc9aff87ade2bac3b4a44d1a68b23
(cherry picked from commit 85d0cb112010781ad07b5979f0824b7f0ae3987e)
/frameworks/rs/rsContext.cpp
4c15425f060cd549c7c7d68bb0844671129c0fac 24-Mar-2016 Yang Ni <yangni@google.com> Merge "Separate libRS.so into public and internal libs" into nyc-dev
am: 2e252d9

* commit '2e252d9a39464d67c9e0d9d72e7aaff80c7a3939':
Separate libRS.so into public and internal libs
85d0cb112010781ad07b5979f0824b7f0ae3987e 18-Mar-2016 Yang Ni <yangni@google.com> Separate libRS.so into public and internal libs

Bug: 26546579

libRS_internal.so is not going to be whitelisted by the NDK linker,
therefore loadable only by the internal implementation, but not any
application code.

libRS is going to contain only publicly exported functions, i.e. the
functions declared in frameworks/rs/rs.h, including those in
rsApiFuncDecl.h (generated from rs.spec).

Change-Id: Iac58695316edc9aff87ade2bac3b4a44d1a68b23
/frameworks/rs/rsContext.cpp
35fb32127e431da92a3802978469b50689ef9885 02-Mar-2016 George Burgess IV <gbiv@google.com> Cleanup uses of sprintf so we can deprecate it.

Change-Id: I66a508947054bcda5b7a7b85fde83f5e5b7cd73d
/frameworks/rs/rsContext.cpp
15c1d06c654c246b8e8047f64f781add32483576 02-Sep-2015 Stephen McGroarty <stephen@codeplay.com> Derive the bcc optimization level from the input bitcode.

This patch derives the optimization level of the slang bitcode
and passes that to bcc. This patch replaces the old method, where
a flag was passed to the RenderScript context and the context
would set the optimization level accordingly.

Change-Id: Ie64a2d0125ca30da4ae7522961dca144d0457f03
Signed-off-by: Stephen McGroarty <stephen@codeplay.com>
/frameworks/rs/rsContext.cpp
e5e18cca3eefccf3a6aabd254ceb2c59f120a7d2 13-Aug-2015 Elliott Hughes <enh@google.com> Lose HAVE_ANDROID_OS in frameworks/rs.

Change-Id: Iba57869192ba9b1fde995ff0e48b7a28b2cb122f
/frameworks/rs/rsContext.cpp
f5029803ae6ce9d92d70b76e7a7cdd8d484f31ca 22-May-2015 verena beckham <verena@codeplay.com> Add a flag to the API to specify -O0 on the bcc command line.

Add a flag RS_CONTEXT_OPT_LEVEL_0 which sets a field mOptLevel in the Context
to 0 when calling bcc.
Using this flag will result in an object file that is easier to debug.

Change-Id: I9673506710cc9f34c415b694fe5d6bc7e967f1db
Signed-off-by: verena beckham <verena@codeplay.com>
/frameworks/rs/rsContext.cpp
d5164d537c84867880694327727b5f22b0a3ccbd 08-May-2015 Stephen McGroarty <stephen@codeplay.com> Added in wait for attach context flag.

Added in a small flag which is passed to the context from the Java/C++ API
which causes the context to delay execution until a debugger is a attached.
This gives time to the developer to attach a debugger to the process before
the kernel is executed.

Change-Id: I5bb8e75100436920f9e1a0f414f3b0bcf0d2b439
Signed-off-by: Stephen McGroarty <stephen@codeplay.com>
/frameworks/rs/rsContext.cpp
95fe6446da9a1b90770be72c752ce2fd26c28c91 19-May-2015 Jason Sams <jsams@google.com> Fix cache path initialization and set.

Add null terminator to strings
Return nullptr if string is not set

bug 20894664

Change-Id: I33f5d84d56f6299558f5d8713694e40afc82dd20
/frameworks/rs/rsContext.cpp
4c368af7e705f0bcb77fa99495b2e33ef20d2699 06-May-2015 Stephen Hines <srhines@google.com> Add a way to link against different driver names.

The existing linker path hard-coded "-lRSDriver" into the command line, but
this won't work for partner drivers that have a different implementation
loaded. In order to still properly handle use of the CPU driver, this needs
to change depending on whether we actually loaded an OVERRIDE_RS_DRIVER or
not.

Change-Id: I0c4a4f12f5db819b234952bc8f364ac6300f147b
/frameworks/rs/rsContext.cpp
84bf95dece5bdac4a56b6f40c160e85cc7bb9732 09-Apr-2015 Jason Sams <jsams@google.com> Fix object logging

Change-Id: I1731637412cf9e894f2b73dc32ab3370f6467160
/frameworks/rs/rsContext.cpp
ea6e0621b4716ed77635f9d81787ee7057752af1 08-Apr-2015 Tim Murray <timmurray@google.com> Add cache dir to context object.

Change-Id: Icc3220329fbaee7d453259fbe1cbf34d145d195c
/frameworks/rs/rsContext.cpp
9a6afb60b87189e1ea05d85787ca93ef57ff5412 27-Mar-2015 Miao Wang <miaowang@google.com> Fix CTS.RSCpp failures due to dispatch table entry missing in
libRS.so for __LP64__

Bug: 19953162

Change-Id: Ic240052255c8d3056c0af455a4bd2cfbbb16b17d
/frameworks/rs/rsContext.cpp
4efe3d38ee1d7b76c93a47ce6218b1f708fd4d9a 19-Mar-2015 Jason Sams <jsams@google.com> Add fatal error check

Prevent launching additional commands if the process is dying
This increases the chance the developer will get the error message
before we segfault somewhere.

Change-Id: I575906b22364c0d03859140570ca29bf8f336c01
/frameworks/rs/rsContext.cpp
0ca7cbaea8d5cf18f25d1148be75fbb6e2d86c62 11-Mar-2015 Jason Sams <jsams@google.com> Refactor hal loading

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

It also adds framework for a version handshake.

Change-Id: Iae46bf0171785c0ca1048223816b6efc60c337ad
/frameworks/rs/rsContext.cpp
b8353c5943f4038fd7f08db3d958390ce9418798 15-Feb-2015 Yang Ni <yangni@google.com> Revert "Replaced android::Vector with std::vector."

b/19148482

This reverts commit 93d6bc872b7d9fba63abfa7513d56b38d9c3d371.

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

Change-Id: I5e516976ec1d85ffe1cf388c01795348a9441982
/frameworks/rs/rsContext.cpp
f3213d7fd648da98bb3b03204eaf90f03c31926b 14-Jan-2015 Miao Wang <miaowang@google.com> Make rsContext be able to have info about the path of native libs
for 64bit Renderscript compat lib.

- Native lib path stored in Java and queried from JNI.
- Then set to Context during context creation.

Change-Id: I3c997cf849efb7b9a0b0ac35d5b62289d70e7434
/frameworks/rs/rsContext.cpp
cfaec1707f9adda0408b8995de1bbca14ab66271 23-Jan-2015 Jason Sams <jsams@google.com> Fix thread priorities.

Graphics ran a display priority. Compute should run at a lower
priority.

Change-Id: I72055eeb2b62813d3b1d17f2d8e863b178019c8f
/frameworks/rs/rsContext.cpp
97c10ec3ad02572a66605d77dcf8f471b3e7125c 11-Sep-2014 Tim Murray <timmurray@google.com> am 6e6cdbc3: Add flag to disable 64-bit driver.

* commit '6e6cdbc303bef581cfb7d1fd0902cb42c89010cc':
Add flag to disable 64-bit driver.
6e6cdbc303bef581cfb7d1fd0902cb42c89010cc 11-Sep-2014 Tim Murray <timmurray@google.com> Add flag to disable 64-bit driver.

bug 17428047

Change-Id: I888dd310449bf9079e352cb4aef31344c05b0ba8
/frameworks/rs/rsContext.cpp
61db21cef81cbc8439b34a8f1d32952339ffc190 22-Aug-2014 Stephen Hines <srhines@google.com> resolved conflicts for merge of 81cfa2c5 to lmp-dev-plus-aosp

Change-Id: Ia3a7f084693825d4e46a4864788332a7d039d38f
44bef6fba6244292b751387f3d6c31cca96c28ad 12-Aug-2014 Chris Wailes <chriswailes@google.com> Replace NULL macros with nullptr literals.

Change-Id: I918c40879aa547438f77e7d1a95fa2aa33bec398
/frameworks/rs/rsContext.cpp
569b09b34243f71dd6d81ce637a92a0a707adbe4 21-Aug-2014 Stephen Hines <srhines@google.com> am 3fa79f84: Merge changes I4c6abd96,I9bcf36d0

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

Change-Id: I4c6abd964dc4b1412ec2e592fc8e835fecfe53f6
/frameworks/rs/rsContext.cpp
2d8030adb222044345099cf1e3c7998c71c82297 25-Jul-2014 Jason Sams <jsams@google.com> Add debug.rs.debug to force debug mode.

Change-Id: Ia78cd133f2b29c36f117852157ca78c2389792d5
/frameworks/rs/rsContext.cpp
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
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
/frameworks/rs/rsContext.cpp
f4074651d4925ca2fa225fe53558168356bbea3e 26-Jun-2014 Jason Sams <jsams@google.com> am 16bbe7cb: am 1c3b028e: Merge "Pass context creation flags to driver init."

* commit '16bbe7cbad7731fed3721a4a6e6691be90d9f104':
Pass context creation flags to driver init.
416f4b6d3ee6f30b747e7cd556b28d84b0226cf3 26-Jun-2014 Jason Sams <jsams@google.com> Pass context creation flags to driver init.

Change-Id: I08806939c0fdaf87ff234a78f7f309d0d0dc548c
/frameworks/rs/rsContext.cpp
c314d0758a3713eda514a200a3879843bbaef69e 18-Apr-2014 Tim Murray <timmurray@google.com> am 05469137: am b429ee59: Merge "Add error check when init RS thread in sync mode."

* commit '05469137d372647e1de914eb0d68fa38c2c2a6ee':
Add error check when init RS thread in sync mode.
b429ee5950a4154e58c8ff9d769b3861844bc994 18-Apr-2014 Tim Murray <timmurray@google.com> Merge "Add error check when init RS thread in sync mode."
f830682a179d9e356897d3a27b23bf71923a697e 02-Apr-2014 Jason Sams <jsams@google.com> am 033786bd: am 6757e6be: Merge "Fix potential deadlock caused by RenderScript"

* commit '033786bd9fb7d7ffbf0ffdf120d8f541c59477cf':
Fix potential deadlock caused by RenderScript
bcba6f666e43c9af8d7f28e581f1cf4badb0dcdf 01-Apr-2014 Sangkyu Lee <sk82.lee@lge.com> Fix potential deadlock caused by RenderScript

If the context is created with RS_CONTEXT_SYNCHRONOUS flag,
there is no thread to join.

Unfortunately, deadlock can occur if mThreadId has a
joinable thread ID since mThreadId is uninitialized.

Change-Id: I0315237a41d3ca33f0aa691c7de1ae29d2c02b57
/frameworks/rs/rsContext.cpp
c2fa401bee3c165841677fab6826e4df635cd4ae 01-Apr-2014 Jason Sams <jsams@google.com> am 73056923: am 149cec79: Merge "Disable acceleration when the context is legacy graphics."

* commit '73056923235f220426717926b8eea31350083872':
Disable acceleration when the context is legacy graphics.
cd5f1cef34f23262f59e820a5f65ec4dad7f0bf8 31-Mar-2014 Jason Sams <jsams@google.com> Disable acceleration when the context is legacy graphics.

bug 13728313

Change-Id: I63d8a352cc6d44f1b87ba5ded7f95b297f512e92
/frameworks/rs/rsContext.cpp
fea96e8d145b1915b7bd66f68e973dd572a469e3 31-Mar-2014 Xiaofei Wan <xiaofei.wan@intel.com> Add error check when init RS thread in sync mode.

RS should return false and stop further waiting when it failed to init RS thread,
otherwise it will cause RS caller ANR errors.
Update destructor function for the exception handling accordingly.

Change-Id: I80a946e6be6b23cc93388b5f56d58ad6dc809d8b
Signed-off-by: Xiaofei Wan <xiaofei.wan@intel.com>
/frameworks/rs/rsContext.cpp
f963cc0ec0a6e34cc32326c4514fa5c452ba2e43 06-Mar-2014 Andy McFadden <fadden@android.com> FramebufferNativeWindow.h is obsolete

Change-Id: I38a5e58da6069940b1715f95cb0943eeceeb7c61
/frameworks/rs/rsContext.cpp
3f0db0de2282cdfd7e06fea7fb2d2268316416ab 31-Jan-2014 Ian Rogers <irogers@google.com> am b64224c2: am 68bc6d3a: Merge "Work-around 64bit build issues."

* commit 'b64224c24146014af3bda6a8b8c6ef0ec5781845':
Work-around 64bit build issues.
f8852d0494a260c583795a96a2a06c49b86a9b10 30-Jan-2014 Ian Rogers <irogers@google.com> Work-around 64bit build issues.

Log errors and abort as a temporary work-around for 64bit support.

Change-Id: I7f6b483d671189bd12ae0ef79515fcdd871eba17
/frameworks/rs/rsContext.cpp
397b0b17fd26439eb82a76fea903952b88e5cc96 08-Jan-2014 Tim Murray <timmurray@google.com> Make object destruction asynchronous.

Change-Id: Ie4a5e35f11da6f26dca273d79462952b0e3722c1
/frameworks/rs/rsContext.cpp
9761c3fcb8cf2ce89a29cb9202e4282d94f33d9d 27-Nov-2013 Jason Sams <jsams@google.com> implement finish

Change-Id: If1ec99d0dbcf7aebf9d90d7779bf3ff34a8963f2
/frameworks/rs/rsContext.cpp
f2748276ea84bed83728e38a6661946b5fb3bc5c 27-Nov-2013 Jason Sams <jsams@google.com> implement finish

Change-Id: If1ec99d0dbcf7aebf9d90d7779bf3ff34a8963f2
/frameworks/rs/rsContext.cpp
43463928546cbd5d3a73b67f4931922b94023c5e 14-Nov-2013 Stephen Hines <srhines@google.com> Switch ALOGE->ALOGV or ALOGD for non-error conditions.

Change-Id: I099c00c645d19e5c8f538b4a995af4f3f80e135a
/frameworks/rs/rsContext.cpp
84e3dea053bea25c1cec44ffb298f8b5b9b9141a 10-Sep-2013 Tim Murray <timmurray@google.com> Add flags word to context initialization.

bug 10427951

Change-Id: If3b9337712bd16655de4a42ccf829bbcd9e01b6e
/frameworks/rs/rsContext.cpp
16647800aaaf6c8a7f8259e97f2200bec2cc0a43 16-Aug-2013 Stephen Hines <srhines@google.com> Fix RS build.

ANativeWindowBuffer is not available in the NDK, so make it opaque.
This also fixes a broken merge of mine.

Change-Id: I6f07776ec2b6b147edd9e70646d71581d01a93a6
/frameworks/rs/rsContext.cpp
ef7cb5ce9217c08eef64319a223474a8516dacf7 16-Aug-2013 Stephen Hines <srhines@google.com> resolved conflicts for merge of f0b81d23 to klp-dev

Change-Id: I8dbcf6f11bebb97d31c0a95c01c5a3238c1a7f63
6dfe6841d357a1664433f0dcec3c8f4ae8ffbeb0 15-Aug-2013 Stephen Hines <srhines@google.com> Implement property_get() for the compatibility library.

Bug: 10315692

This change also allows us to remove the dependency on libcutils for the
compatibility library. The implementation is the exact version that is in
libcutils.

Change-Id: If285962d6631cf9ca1030718c436e122f9be1d4f
/frameworks/rs/rsContext.cpp
c2ce707a3d1a8eae79bcf1c749afc6d6e7969ad9 18-Jul-2013 Tim Murray <timmurray@google.com> Move rs.h functions over to extern "C".

Change-Id: I0503a64d93dda558455dfebca90a0c820c80d7b1
/frameworks/rs/rsContext.cpp
8c1da3f9c29ae2004521c7aaf9be556d88331c3f 17-Jul-2013 Tim Murray <timmurray@google.com> Removed unused methods from rs.spec.

Change-Id: I8fabd750c56b9e7ea830bb2bff5cc1efddc25845
/frameworks/rs/rsContext.cpp
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
/frameworks/rs/rsContext.cpp
7e85ca20affa9655d9033ec2b0fdff034f19a9bf 23-May-2013 Nick Kralevich <nnk@google.com> Don't call property_get when building for the host.

Accessing system properties only makes sense on the target, not
on the host.

This change is needed to remove host support for properties.

Change-Id: If456f265cf112f14dd142e17814fc07baa3d8a3b
/frameworks/rs/rsContext.cpp
20f62caa884739810a0074383952797abb9b08a3 09-May-2013 Tim Murray <timmurray@google.com> Remove extraneous logging.

bug 8888887

Change-Id: I0545d62501d8f07739a6286b4c7955f9cde0b010
/frameworks/rs/rsContext.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
/frameworks/rs/rsContext.cpp
4961cceab2b71bf0ab59e1b66a7559f67ed28781 12-Apr-2013 Jason Sams <jsams@google.com> USAGE_IO notifications for new buffers.

bug 8566866

Change-Id: I49767ee902400f09b9b1c174e0fecac5b41e5611
/frameworks/rs/rsContext.cpp
0b575de8ed0b628d84d256f5846500b0385979bd 15-Mar-2013 Tim Murray <timmurray@google.com> Add x86 server support.

Change-Id: I674acaf15b67afa48bc736f72942a11e2e38e940
/frameworks/rs/rsContext.cpp
110f181b7966212a36ef18016f9b81c7322d0a2f 15-Mar-2013 Jason Sams <jsams@google.com> Reduce diffs with compat lib.

Change-Id: Ibfa2c7c7da56d158f424ac343e364feacd0a21da
/frameworks/rs/rsContext.cpp
14982c8eb9a17a95a817c1fd2571829be5b7017e 23-Feb-2013 Jason Sams <jsams@google.com> Add support for debug and profile context.

Change-Id: If67bc23b457d50ced7bfa5ac21a63d14de8193b9
/frameworks/rs/rsContext.cpp
702652065131e740c04e0744bb433028e15d8434 06-Feb-2013 Jason Sams <jsams@google.com> Implement rs.sendMessage()

Change-Id: I174f85760c4b34adbdd33f313c394842c13fba72
/frameworks/rs/rsContext.cpp
93eacc7ce0aad4314b4cb41a281f59ce54bb3286 18-Dec-2012 Jason Sams <jsams@google.com> Cleanup diff with compat.

Change-Id: Ieedcdec03ccb05cac68cbebbd398e07cb885f4d3
/frameworks/rs/rsContext.cpp
4d252d6e807b89764dad123ac845df298c52ca97 29-Nov-2012 Tim Murray <timmurray@google.com> enable synchronous mode (functional)

Change-Id: I613610013e7e4d1623620ab94d2d25d8a1bd82b3
Bug: 5972398
/frameworks/rs/rsContext.cpp
6f01bcf691433b8413e57fe8b67b0f5dba4d0013 20-Nov-2012 Stephen Hines <srhines@google.com> Fix early set of error code.

If we set the error status in loadRuntime(), we have no clean way to fall
back to the default driver (since it retains the error flag). Setting the
error status later (after all other options) is the proper way to do this.

Change-Id: I0a31b89d558d2af13ba4ca72fa7e04bb4e27a716
/frameworks/rs/rsContext.cpp
0e92fa3775b3537c29a7a0ca603d892548936038 06-Nov-2012 Tim Murray <timmurray@google.com> Add flag for enabling CPU-only execution.

Change-Id: I5f6ba33899716ddd82ed2e6325b0a7a9fd8a9ffe
/frameworks/rs/rsContext.cpp
0c66f0795ad0b45934502820df6d718b9096edfa 23-Oct-2012 Tim Murray <timmurray@google.com> Move runtime loading into a separate helper function.

Change-Id: Ib7cd60fefff6d1ff553fdd07fa4a2cb2dc7c0af5
TODO: add validation of HAL struct
TODO: add storage of driverSO for dlclose later
/frameworks/rs/rsContext.cpp
c83dd0b9f81aaeb15e2d03849b04f20b581bfe49 02-Oct-2012 Stephen Hines <srhines@google.com> Add "debug.rs.default-CPU-driver" property for RS driver.

To switch back to the CPU driver (libRSDriver.so):
adb shell setprop debug.rs.default-CPU-driver 1

To turn this behavior off:
adb shell setprop debug.rs.default-CPU-driver 0

Bug: 7256001
Change-Id: I37477ca06e58aed1c0d4f94355e3ae568083dc71
/frameworks/rs/rsContext.cpp
91dfcdb0f9d5402c26dd65d26d1163f05c2f1e50 08-Sep-2012 Stephen Hines <srhines@google.com> Provide an easy way to drop in a different RS driver.

Change-Id: I2576f0ca20671b1f98e3cbed958fd0b2582bd103
/frameworks/rs/rsContext.cpp
414a46166126da6864258bd25ff183f9a3c6261d 06-Sep-2012 Stephen Hines <srhines@google.com> Attempt to create libRSDriver as shared library.

Change-Id: I047b32325efe2fa471b73c48fa7296beecc0c47d
/frameworks/rs/rsContext.cpp
da3b58d804b59595f1c618ff271fecd8a9ce59ed 03-Aug-2012 Shih-wei Liao <sliao@google.com> Fix build. New clang has stricter checking.

Change-Id: I1c8a826f41ed9fa503ce0545d85c198a5151ab6e
/frameworks/rs/rsContext.cpp
d1f7da6803a1bfc0bf8129a66316cfb8994e7110 16-Mar-2012 Jason Sams <jsams@google.com> Add prop to force cap compute threading.

bug=6124869

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

Change-Id: I090943775cbda8d9515cdb484957f6b05d5b1799
/frameworks/rs/rsContext.cpp
e23d239828a229eb7d4d33c9630070f0a87833e1 09-Mar-2012 Alex Sakhartchouk <alexst@google.com> Starting to untangle header spaghetti.

Change-Id: I31f38d05dc8b55c659e8c7e9c0a87b94b9ac1db5
/frameworks/rs/rsContext.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
/frameworks/rs/rsContext.cpp
9afd9a5c712f088e62ee2595e40e0f4584887443 18-Feb-2012 Jason Sams <rjsams@android.com> Work around VSync signal while screen is off.

Change-Id: I0a9637170ee658ff84a363e91c558892dce5cfaf
/frameworks/rs/rsContext.cpp
9bf3cf65ab8123c7c34df513abf96c84195e43b2 10-Feb-2012 Jason Sams <jsams@google.com> am 468a9715: Merge "Remove unused param."

* commit '468a971512f4665b13e83cc3c7dc24c9031b14eb':
Remove unused param.
963a2fb9f03c88633bc67c4a1789429b9a482091 09-Feb-2012 Jason Sams <jsams@google.com> Remove unused param.

Change-Id: Idf26c3bf4eec7ed17dbfb99b40c314bce7996101
/frameworks/rs/rsContext.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
/frameworks/rs/rsContext.cpp
9719bd4a0187c400ba868712612fe66da4635aac 12-Jan-2012 Jason Sams <jsams@google.com> Plumbing for RS priority.

Change-Id: Ibddfd40407fd6d24ac829a76a9a1e2047c48c5fd
/frameworks/rs/rsContext.cpp
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
/frameworks/rs/rsContext.cpp
a74a8f635ce4fae0a9d4b9c79e9fa412787bf6a2 16-Nov-2011 Alex Sakhartchouk <alexst@google.com> Fixing FBO font rendering bug that resulted from using old surface size.

Change-Id: I31d0967bb36ca6ffb6a4c8194597d3c523cfe954
/frameworks/rs/rsContext.cpp
532165d1bca92d4d829ac878371474125694792e 02-Nov-2011 Stephen Hines <srhines@google.com> am af3a854b: am af675222: Merge "Fix potential segfault in RS watchdog." into ics-mr0

* commit 'af3a854b549409c4ad77c686e860f97ea86706a0':
Fix potential segfault in RS watchdog.
86c6b5fecb3e4e68668fdb5640770545501e778f 31-Oct-2011 Stephen Hines <srhines@google.com> Fix potential segfault in RS watchdog.

BUG=5544671

This initializes the watchdog structure properly. Without this fix, it is
possible to call LOGE with a garbage string value.

Change-Id: Ie05eb65f83eca938f18ac962794407d58c3f277f
/frameworks/rs/rsContext.cpp
036b3f7c04e196a4d33b3bd0fc4b9a4a27687be6 27-Oct-2011 Jason Sams <jsams@google.com> am 27812a8f: am 28e4f87f: Fix bug where CPU could be stuck spinning Required the wallpaper be animating and the system to have run slowly during the last frame when rendering stopped.

* commit '27812a8f14ca22f0a709320e5a41d200ac59b63b':
Fix bug where CPU could be stuck spinning Required the wallpaper be animating and the system to have run slowly during the last frame when rendering stopped.
ca7c202abc3853e96d1d0d77b672789622eff99d 27-Oct-2011 Jason Sams <jsams@google.com> Fix bug where CPU could be stuck spinning
Required the wallpaper be animating and
the system to have run slowly during the
last frame when rendering stopped.

bug 5180240

Change-Id: I38c2b6f07a1e36019dd05c77a58973e36d12728c
/frameworks/rs/rsContext.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
/frameworks/rs/rsContext.cpp
ee803446857b14d97f3e90a4f530604b6be9c867 14-Oct-2011 Jason Sams <jsams@google.com> Fix error printing if no command string is set.

Change-Id: I588c0d0a4e1b8f80c967ebfb6aff179a0cac4a36
/frameworks/rs/rsContext.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
/frameworks/rs/rsContext.cpp
2382aba4a55c6ae74789c478eead8fbd96593321 14-Sep-2011 Jason Sams <rjsams@android.com> Add RS watchdog.

Change-Id: I4c912beb84fa8a37ada0088049f7776132e994b6
/frameworks/rs/rsContext.cpp
c7cec1e3577cc77a5a73d5bd5a82733b1b9936a1 19-Aug-2011 Jason Sams <rjsams@android.com> Fix issue with freeing allocation with circular references.

Change-Id: I45871c20a192815eafee77f95e17a025f6dcf9d1
/frameworks/rs/rsContext.cpp
dc314a172d48479053f258b485d7d0284b5b5b1f 18-Aug-2011 Jason Sams <rjsams@android.com> Fix "return 0" behavior in rs
0 was not properly blocking for the next message.

Change-Id: I0d9f0a8f799ba457197920c6a699f80f496eaa8e
/frameworks/rs/rsContext.cpp
438e18a2bce10790b8d3c45e37a50adc7bf5f110 17-Aug-2011 Alex Sakhartchouk <alexst@google.com> Merge "Fixing asynchronous performance issues."
c700e649ca44d0dcff8b271e42d949ea72fe3c63 16-Aug-2011 Alex Sakhartchouk <alexst@google.com> Fixing asynchronous performance issues.

Change-Id: I10f02cd37a33a6c655814d24e0a4291dc044fba3
/frameworks/rs/rsContext.cpp
e0aab4a8ff1cffd8cfaedc2623db94072549e0e5 13-Aug-2011 Jason Sams <rjsams@android.com> Fix the RS frame timeout.
Previous a slow app would block from receiving new
commands until the timer expired. This change will
expire the timer immediatly.

Change-Id: I42b949d21f98ee0f1d3156763cd723c3e9cabb67
/frameworks/rs/rsContext.cpp
cbb0b8aceedb9146ba901cba1fbd6d1e9ca88f51 02-Aug-2011 Stephen Hines <srhines@google.com> Start using bcinfo components within librs.

BUG=4942491

Change-Id: I3a46783511c4954bac9eadbbbefe5abf85498c16
/frameworks/rs/rsContext.cpp
263892bd0e88e5a99c76da0d307a84c132528e81 20-Jul-2011 Alex Sakhartchouk <alexst@google.com> Merge "Correctly call glviewport when surface changes."
a544b6368d7ddae47985da92d6bcf86798b376c6 20-Jul-2011 Alex Sakhartchouk <alexst@google.com> Correctly call glviewport when surface changes.

Change-Id: I7ef1539e39ea67245bac5ee410deb5918fc5dfcf
/frameworks/rs/rsContext.cpp
75b1fbd901927c4a580228bb12e2622622909820 15-Jul-2011 Alex Sakhartchouk <alexst@google.com> Merge "For the serialization context, no fifo initialization is necessary."
6b0c00414a532e2ea22f66cf89578cc8c8a45293 14-Jul-2011 Alex Sakhartchouk <alexst@google.com> For the serialization context, no fifo initialization is necessary.

On shutdown it was attempting to free uninitialized memory.

Change-Id: I9141be5a51253f87f21594ae38f7e653f9e69c6c
/frameworks/rs/rsContext.cpp
9544f76195de22f655fd7a1894934667e7e55f6a 14-Jul-2011 Jason Sams <rjsams@android.com> Fix native crash when GL driver fails to initialize.

Change-Id: I85714de9029285027dc75fb3b62076be41a4c985
/frameworks/rs/rsContext.cpp
b81a0eb8180791e4eaab1253b59fa8bd562b046b 03-Jun-2011 Alex Sakhartchouk <alexst@google.com> More work to make libRS buildable on the host.

Change-Id: I239585ef7c1334f7fc19fa6423535dea7b9a753f
/frameworks/rs/rsContext.cpp
789ca83c794cb7196c9bac97d39eaf1f7947af2a 19-May-2011 Jason Sams <rjsams@android.com> Move context and device creation out of the spec file.

Change-Id: I79470d4fb9317bcad9d68921ce0c414aa133f3cb
/frameworks/rs/rsContext.cpp
7257c7ee4b66f00c43d9235f3ac600061ae79968 17-May-2011 Alex Sakhartchouk <alexst@google.com> Preparing libRS for for compilation on host.

Change-Id: I851add79831331c8a8b20dcccdb0817f8ad0c359
/frameworks/rs/rsContext.cpp
58f74bdb53a950a2ec4851d473a231614a3979bf 18-May-2011 Alex Sakhartchouk <alexst@google.com> Merge "Moves fbo support in renderscript behind the hal"
1a4efa363916977ef9aeab756725b3bdc880a15b 18-May-2011 Jason Sams <rjsams@android.com> Core to client fifo on sockets.

Change-Id: I3b84a7d4c3c5fa0d764ad4db22dfd142d5cfa95b
/frameworks/rs/rsContext.cpp
da6d34a5a6ece8c30d20673b9b6ff07d8c91768b 13-May-2011 Alex Sakhartchouk <alexst@google.com> Moves fbo support in renderscript behind the hal

Change-Id: I26a857586f5f0b47df4c1f4589d2023e70481ec7
/frameworks/rs/rsContext.cpp
c19ff0177a7a0dadfc01b1990f822354fdc95991 06-May-2011 Alex Sakhartchouk <alexst@google.com> rsLib cleanup

Change-Id: Ifb66059338e3435ac79435296a650c44699921aa
/frameworks/rs/rsContext.cpp
d3e7107c60ce06d637d83fa0db783ecdd0ad534c 04-May-2011 Jason Sams <rjsams@android.com> Fix error checks on compute context creation.
Remove GL init for compute scripts.

Change-Id: I1bce8e4112babf4345fa56a30a9bed753734d8d6
/frameworks/rs/rsContext.cpp
fa08e904e41b83fa1f558c390f8f4ab7bd93df00 02-May-2011 Alex Sakhartchouk <alexst@google.com> Merge "Moving renderscript GL code into the HAL This change affects - shaders - meshes - fonts - quad rendering"
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
/frameworks/rs/rsContext.cpp
343cd8a9895dead2438770e6ac1fe810b2cd5b04 29-Apr-2011 Jason Sams <rjsams@android.com> Merge "Pipe rsa function though the RS api table."
e785aa08ba2b11c10850ec675cc8bd42b964b468 29-Apr-2011 Jason Sams <rjsams@android.com> Fix fifo size check code.

Change-Id: If4a1874e34409e99c3fe63ff06e2b97e3369049d
/frameworks/rs/rsContext.cpp
c975cf4a71b63ccbd20f1f3b3341c5f2e6025b45 29-Apr-2011 Jason Sams <rjsams@android.com> Pipe rsa function though the RS api table.

Change-Id: Ic8a3bef5d337be1d8fc5ca961eec6be4761701c5
/frameworks/rs/rsContext.cpp
186e59154a0fb86e05e283e9c083b69878c06720 26-Apr-2011 Jason Sams <rjsams@android.com> Cleanup rs.spec file and code generator.

Change-Id: I369e36b222ff962fc6835bc550435c2940e2b5fd
/frameworks/rs/rsContext.cpp
70b83c111beceaf8fbb700580833e7fec99272cf 06-Apr-2011 Alex Sakhartchouk <alexst@google.com> Modifying libRS internal communication to handle network rendering.

Change-Id: I8c8b3cc3402ecf4ba774e1d668dce25ff0af0e5a
/frameworks/rs/rsContext.cpp
83c451a4ef4388e002482e383d488ca9b7b7600d 21-Apr-2011 Jason Sams <rjsams@android.com> Move TLS behind hal.

Change-Id: I9e84acb3736bc98fa5fb0720bddb13a030285319
/frameworks/rs/rsContext.cpp
4b3de47071d875faaa7d419d050a464b09538797 07-Apr-2011 Jason Sams <rjsams@android.com> Migrate most GL from context to driver.

Change-Id: I5cba3a6e879d2e9332fc667a1061a5312fcf14ba
/frameworks/rs/rsContext.cpp
721acc495b859c6d884725a4f9b5523583dd11c7 06-Apr-2011 Jason Sams <rjsams@android.com> Seperate ProgramRaster.
Cleanup ProgramRaster and ProgramStore creation.

Change-Id: If25ea74355238d405340f0ccfb8117ad6e1307b7
/frameworks/rs/rsContext.cpp
7d9c5ffccb7a5e682860f752403e5a03aed587be 01-Apr-2011 Alex Sakhartchouk <alexst@google.com> First draft of fbo in renderscript.
Updating samples and benchmark

Change-Id: I469bf8b842fca72b59475c8fa024c12cf0e14954
/frameworks/rs/rsContext.cpp
2cfe51e7a9eef3dec091ce7c15d2a5a2216e9d3e 19-Mar-2011 Jason Sams <rjsams@android.com> Fix bug with hal init uninitialized var.

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

Change-Id: If182c524cceb327547640f22f956856d291d1787
/frameworks/rs/rsContext.cpp
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
/frameworks/rs/rsContext.cpp
1809bde133e0d66f06cea65887d9ceb3c70f8b95 17-Mar-2011 Alex Sakhartchouk <alexst@google.com> Fixing a small bug in debug output
Default font wasn't reset for debug output but used the last font instead.

Change-Id: I8fd713336febb8258d364845799ade42633907ab
/frameworks/rs/rsContext.cpp
7b3e9bd825901e33661e3c385e3e7c6f40ca6000 17-Mar-2011 Alex Sakhartchouk <alexst@google.com> Fix for bug 3434228

Change-Id: I57973faf782b487e7913a096f0ab6012dc1c9415
/frameworks/rs/rsContext.cpp
4f947d7836677bbdde9f69276ca2fb1daff32978 09-Mar-2011 Stephen Hines <srhines@google.com> Fix a race condition during Context init/teardown.

This change makes Context initialization wait properly for all threads to be
available before leaving initContext(). This prevents a case where ~Context()
gets called before all created threads have started/finished their work. This
was triggered/discovered by running some very short-lived tests in CTS.

BUG=4064203

Change-Id: I1dd6f43fa7942c53881008e857df864e2395202e
/frameworks/rs/rsContext.cpp
196c1112ec95a99b75bf9335f0a4e007150e6091 02-Mar-2011 Stephen Hines <srhines@google.com> DO NOT MERGE: Almost all warnings are now errors in RS build.

Change-Id: Ie4952cdf5c75bf1b7a7899a32b3b1f8747686356
/frameworks/rs/rsContext.cpp
c946b614ee6c983215cc3de7834a7a334f860d68 23-Feb-2011 Jason Sams <rjsams@android.com> fix bug 3477451
Bogus asserts with pure compute scripts.

Change-Id: If5928c563e06405f75a11606d9148d64fa10be07
/frameworks/rs/rsContext.cpp
2e8665de7c0eb4514c67baf8693d61c892e5303d 27-Jan-2011 Jason Sams <rjsams@android.com> Correctly free resouces bound to scripts when the scripts are deleted.

Change-Id: Idfcc30f1a7de0badeb6d8254ed508938d89f4070
b: 3381615
/frameworks/rs/rsContext.cpp
51462c5e30c4d465c78afd30774d9e504dbc82dd 25-Jan-2011 Jason Sams <rjsams@android.com> Fix bug 3385881
Launch signals and threads are not always
matched in index. Threads grab launch indexes
as they start which may not be the order in which
they were launched.

Change-Id: I1ff42c3df5d7ebb46de6329ebd11ef67a5fc58ca
/frameworks/rs/rsContext.cpp
249d453869cca82dcb57123f6d1c8df3ca9f4372 24-Jan-2011 Jason Sams <rjsams@android.com> Cleanup script init to fix bogus log printing and
reduce memory churn.

Change-Id: I0bf5392102e3d59fea81f5f9f832887113602b7f
/frameworks/rs/rsContext.cpp
59296fe23fc17a73cc9005b9b752406ee2518bb4 20-Jan-2011 Jason Sams <rjsams@android.com> Merge "Remove some old logging code." into honeycomb
b2954e17404974e7db2203118bac1b8f643c1f8a 20-Jan-2011 Jason Sams <rjsams@android.com> Remove some old logging code.

Change-Id: Ide5d91aadbc9f5b475da38762bc350ac237347d1
/frameworks/rs/rsContext.cpp
b7ee74d753acd9ea517d9ebf7f3eef72382965ce 20-Jan-2011 Mathias Agopian <mathias@google.com> fix [3367893] Rotating device on YouTube's home screen several times kills system_server

A typo in RS tear down cause caused eglMakeCurrent to fail. Additionnaly,
EGLSurfaces where not destroyed explicitely.
Everything worked properly when only one RS context was used, as
eglTerminate() would clean-up everything.

however in the present case, there seem to be more than one RS context
and eglTerminate() is not called.

Change-Id: I37a10945b9c0a85c4f7abad1c4f4c24bc0daa0a5
/frameworks/rs/rsContext.cpp
0f7785c4542855ad5e22e6b720c6bdad1817ac61 14-Jan-2011 Jason Sams <rjsams@android.com> Re-implement img npot support in HC.

Change-Id: Iac56ec54e46c998ec14f71d8e85eccdc5fb3aa91
/frameworks/rs/rsContext.cpp
52a67b2353d239ee1fc424625bef4d652026e492 13-Jan-2011 Jason Sams <rjsams@android.com> WAR driver bug where surfaces of size 0 fail.

Change-Id: I72b356c4cfb71f2342479ca21238b763d02e729d
/frameworks/rs/rsContext.cpp
ca3f09c0924e9515901dfd47fa5f95385d53cf80 08-Jan-2011 Stephen Hines <srhines@google.com> Split time functions into rs_time.rsh header.

Change-Id: I598b0031d15749c91d11fbd37b075d0564a94dbf
/frameworks/rs/rsContext.cpp
cf912de17f1e086ccea707d8607a3d2eda56b98f 10-Jan-2011 Jason Sams <rjsams@android.com> Fix cleanup race condition where objects might may not
be cleaned up correctly.

Change-Id: Ia48e06c3d050b6b39b39f8fdc9f0eb89b92fe1bf
/frameworks/rs/rsContext.cpp
2cbfc4ca83ef045f004b52cd3a89934ae0318c12 05-Jan-2011 Jason Sams <rjsams@android.com> fix bug 3313505
Shader cache cleanup could occur in wrong thread
during RS teardown.

Change-Id: Iffed41de046147db30885e6815826e3b640020c1
/frameworks/rs/rsContext.cpp
741aac95b777b2e6cb90f484a05e489a79a6ef05 24-Dec-2010 Jason Sams <rjsams@android.com> Fix teardown bug found in books.

Change-Id: I9ac449b644108148b331e0c552f289bf80a07f7e
/frameworks/rs/rsContext.cpp
1dcefab7178f0644b0e0a6998007b1acae5261cf 09-Dec-2010 Jason Sams <rjsams@android.com> Fix a severe cleanup bug where teardown of the GL
driver could occur on the wrong thread.

Change-Id: Icd56182ccbd1371124a247695bf3ebd3085df450
/frameworks/rs/rsContext.cpp
87319de2b16a185cf360827c96a42cf1fcaae744 23-Nov-2010 Jason Sams <rjsams@android.com> More error checks

Change-Id: Id2b9ab7a76bbdf2ed745f5e36e552dc9b101982f
/frameworks/rs/rsContext.cpp
5c0912b4e73981be31c0c53716cc520d84f29092 19-Nov-2010 Alex Sakhartchouk <alexst@google.com> Fixing the state restore bug.

Change-Id: I30446a2d552b98fc69878bc7b4fc1a0fd358fc99
/frameworks/rs/rsContext.cpp
60709257bbdeb0c50f39b9c8969dc76264d6e142 18-Nov-2010 Jason Sams <rjsams@android.com> Create holder inner class for pushing context state.
Fix bug with rsForEach corrupting parent context state.
Remove workaround from rsBalls.

Change-Id: I43a948536e70d44645d1c2ef7b97e1c5906f6943
/frameworks/rs/rsContext.cpp
afb743aca56c18beb7ab924e75cb6e070ef3e55a 10-Nov-2010 Alex Sakhartchouk <alexst@google.com> Code cleanup to make formatting consistent
across all the renderscript files.

Change-Id: Idf5fcc60877e44c8f074f7176e37f70b3b895a3c
/frameworks/rs/rsContext.cpp
aad4bc5231dd7059fc5148b34a951117d9b5f4ad 09-Nov-2010 Jason Sams <rjsams@android.com> Handle user message ID 0
Pass RS runtime errors back to java.
throw exceptions for runtime errors.

Change-Id: Ifcf16cbbf9b98137971dced5076f8a5563eb016c
/frameworks/rs/rsContext.cpp
5c1c79a54c63b9de8c391f7ed890c02f280ec17f 03-Nov-2010 Jason Sams <rjsams@android.com> RS Error cleanup.
Thow java exception during init if the
GL driver fails rather than native crash.

Change-Id: Ie96ef5a2ac12e64f9456545d86157c4c95179a8e
/frameworks/rs/rsContext.cpp
177f8446d58e5b1a4258935371a9450dbe34dca6 29-Oct-2010 Jason Sams <rjsams@android.com> Balls test app.

Change-Id: I842f43e37145f8112120e2bd49925f81c588c40c
/frameworks/rs/rsContext.cpp
dc763f345db3e796efc28dc4b4d8edffda5a803e 27-Oct-2010 Alex Sakhartchouk <alexst@google.com> Adding nvidia extension for limited npot support.
Updating a3d loading to be async.

Change-Id: I4be71d2002b9ad6ab8896d63e625f031e6b7ea6c
/frameworks/rs/rsContext.cpp
64cd98e83d33011950b88f229d013e06c62b36e9 19-Oct-2010 Alex Sakhartchouk <alexst@google.com> Some cleanup

Change-Id: Ie10746d2f77318d63101d919214e76f778159fa0
/frameworks/rs/rsContext.cpp
2353ae303868d04e3a26002b2f2dc456c15e8170 15-Oct-2010 Jason Sams <rjsams@android.com> Async type creation.

Change-Id: I4d98446fabbf7e8a98c97f85b573a58c8a0c58c2
/frameworks/rs/rsContext.cpp
6b8552a4f6a44848255d77222e66aa92dd21b1b5 14-Oct-2010 Jason Sams <rjsams@android.com> Begin hooking up SurfaceConfig.

Change-Id: I328138f29affbed11fcfb5e9ed0872d4ba22d241
/frameworks/rs/rsContext.cpp
c8fb69e4a3e01501a3d38a6d3ea185e583d3f493 05-Oct-2010 Alex Sakhartchouk <alexst@google.com> Adding average fps counter.
Removing rsLight from libRS

Change-Id: I8622efd10619dc120d37f3a12122e9c7fc34ff2e
/frameworks/rs/rsContext.cpp
09c67356bbeee0a97a20a06c95b66756838cb541 05-Oct-2010 Alex Sakhartchouk <alexst@google.com> Adding text metrics to renderscript.

Change-Id: Ica460525243d714a278e4ad5e436af43e1008e0c
/frameworks/rs/rsContext.cpp
889fe50e7aaebed8cb8284b16a0e51e64e8a3a9c 01-Oct-2010 Alex Sakhartchouk <alexst@google.com> fixing bugs 3053960, 3044804, 3044798
shader cleanup and removing unnecessary state setup.

Change-Id: Ibddf2ad3a26bb983fc43bdeb58b1cec6224920b4
/frameworks/rs/rsContext.cpp
605048a9f9af925782f6c90bc1cdc5af59e337d8 01-Oct-2010 Jason Sams <rjsams@android.com> Add object validity checking.

Change-Id: I2613e87b09a6e560f0381d4ed620d60a10bc30e4
/frameworks/rs/rsContext.cpp
01b7d2995f9cbd33a9ccdf861fe959743a4b9954 29-Sep-2010 Stephen Hines <srhines@google.com> Fix clear() operation for rsScriptC.

- This removes a memory leak where some elements were not getting tracked
properly (and then triggering an assert when a context is destroyed).
- Convert ScriptCState to use a tracked object reference for mScript.
- Add a missing clear to FontState.
- Clean up synchronization in RSTest so that our graphics context outlives
any subtest context.

Change-Id: I0d5768c4d2f8810dd1ae2f68b1edd7e150f382fd
/frameworks/rs/rsContext.cpp
886f11ade9dde05485cb11c0d67d87f76a428f6c 29-Sep-2010 Alex Sakhartchouk <alexst@google.com> More robust attribute binding
Adding attribute and uniform debug logging.
Checking to see if aniso filtering is available.

Change-Id: I2ed9d166ed7ff3df971d7af18b7a33f4e3ade928
/frameworks/rs/rsContext.cpp
8d957fa762eff6c03a93ddea9405d9575665f1ec 28-Sep-2010 Jason Sams <rjsams@android.com> Fix safe for mp check in ScriptC.

Change-Id: Id91b3c1e99b2705fd39f9e74a52c61110805e246
/frameworks/rs/rsContext.cpp
383e5b1f68c321a77bfd7466fa1171a9bfab4a6f 24-Sep-2010 Alex Sakhartchouk <alexst@google.com> Adding support for all allowed textures.
Cleaning up unused code
Adding error messages

Change-Id: I3a92476738ff7699d49feeafcd3eee6f70621acb
/frameworks/rs/rsContext.cpp
900f1616bf33c7ba13cf2a737832a95bcd176388 17-Sep-2010 Jason Sams <rjsams@android.com> Cleanup GL setup code and remove legacy 1.1 paths.
Reset pointers to NULL when allocations are unbound.

Change-Id: Ifaba634ecbb154970b7fb47faa8e6475d16d2f66
/frameworks/rs/rsContext.cpp
4c5f99e3d27a0487878435010a23f37b2e9d721b 14-Sep-2010 Jason Sams <rjsams@android.com> Fix partial NP2 support and restrict mipmaps and clamp
modes on HW that does not support proper NP2
bug 2965170

Change-Id: If9a3ac45264861fc75b9616e98957e12a5464411
/frameworks/rs/rsContext.cpp
39cd317d983410055d780d00666f724c5faeaba9 25-Aug-2010 Jason Sams <rjsams@android.com> Add matrix component types.
Fix potental overflow in script -> java messages.

Change-Id: Ie6fd9dc376be4043fc938a1517106936937689c8
/frameworks/rs/rsContext.cpp
8c46b10a1af7151f9453651f9e6def0237a6f7d8 18-Aug-2010 Jason Sams <rjsams@android.com> Fix bug looping non-blocking fifos.

Change-Id: I33dcf575466bfef672af4e113ad692397b5213e9
/frameworks/rs/rsContext.cpp
f47eec31a9112daead78cfb8ebbda2c3372f4892 18-Aug-2010 Jason Sams <rjsams@android.com> Remove OOB object destruction.

Change-Id: Icaa06aca4a701ec663c124d3141d9dbb633d7dc1
/frameworks/rs/rsContext.cpp
af30194d554e695d68944f28b7362cf184e76ace 06-Aug-2010 Jason Sams <rjsams@android.com> Fix behavior where the non-blocking sendToCliend would block
when there was enough room for the message but not the message header.

Change-Id: I600db04b91e76fa7966c7d8a98e5c56593e1806d
/frameworks/rs/rsContext.cpp
ca5a454e022caec6c6d3cbb404cc09ea095ba97a 05-Aug-2010 Alex Sakhartchouk <alexst@google.com> Fixing fonts to use constant color instead of variable.

Change-Id: Ia590dfed482f82b7bc748c25b7b1592efea5b68c
/frameworks/rs/rsContext.cpp
20c6c1febce7cdf398c58287bf506b3a4a210285 05-Aug-2010 Alex Sakhartchouk <alexst@google.com> Adding more matrix math functions.

Fixing build.

Change-Id: Ie0f6724ba063ada94d1d44d99bbe56e21d9bd72f
/frameworks/rs/rsContext.cpp
9fc9f0375a92fe22fecb3782b18a5c6060a07290 04-Aug-2010 Alex Sakhartchouk <alexst@google.com> Added ability to set font color.
Propagating the name of meshes and allocations from native a3d to java

Change-Id: If781f55340b5369459610e5e92ea69e240dcd24e
/frameworks/rs/rsContext.cpp
0cae59f7d8dd63d1bf0ca4abedecb4cfa3ab1921 03-Aug-2010 Alex Sakhartchouk <alexst@google.com> Adding onscreen frame and script time for debugging.

Change-Id: I5780092d14d49dae556b9969b937c7768e705a64
/frameworks/rs/rsContext.cpp
ef5867a6785807f90cfe8af26da4b964ee8ebee4 28-Jul-2010 Jason Sams <rjsams@android.com> Cleanup sendToClient and add rsGetDt().
Remove legacy implemtation of matrix calls which were moved to llvm bc.

Change-Id: I527740590067db3bcb2147233ef41fb057f1d2a8
/frameworks/rs/rsContext.cpp
7c7c78ad8b2d77e38ba6e1d719c828def9437e8e 27-Jul-2010 Jason Sams <rjsams@android.com> Query the CPU count and use the result to determine
if and how many worker threads we use.

Change-Id: I8fc1fb17aff835cfe8ed7c474287bccd532cbb29
/frameworks/rs/rsContext.cpp
181334092f78273d0da2d854ebbe7b24508d3bfc 21-Jul-2010 Jason Sams <rjsams@android.com> Update imageprocessing to remove generated files.
Fix thread launch race condition.

Change-Id: I24d7f87ac87db6f9e3418d6a429471a71d2c9e9d
/frameworks/rs/rsContext.cpp
7bf29ddc35450d8064541c42c99a1f48be6cf0dd 20-Jul-2010 Jason Sams <rjsams@android.com> Threading RS ForEach.

Change-Id: I5d6fe4db2b6ac0613394bc5a066ff90ec146d60e
/frameworks/rs/rsContext.cpp
4ab16b53f6636198280a545ee6402bde57f1f84b 01-Jul-2010 Dianne Hackborn <hackbod@google.com> am 177c405a: am c6e1d880: Merge "Introduce official public NativeWindow type." into gingerbread

Merge commit '177c405a242e811b1010bd8382b5807ab8df31a8'

* commit '177c405a242e811b1010bd8382b5807ab8df31a8':
Introduce official public NativeWindow type.
1c769c3d0e5f08e78ecdb4508c6bc69fcb69bfa8 30-Jun-2010 Dianne Hackborn <hackbod@google.com> Introduce official public NativeWindow type.

Not yet hooked up to anything in the NDK, but requires renaming
the existing android_native_window_t type everywhere.

Change-Id: Iffee6ea39c93b8b34e20fb69e4d2c7c837e5ea2e
/frameworks/rs/rsContext.cpp
d3e0ad43dc758c409fc23d1893dab67b18520c24 25-Jun-2010 Alex Sakhartchouk <alexst@google.com> Adding freetype font rendering to renderscript.

Change-Id: I3a10ffe27092a41df156341c9cb3f7aa19c49f19
/frameworks/rs/rsContext.cpp
8c88090e8cccab103eebe2ff569e116e9f5fb208 15-Jun-2010 Jason Sams <rjsams@android.com> Remove InvokeData and add ContextFinish to generate a sync point.

Change-Id: I27da8bf5fba2c8a428964cb6a5e66dd7a94958d8
/frameworks/rs/rsContext.cpp
c61346b91434307c5003029017b54ce9c49112be 29-May-2010 Jason Sams <rjsams@android.com> Rough implemetation of ForEach.
Remove launchID from root graphics script.

Change-Id: I9f80c0d4df1264f2ee1624a6d7216b9dfdf8502e
/frameworks/rs/rsContext.cpp
22fa371bf64b8aae786acfe5d711af21afb13a93 20-May-2010 Jason Sams <rjsams@android.com> Begin naming cleanup for renderscript runtime.
Prefix functions with "rs" or "rsg".

Change-Id: I4435b486831bfab1ea473ccfad435b404e68f1c9
/frameworks/rs/rsContext.cpp
771565f47fc44608444c00aa8fa3bda769ceaece 15-May-2010 Jason Sams <rjsams@android.com> Change RS to use the passed surface size rather than EGL size.
Its possible that during a resize the EGL information could be stale so
caching this is bad. The surface size should always be correct.

Change-Id: Ifd479e1ea70b1cada1a8690c7c82e91aa391b685

Conflicts:

libs/rs/rsProgramStore.cpp
libs/rs/rsProgramStore.h
/frameworks/rs/rsContext.cpp
ccc010bb7c0f89e162bf60033968a20be90a903a 14-May-2010 Jason Sams <rjsams@android.com> Rename ProgramFragmentStore to ProgramStore.

Change-Id: Ia8ad9ac856944838ced38a2f1e8f07387050bdfd
/frameworks/rs/rsContext.cpp
be36bf3a76481737a7fa606a04144ceef80eb4f2 11-May-2010 Jason Sams <rjsams@android.com> Convert renderscript from using ACC to LLVM for its compiler.

This will also require application to be updated to support
the new compiler and data passing models.

Change-Id: If078e3a5148af395ba1b936169a407d8c3ad727f
/frameworks/rs/rsContext.cpp
12b14ae9fa34f4fd0bf21a2a4ac95a4864248fe9 18-Mar-2010 Jason Sams <rjsams@android.com> Seperate out Mutex and Signal code into reusable classes.

Change-Id: I381d09d89b567d433a10a91e0d7e59c24d3444d8
/frameworks/rs/rsContext.cpp
a2cf755a28a1e7ffff2955df656d714f40e4d715 03-Mar-2010 Jason Sams <rjsams@android.com> Improve RS error handling. On errors RS will now store the error and a message that can be read from the app. RS will then not continue rendering frames while an unchecked error is present until new state is received.
/frameworks/rs/rsContext.cpp
ef21edcc70fc2734a3dc7995d3c3af1f90d16ef8 23-Feb-2010 Jason Sams <rjsams@android.com> beging np2 extension check work.
/frameworks/rs/rsContext.cpp
fa4028663712dbb1a3d13c507c3bc13c6e4be80d 12-Feb-2010 Mathias Agopian <mathias@google.com> real fix for [2440014] launcher2 crashing in loop during boot

Surface* cannot be casted to void* and then to android_native_window_t*
/frameworks/rs/rsContext.cpp
9b97c2906aed2b6dea9e0824f91f27c08d3690a7 12-Feb-2010 Mathias Agopian <mathias@google.com> Revert "Revert "RenderScript should not depend on libsurfaceflinger_client.so""

This reverts commit a0659aa36c987e28e29778bd97e75fe52152c60e.
/frameworks/rs/rsContext.cpp
123d602faaa13dc856f1ace34775d19c7f60724e 12-Feb-2010 Jack Palevich <jackpal@google.com> Revert "RenderScript should not depend on libsurfaceflinger_client.so"

This reverts commit 88b55fb090ace1a835f890758866f42f03795c12.
/frameworks/rs/rsContext.cpp
11503b20394ffa68691f47d3153145f67eb02f96 11-Feb-2010 Mathias Agopian <mathias@google.com> RenderScript should not depend on libsurfaceflinger_client.so
/frameworks/rs/rsContext.cpp
d4c25e3c197bc79c8508b76b20611b67ef883138 10-Feb-2010 Mathias Agopian <mathias@google.com> split libsurfaceflinger_client and libcamera_client out of libui
/frameworks/rs/rsContext.cpp
4820e8bb83b1f78e6232ebe853221f737da2a1ea 10-Feb-2010 Jason Sams <rjsams@android.com> Preview seperating RenderScript into RenderScript and RenderScriptGL
/frameworks/rs/rsContext.cpp
433eca30b2efe0cf84bbda33f2dfdfd6dcafaf59 06-Jan-2010 Jason Sams <rjsams@android.com> More complete support for named attribs. Adds user typed attribs as available to programVertex. Non user attribs are not treated like user for GL2 for simplicity.
/frameworks/rs/rsContext.cpp
b4d3568f68b1ae97e2a82061cccf220f8e93cd94 05-Jan-2010 Jason Sams <rjsams@android.com> Add RS support for generic attribs as input to vertex programs.
/frameworks/rs/rsContext.cpp
d01d970cf5973aa5186cc02c80fb2c143a69b0b1 23-Dec-2009 Jason Sams <rjsams@android.com> Element restructuring. Add support for new basic Element types including the RS objects and vectors(2-4). In theory this paves the way for maintaining type info for RS objects, passing elements for GLSL uiforms/attribs/varyings, and supporting nested structures.

This will break some apps, checkings for other projects will follow to unbreak them.
/frameworks/rs/rsContext.cpp
cd50653f99c960e1a47c2c30e53b369b8805344a 16-Dec-2009 Jason Sams <rjsams@android.com> Place shader logging behind prop to declutter logs.
/frameworks/rs/rsContext.cpp
4815c0d121310cfcd6a8aba4eab77a9910af53ac 15-Dec-2009 Jason Sams <rjsams@android.com> Continue development of es2.0 user shader support for renderscript. This change cleans up ProgramVertex creation and adds support for passing input, output, and constant type info.
/frameworks/rs/rsContext.cpp
5613b91c4f3b9a931ee9282317ea887007e05b86 11-Dec-2009 Jason Sams <rjsams@android.com> am b62954b6: am 8f31c230: am 57ce0888: Merge change Id22c0137 into eclair

Merge commit 'b62954b66542e3e2654d97a81123c51805bceca7'

* commit 'b62954b66542e3e2654d97a81123c51805bceca7':
Throttle low priority RS threads by sleeping once per frame to avoid starving other apps.
2dca84dd6c07992f78ad050177975f16486dd77e 09-Dec-2009 Jason Sams <rjsams@android.com> Throttle low priority RS threads by sleeping once per frame to avoid starving other apps.
/frameworks/rs/rsContext.cpp
f2a5d7326b38e5a28b6618f9b1e5a021aef7179f 30-Nov-2009 Jason Sams <rjsams@android.com> Beging GL2 user shaders. Switch master to using GL2 by default.
/frameworks/rs/rsContext.cpp
c460e55d78cbe8bee95c5c947dfe541218142a5b 25-Nov-2009 Jason Sams <rjsams@android.com> Begin gl2 support. Renderscript still uses GL1.1 by default. However, 2.0 can be enabled and will render most tests correctly.
/frameworks/rs/rsContext.cpp
e6c6078f301a197f310b0ae0c12031188e7c1b6b 24-Nov-2009 Jason Sams <rjsams@android.com> am e4df64bd: am 66358e24: am 9dab667e: Force a crash under conditions where white square bug in all apps is likely to occur.

Merge commit 'e4df64bdaaf86fb7d06715de122a97d723d7fea2'

* commit 'e4df64bdaaf86fb7d06715de122a97d723d7fea2':
Force a crash under conditions where white square bug in all apps is likely to occur.
13e2634a71a30d289ed8d821aef61c7d1687460e 24-Nov-2009 Jason Sams <rjsams@android.com> Force a crash under conditions where white square bug in all apps is likely to occur.
/frameworks/rs/rsContext.cpp
3dd429cc32388ca0c3d7a9368ed2e348b8fdaab1 18-Nov-2009 Jason Sams <rjsams@android.com> resolved conflicts for merge of f6309041 to master
c21cf40f6ae69091bf24f87b5eeabc95e73dd271 18-Nov-2009 Jason Sams <rjsams@android.com> Add support for dumping RS objects to aid in debugging of white blocks bug.
/frameworks/rs/rsContext.cpp
94743c90e24abaddfdf66446f031e2b0f41a3c7c 17-Nov-2009 Jason Sams <rjsams@android.com> am 234e509a: am 22186a2c: am ec8178eb: Merge change I9c1bad53 into eclair

Merge commit '234e509a67eb32606f3051d21eb3ea25b272d80d'

* commit '234e509a67eb32606f3051d21eb3ea25b272d80d':
Add setPriority to allow wallpapers to run at lower cpu priority than default.
158324456b8dbf40f684dd0a4af3493b9549f3f5 15-Nov-2009 Jason Sams <rjsams@android.com> Add setPriority to allow wallpapers to run at lower cpu priority than default.
/frameworks/rs/rsContext.cpp
ba123358673d82eb8959407d72fc58ad1094bb42 13-Nov-2009 Jason Sams <rjsams@android.com> am 8dcb4233: am 4834887e: am 4dd6fee7: Merge change Ieb4b0318 into eclair

Merge commit '8dcb4233fcb043f82774768d3e5bee86d867b852'

* commit '8dcb4233fcb043f82774768d3e5bee86d867b852':
Make default vertex program correctly track surface size.
f90517f267f625e5196ad1a07842f888a4f3ce00 13-Nov-2009 Jason Sams <rjsams@android.com> am adf38939: am da8bb292: am 59175ac2: Merge change I81b1421a into eclair

Merge commit 'adf38939836ee1d1f5967fc45d02e07117f44009'

* commit 'adf38939836ee1d1f5967fc45d02e07117f44009':
Defer EGL init until the surface changed call comes in. Pass w,h along with surface for verification of driver state.
e18844a5f648071fcc3594f84bca1728644af41a 13-Nov-2009 Jason Sams <rjsams@android.com> Make default vertex program correctly track surface size.
/frameworks/rs/rsContext.cpp
613cad1702dbb76eb2a6ba0cfcb43b9fe207cebc 13-Nov-2009 Jason Sams <rjsams@android.com> Defer EGL init until the surface changed call comes in. Pass w,h along with surface for verification of driver state.
/frameworks/rs/rsContext.cpp
c01af251941d39c3d741c5f0a6d69e58c7fc0f5b 04-Nov-2009 Jason Sams <rjsams@android.com> am eb7e27e8: am a1c3681f: am decc139b: Merge change I7a824efc into eclair

Merge commit 'eb7e27e8007d1b27d3e01c376b6747dc885db517'

* commit 'eb7e27e8007d1b27d3e01c376b6747dc885db517':
Support applications changing the surface attached to the RS.
168eecfcdc0b681e2251d443b41f11eb8a6142b8 04-Nov-2009 Jason Sams <rjsams@android.com> am 03fa848a: am ebca5eec: am 83665194: Merge change I9d5e03db into eclair

Merge commit '03fa848afd16ee678e2d04ec824794893f199804'

* commit '03fa848afd16ee678e2d04ec824794893f199804':
Fix RS bugs. We were holding a pointer to the script text from the java vm. Move freeing of objects to before context teardown to allow allocations to clean up their data.
458f2dc26b7d34c2138c7bfbd95914240084e6bd 03-Nov-2009 Jason Sams <rjsams@android.com> Support applications changing the surface attached to the RS.
/frameworks/rs/rsContext.cpp
e402ed33486730f1d06f080cdfc48132bf612b3a 03-Nov-2009 Jason Sams <rjsams@android.com> Fix RS bugs. We were holding a pointer to the script text from the java vm. Move freeing of objects to before context teardown to allow allocations to clean up their data.
/frameworks/rs/rsContext.cpp
230c94aa69e78ac4df2045a183f9a3f8c9eb9f60 03-Nov-2009 Jason Sams <rjsams@android.com> am 766df995: am d31b0e44: am 3bbb5e9a: Merge change Ib7a6c434 into eclair

Merge commit '766df995e30caa054cc25068e55f160c765590eb'

* commit '766df995e30caa054cc25068e55f160c765590eb':
Fix some leaks. This fixes the major malloc memory leak in allApps. Still tracking some much more minor issues.
bf3c14ebf456c745c084605dddeda08afdfc7987 02-Nov-2009 Jason Sams <rjsams@android.com> Fix some leaks. This fixes the major malloc memory leak in allApps. Still tracking some much more minor issues.
/frameworks/rs/rsContext.cpp
0ef2746cd5dfcd95b1b5f04c2e35a44007259d48 29-Oct-2009 Jason Sams <rjsams@android.com> am 3c249da7: am 21e799ed: am e9e50b57: Merge change I7136220b into eclair

Merge commit '3c249da7eaceaffae87657aeb7179ffc4a5e1570'

* commit '3c249da7eaceaffae87657aeb7179ffc4a5e1570':
Fix egl cleanup code on context teardown.
33b6e3b91329080e5cdd0b8fdbcd3e6a906032ae 27-Oct-2009 Jason Sams <rjsams@android.com> Fix egl cleanup code on context teardown.
/frameworks/rs/rsContext.cpp
5c3e3bc8af6de6be5e6bd68e1d5168496f99e6cf 26-Oct-2009 Jason Sams <rjsams@android.com> Fix dirty state tracking of allocation attached to ProgramVertex objects when being updated while not attached.
/frameworks/rs/rsContext.cpp
c2f94902d454ac724c4d7b5246373ca0ff2c99d1 16-Oct-2009 Jason Sams <rjsams@android.com> Fix bug where dirty messages for allocations attached to programVertex objects could be lost.
/frameworks/rs/rsContext.cpp
fb03a22ad2adadc1ff50a8b50d43ad7fcc3fa6ed 16-Oct-2009 Jason Sams <rjsams@android.com> Remove hack in RS that called exit to WAR now fixed driver bugs. Make gloabal init safe by locking around the critical code.
/frameworks/rs/rsContext.cpp
8cfdd24fec22080b72266d33f61befc4a98b77c6 15-Oct-2009 Jason Sams <rjsams@android.com> Minor bug fixes and add glError check.
/frameworks/rs/rsContext.cpp
6d751ef1b4611c6b5fc2085fa5ef9ae2f4e60c5a 08-Oct-2009 Jason Sams <rjsams@android.com> Add egl init start message to help debug driver init hangs.
/frameworks/rs/rsContext.cpp
9e4e13d87e834b1cb770407cef0778c262b02b72 07-Oct-2009 Jason Sams <rjsams@android.com> Fix tls crash on startup if more than one RS contexts are created in one process.
/frameworks/rs/rsContext.cpp
8c401effb0837155fc39ca0364f57a882d127d38 06-Oct-2009 Jason Sams <rjsams@android.com> Implement data push from scripts. Fixes the problem where apps would have to poll to monitor a scripts state.
Fix bug in StoreState where state could be overridden by the default unless the script used more than one state.

Change only impacts renderscript and renderscript apps.
/frameworks/rs/rsContext.cpp
b681c8af69ef6938c80dd5cc5fc920db94ee9f43 29-Sep-2009 Jason Sams <rjsams@android.com> Fix but processing raster state pragma.
rename stateFragmentStore to stateStore
/frameworks/rs/rsContext.cpp
f2649a961db2995e9e24a6c98f8a419f1496c1b7 26-Sep-2009 Jason Sams <rjsams@android.com> Improved object lifecycle tracking and fix leaks.
/frameworks/rs/rsContext.cpp
1fddd90849deaae89b546ff492c345d485bbce42 26-Sep-2009 Jason Sams <rjsams@android.com> Reduce debugging spew and add props to selectivly re-enable it.

change-id: Ib59ed5d7a9d479ccd1af456029735dbc65ae1efe
/frameworks/rs/rsContext.cpp
e514b45de8561fbc6ef6770845102ca10b0a69d7 25-Sep-2009 Jason Sams <rjsams@android.com> Improve renderscript context teardown. Track object in the system and then force their cleanup by releasing all user references once destroy context is called. Java layer will no longer send destroy notifications for objects garbage collected once a context is destroyed.
/frameworks/rs/rsContext.cpp
86f1b23aaaf9b8822a009d8c3e585e46768abb6a 25-Sep-2009 Jason Sams <rjsams@android.com> Implement pause/resume for the RS thread.
/frameworks/rs/rsContext.cpp
a891933b4c5ab1b63103add167269cfc404c2adf 25-Sep-2009 Jason Sams <rjsams@android.com> Minor cleanup of profile and compile logging.
/frameworks/rs/rsContext.cpp
ada7f272890d8791bc518c95989ad7d13050834d 24-Sep-2009 Jason Sams <rjsams@android.com> Fix invokables to make sure script pointers are setup before invoking function calls. Reduce app startup time up to 1s.
/frameworks/rs/rsContext.cpp
76371fff76412fd020e24ddb8bf1ddb5c75f0ed1 24-Sep-2009 Joe Onorato <joeo@android.com> Make the renderscript timing logging available by setting debug.rs.profile=1
/frameworks/rs/rsContext.cpp
5fd09d847586f9680b4f495413b6ca5fbb69af6e 23-Sep-2009 Jason Sams <rjsams@android.com> Add raster object to control point and line params. Add flag to force SW rendering.
/frameworks/rs/rsContext.cpp
8c9534b536081756a55e25a91f7630e8749b2bae 22-Sep-2009 Jason Sams <rjsams@android.com> Update viewport when height or width change.
/frameworks/rs/rsContext.cpp
a57c0a72c3b3babc2757d081ff8146ebaa2caf4c 04-Sep-2009 Jason Sams <rjsams@android.com> Remove "predefined" elements from Java layer. Static elements continue to exist but are no longer treated as a special version of element.
/frameworks/rs/rsContext.cpp
1d54f10f3c23e0d7ec57e52ec3b0701a2a5ed24e 04-Sep-2009 Jason Sams <rjsams@android.com> Improve structure support using symbol lookup of named structures in scripts to allow them to appear as just pointers to structs.
/frameworks/rs/rsContext.cpp
9397e30ce5fe3f6af9212a93b490836b04fdfffa 28-Aug-2009 Jason Sams <rjsams@android.com> Implement async data/subData. Implement TriangleMeshBuilder in SimpleMesh which replaces TriangleMesh. Update Film to use new builder.
/frameworks/rs/rsContext.cpp
306fb23e57c4a389eaf3159b9701a64cb56e284e 26-Aug-2009 Jason Sams <rjsams@android.com> Remove bogus comments and logging.
/frameworks/rs/rsContext.cpp
8c0ee6567b3c874dd472843eb7918ae68d1b9739 25-Aug-2009 Jason Sams <rjsams@android.com> Implement java interface for RS shutdown and fix shutdown deadlock with the command fifo.
/frameworks/rs/rsContext.cpp
afcb25c65e8145d15aaf50a0ca38333954a97000 25-Aug-2009 Jason Sams <rjsams@android.com> Add support for selecting the color bit depth and if the application used a depth buffer.
/frameworks/rs/rsContext.cpp
24371d93cdb6999971c4058f78974da3c3d5fc64 19-Aug-2009 Jason Sams <rjsams@android.com> Improved RS timing code to monitor where we spend CPU time.
/frameworks/rs/rsContext.cpp
5086938044e0a9b6b1138f915d0d252fe046e102 19-Aug-2009 Jason Sams <rjsams@android.com> Implement OOB destroy method that can be called from the java finalizer removing the need to explicitly destroy objects.
/frameworks/rs/rsContext.cpp
707aaf341a4b068e6ccadf923af85acdd85fd775 18-Aug-2009 Jason Sams <rjsams@android.com> Cleanup of object destruction. No need to have a per-class destruction function. This was a legacy of the distant past when the classes did not have a common base.
/frameworks/rs/rsContext.cpp
fcd3192ebff8ab58d841836b7e94361d0998338c 18-Aug-2009 Jason Sams <rjsams@android.com> Remove global IO context and integrate it into the RS context.
/frameworks/rs/rsContext.cpp
8b2c065dfc16c148e2829a19e83d2269b9bcd4cc 13-Aug-2009 Jason Sams <rjsams@android.com> Implement reflecting Java objects into the ACC enviroment.
/frameworks/rs/rsContext.cpp
57b79ceb1126e3797fa42367b97dd7bcfcda1ed9 10-Aug-2009 Joe Onorato <joeo@android.com> Let java put #defines into renderscript
/frameworks/rs/rsContext.cpp
cfb1d11ce6826fce7241d316d8b7dcab661f63a6 05-Aug-2009 Jason Sams <rjsams@android.com> Remove useless slot from ProgramVertex. Optimize GL state setup.
/frameworks/rs/rsContext.cpp
c9d43db4d216b01b13aebfdb31d5615909591b33 28-Jul-2009 Jason Sams <rjsams@android.com> Add "boxed" bitmap uploads which simply place a non-pow2 bitmap into the smallest larger pow texture. The added space is filled black.
/frameworks/rs/rsContext.cpp
b80dfa72dfdd146a9ddee948ad76635dbea3c0cd 11-Jul-2009 Jason Sams <rjsams@android.com> More test app work
/frameworks/rs/rsContext.cpp
6eee87f74a9566fbed31d9713bec07bc002ac206 25-Jun-2009 Mathias Agopian <mathias@google.com> merge master in master_gl
992a0b70d8fd7a14f0c57bc3c7e16c1f269a6609 23-Jun-2009 Jason Sams <rjsams@android.com> Cleanup logging and fix a startup race condition that manifested on Firestone.
/frameworks/rs/rsContext.cpp
5ae678f2e68e25bd74cdc408df354c3b6fe481bf 23-Jun-2009 Mathias Agopian <mathias@google.com> update renderscript to master_gl APIs
/frameworks/rs/rsContext.cpp
1aa5a4eb81b8b88aeb5d2b6f4c47356fd0a62923 23-Jun-2009 Jason Sams <rjsams@android.com> Cleanup includes so Log.h can use the tag. rsUtils.h is the file that should be included everywhere and contain rs global defines.
/frameworks/rs/rsContext.cpp
e57691037aea219562ac686429b4b98202aab7bc 20-Jun-2009 Jason Sams <rjsams@android.com> checkpoint filmstrip, implemented TLS.
/frameworks/rs/rsContext.cpp
732f1c0a29cc468ea271ca3bd654239a0a973fd5 19-Jun-2009 Jason Sams <rjsams@android.com> Replace spins with proper pthread conditions.
/frameworks/rs/rsContext.cpp
8ce125be69531dbf3a7e856d5e59d1b8e2789db0 18-Jun-2009 Jason Sams <rjsams@android.com> Implement default programs and implement defaults and parents for imports.
/frameworks/rs/rsContext.cpp
56bc1af0a040b003164e3394f1c7a277b15e7d85 17-Jun-2009 Jason Sams <rjsams@android.com> Switch fountain to use ProgramVertex rather than hard coded camers in scripts. Remove camera code from scripts.
/frameworks/rs/rsContext.cpp
a4a54e42fc710a62b47cbcb9d64c34a190429d9e 11-Jun-2009 Jason Sams <rjsams@android.com> Fix bug with bad conversion of java strings to C strings for object names. Update test app to test object defines.
/frameworks/rs/rsContext.cpp
a0a1b6fbece2eb8d72d788422ab3e5f58d5a9216 11-Jun-2009 Jason Sams <rjsams@android.com> Add named objects and implement support for ProgramFragmentStore and ProgramFragment to be used by name in scripts.
/frameworks/rs/rsContext.cpp
1030893d9b99b72468034da13df025bda479bb97 09-Jun-2009 Jason Sams <rjsams@android.com> checkpoint pragma support. Includes more cleanup of script enviroment storage to keep the env settings in the base and only the per language state in ScriptC.
/frameworks/rs/rsContext.cpp
928b734b2fbba0800567c8b7e686bcf5f45483cc 09-Jun-2009 Jason Sams <rjsams@android.com> Move placement of script enviroment data to base.
/frameworks/rs/rsContext.cpp
efb8de1ef851c9c2a042ad06f64e33bb8b366041 09-Jun-2009 Jason Sams <rjsams@android.com> Fix build issue and ref count bug with scripts.
/frameworks/rs/rsContext.cpp
a44cb29164726cd9d812117819abdd7b60dfdd93 05-Jun-2009 Jason Sams <rjsams@android.com> Add support for scripts to return an animation flag. This allows them to indicate they are generating changing content and the rs thread to sleep if the content is static.
/frameworks/rs/rsContext.cpp
a658e905f14fe500bfee3812b213a73cb37ef6f2 04-Jun-2009 Jason Sams <rjsams@android.com> Set the RS thread priority.
/frameworks/rs/rsContext.cpp
6678e9b2568ad041429a2477177133fe4932159f 27-May-2009 Jason Sams <rjsams@android.com> Implement first pass bitmap to allocation support. The Java bindings can create a 2D allocation by passing in a Bitmap object.
/frameworks/rs/rsContext.cpp
326e0ddf89e8df2837752fbfd7a014814b32082c 22-May-2009 Jason Sams <jsams@google.com> Add the Renderscript library. (Not in the build by default yet.)

This library can be used to create animated 3D User Interfaces.

This library is currently under heavy development, so it's not part of
the build by default.

In order to build this library, you must define

BUILD_RENDERSCRIPT=true

in your build environment.

You will also have to manually edit

build/core/prelink-linux-arm.map

And add libRS and libRS_jni at the end like this (exact address may change.)

libRS.so 0x9A100000
libRS_jni.so 0x9A000000
/frameworks/rs/rsContext.cpp