History log of /frameworks/rs/rsRuntime.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5e48002cc4a11e9ce63852a77488cfb9f6765c2b 06-Apr-2016 Yang Ni <yangni@google.com> Avoid accessing TLS in rsClearObject()

Bug: 27874893
Bug: 27925095

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

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

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

Change-Id: I5f1d91a4cc1ce9bf2b3386fbef6f1171638b5266
(cherry picked from commit ade3137c22dd91694742145c2d5fe9d6bae17516)
/frameworks/rs/rsRuntime.h
6b387c1e466b507007f0b388da8b037362154e9a 12-Oct-2015 Pirama Arumuga Nainar <pirama@google.com> Driver support for creating allocations from a Script

Bug: 23535985

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

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

Change-Id: I9bb7c72a8dd3cd1aac2de3bad92276c3af662484
/frameworks/rs/rsRuntime.h
dda5cb5b59ae02ec03001ea12c374413714f3d38 27-Oct-2015 Yang Ni <yangni@google.com> Launch options & multi inputs for single-source RS

Bug: 23535985

Also renamed rsParallelFor to rsForEach, and deprecated previous
rsForEach.

Change-Id: Ibc22bd5e9585a4471b15920ef60fe1fe2312de49
/frameworks/rs/rsRuntime.h
12398d81f32e5e0479d02b8608a83c75cd991bb3 18-Sep-2015 Yang Ni <yangni@google.com> Add rsForEachInternal

Bug: 23535985

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

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

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

Change-Id: I6e2cf3db868f426aa8e0b9a77732b66c1e6b9f03
/frameworks/rs/rsRuntime.h
9479e5bf0152ecff022cd374e2e80905f88b1a5d 28-Apr-2015 Pirama Arumuga Nainar <pirama@google.com> Handle older structure sizes by zeroing new fields

Bug 19734267
Bug 19866850

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

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

Change-Id: I3bb2527eadcbcdb85a76a1f5568269bbfdee972b
/frameworks/rs/rsRuntime.h
5d95a78ab5758c2625949d78bb67eb3c5d9701cc 14-Apr-2015 Stephen Hines <srhines@google.com> Fix issue with older structure sizes

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

Bug: 19734267

Change-Id: I0ffd3dc4cea1640f2b14c588df3a93eee749e74e
/frameworks/rs/rsRuntime.h
f37121300217d3b39ab66dd9c8881bcbcad932df 17-Jul-2014 Chris Wailes <chriswailes@google.com> Collapse code paths for single- and multi-input kernels.

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

Change-Id: Id70a223ea5e3aa2b0b935b2b7f9af933339ae8a4
/frameworks/rs/rsRuntime.h
4b2bea3dc20865f3a198797702e19912a6a2171c 13-Aug-2014 Stephen Hines <srhines@google.com> Revert "Collapse code paths for single- and multi-input kernels."

This reverts commit 818cfa034e257c7bb48356257f5cb67334e19aa6.

Change-Id: I59f39f52e6c8f60bb01cbcb8ccf2215eaf46a57f
/frameworks/rs/rsRuntime.h
818cfa034e257c7bb48356257f5cb67334e19aa6 17-Jul-2014 Chris Wailes <chriswailes@google.com> Collapse code paths for single- and multi-input kernels.

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

Change-Id: I77e4b155cc7ca1581b05bf901c70ae53a9ff0b12
/frameworks/rs/rsRuntime.h
6a45ddb32f391060aa05da6ff09c4814d450586e 06-Aug-2014 Tim Murray <timmurray@google.com> Bugfixes for AArch64.

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

bug 16846318

Change-Id: I7f6a4ff66fd1b3ad40b08cfc9ecdda7d53e95c7d
/frameworks/rs/rsRuntime.h
05ef73f2d934f1083cc3b8aeb33fe21de9d6e88f 05-Aug-2014 Jason Sams <jsams@google.com> Fix isObject when in 64bit mode.

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

Change-Id: I90d1b93c45ff5bc84957d5441ab48a4e2f6feb20
/frameworks/rs/rsRuntime.h
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/rsRuntime.h
70537f52bdc6e8702db03cc91fe511371fb31267 04-Dec-2013 Stephen Hines <srhines@google.com> Retain older message APIs since existing GPU drivers depend on them.

Change-Id: Ic5425fafb7971b6094108d79346d067785b91735
/frameworks/rs/rsRuntime.h
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
/frameworks/rs/rsRuntime.h
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
/frameworks/rs/rsRuntime.h
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
/frameworks/rs/rsRuntime.h
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/rsRuntime.h
0b575de8ed0b628d84d256f5846500b0385979bd 15-Mar-2013 Tim Murray <timmurray@google.com> Add x86 server support.

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

Change-Id: Ieedcdec03ccb05cac68cbebbd398e07cb885f4d3
/frameworks/rs/rsRuntime.h
709a0978ae141198018ca9769f8d96292a8928e6 16-Nov-2012 Jason Sams <jsams@google.com> Separate CPU driver impl from reference driver.

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

Change-Id: I047b32325efe2fa471b73c48fa7296beecc0c47d
/frameworks/rs/rsRuntime.h
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
/frameworks/rs/rsRuntime.h
653b53ebcd2bedc94ac486080d2e82e1920232e3 24-Feb-2012 Alex Sakhartchouk <alexst@google.com> Removing GL calls from librs

Change-Id: Ida22199a33f0f9fd534dcc5951d12937967a187b
/frameworks/rs/rsRuntime.h
a720a144508edd91e4790b23eadd6cd270368df9 10-Jan-2012 Alex Sakhartchouk <alexst@google.com> Adding ability to bind constants to shaders.

Change-Id: I63b664fd2fec7e0c8157b7185782192132222f1a
/frameworks/rs/rsRuntime.h
9e0afb5a2b3e476c42a373e7cd89cef4a34f8195 31-Oct-2011 Jason Sams <rjsams@android.com> Path rendering

Change-Id: I5379a676c9ec6a9b25f21bc1e050053f27e411dd
/frameworks/rs/rsRuntime.h
74a827988567a9d65954bb0d825a3ba4a97e2947 14-Jun-2011 Alex Sakhartchouk <alexst@google.com> Allocation copy functions.

Change-Id: Idce6d44a4f4bb2e399284a40c0f90dc1bff912fd
/frameworks/rs/rsRuntime.h
eb4fe18dd88634330f9566cbb9e785d8c7ec5813 27-May-2011 Jason Sams <rjsams@android.com> Start splitting allocation into hal and core.

Change-Id: Ic506abb0469238cb0471eb1401cfcb7b2fbbe4bb
/frameworks/rs/rsRuntime.h
87fe59a2f4d4c74539bfa0bff5f9a7e320e99415 21-Apr-2011 Jason Sams <rjsams@android.com> Create runtime stubs for compute driver.

Change-Id: I8e0250a642844a2ad3ff6efc38e385445b7da032
/frameworks/rs/rsRuntime.h