History log of /frameworks/rs/driver/rsdRuntimeStubs.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9f39aaf0145e9607200141e4716b73319055e6d7 13-Oct-2014 Tim Murray <timmurray@google.com> Fix rsDebug issues with compat lib and long/long long changes.

bug 17934731

Change-Id: Ie867c25a40dc4339731d74141b5107082cf7ee4e
/frameworks/rs/driver/rsdRuntimeStubs.cpp
cbdb6480528fc374144df1ae9c604c9100d33268 09-Oct-2014 Tim Murray <timmurray@google.com> Fix missing relocation entries and libclcore entry points.

This fixes support for rsSetElementAt_ulong from pre-21 SDKs.

bug 17934731

Change-Id: I1598f612257b8faeec871df6b2f126395b0e7d82
/frameworks/rs/driver/rsdRuntimeStubs.cpp
240a6c96eb94734a84eed53349fb0928d3ce6d19 09-Sep-2014 Tim Murray <timmurray@google.com> Fix x86 calling convention issue.

bug 17398497

Change-Id: I4ef4e55f9b948b234b782a340178d4e57e76274f
/frameworks/rs/driver/rsdRuntimeStubs.cpp
47211dca5b2fc1aa5680ddebe5c4270c08c06e5d 21-Aug-2014 Tim Murray <timmurray@google.com> Fix GetAllocation in 64-bit.

bug 16846318

Change-Id: I639601939c3715a74153fd8d5d281e89fca8c463
/frameworks/rs/driver/rsdRuntimeStubs.cpp
d8b8f8a16415496acc9844a89599ce7f377bd04d 20-Aug-2014 Jason Sams <jsams@google.com> Fix ulong

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

bug 16846318

Change-Id: I806f392c12af881b54aa287153bd66ad7aa1b81e
/frameworks/rs/driver/rsdRuntimeStubs.cpp
444bd208b4f129bd8e4c0cce4cf6d709c8900891 14-Aug-2014 Yong Chen <yong.a.chen@intel.com> Explicitly accept RS large objects as references.

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

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

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

bug: 16846318

Change-Id: I5bc29de5259eda26967f2b32980d40ce249f9599
Signed-off-by: Yong Chen <yong.a.chen@intel.com>
/frameworks/rs/driver/rsdRuntimeStubs.cpp
64147ebf4f0b1c23d2caf2cf7c1675d27de97d99 27-Jul-2014 Tim Murray <timmurray@google.com> Update time_t definition for 64-bit.

bug 16846318

Change-Id: I85918485b0bd446147defeee01b57a58b4b0620c
/frameworks/rs/driver/rsdRuntimeStubs.cpp
1aa9dfc002f6b763d34d75d9f47abb4aa70584a2 06-Aug-2014 Tim Murray <timmurray@google.com> Bugfixes for AArch64.

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

bug 16846318

Change-Id: I7f6a4ff66fd1b3ad40b08cfc9ecdda7d53e95c7d
/frameworks/rs/driver/rsdRuntimeStubs.cpp
f29edf80510d483b8663e9d8b859959e37361aee 05-Aug-2014 Jason Sams <jsams@google.com> Fix isObject when in 64bit mode.

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

Change-Id: I90d1b93c45ff5bc84957d5441ab48a4e2f6feb20
/frameworks/rs/driver/rsdRuntimeStubs.cpp
a36c50a6ab87f4c9049318d4c6c8ec7b0a1e6e12 17-Jun-2014 Jason Sams <jsams@google.com> Add 64bit large object support

Add HAL hooks for filling in LO fields.

Change-Id: Ib9bdee714a062de519d2a9708c1016404a1b11a4

Conflicts:
driver/rsdBcc.cpp
driver/rsdCore.cpp
rsAllocation.h
rs_hal.h
/frameworks/rs/driver/rsdRuntimeStubs.cpp
e195a3f57ace3b66d313a6ee88c6e93d5c9d87f4 13-Mar-2014 Tim Murray <timmurray@google.com> Make RS compile on ARM64.

bug 13280327

Change-Id: I79080c448ca17d0cba8df075737c22b24ce9a085
/frameworks/rs/driver/rsdRuntimeStubs.cpp
cadee38f6940e5584d3ec3398a21bd2a494361e2 12-Dec-2013 Stephen Hines <srhines@google.com> Add missing functions and tests for support library.

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

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

Change-Id: I6cb1972a44f66dc7fed8fe3cf0329720d166af81
/frameworks/rs/driver/rsdRuntimeStubs.cpp
a5d9bef6b53ba394087c7c7b9cc60d3aaa7f121b 06-Dec-2013 Stephen Hines <srhines@google.com> Add tests for rsDebug() in support library and fix exported functions.

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

Change-Id: I8f3dad73d0f17f22f66703aff56d6f712fa6df1f
/frameworks/rs/driver/rsdRuntimeStubs.cpp
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/driver/rsdRuntimeStubs.cpp
276000a3673e639f9abc41db4709c1b0a96c1bf9 03-Dec-2013 Stephen Hines <srhines@google.com> Add missing rsForEach()/rsSendToClient*() functions and API tests.

These were missing from the support library.

Change-Id: I53dd062fc0f1d9a6f0ce06d148c4047ebb338b71
/frameworks/rs/driver/rsdRuntimeStubs.cpp
7a01126d25c081f5b613eea80e5ff7e6c75c940f 27-Nov-2013 Stephen Hines <srhines@google.com> Add tests and missing functions for rs_allocation APIs.

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

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

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

Change-Id: If341b352ad671be40b860a502c345a8149bf10f3
/frameworks/rs/driver/rsdRuntimeStubs.cpp
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/driver/rsdRuntimeStubs.cpp
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/driver/rsdRuntimeStubs.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/driver/rsdRuntimeStubs.cpp
d09b9d667438c82e00c83cd21f693f32e3cf9f4b 03-Apr-2013 Jason Sams <jsams@google.com> Support all get/set element in debug

Adds error checking and works around ABI issues

Change-Id: Iad5df03be9235c4abdcba070215d9de0268b4ef8
/frameworks/rs/driver/rsdRuntimeStubs.cpp
d6f1f46b2929ed56c73ba32357cde31b82972fbe 26-Mar-2013 Tim Murray <timmurray@google.com> Add some missing compat lib functions and fix a bug.

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

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

Change-Id: Ibfa2c7c7da56d158f424ac343e364feacd0a21da
/frameworks/rs/driver/rsdRuntimeStubs.cpp
5261a5ea546ff358edd5aac7602fc4132434f481 28-Feb-2013 Jason Sams <jsams@google.com> Add checked get/set element at.

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

Change-Id: Ifb484edda665959b81d7b1f890d108bfa20a535d
/frameworks/rs/driver/rsdRuntimeStubs.cpp
f598811a60088236222bb1879503842094ca378b 16-Oct-2012 Stephen Hines <srhines@google.com> Fix use of rs_script_call_t.

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

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

Change-Id: I047b32325efe2fa471b73c48fa7296beecc0c47d
/frameworks/rs/driver/rsdRuntimeStubs.cpp
807fdc4b6f3fb893015ee136565d6151bb2332d3 26-Jul-2012 Jason Sams <jsams@google.com> Move memory layout to driver.

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

Change-Id: I30967c739800cd4b97186e9fc8b69f26a3f2787d
/frameworks/rs/driver/rsdRuntimeStubs.cpp
a3af2cd3cc684aee2a090475f797936f3bd1b8cb 25-Apr-2012 Shih-wei Liao <sliao@google.com> Start using new libbcc APIs.

Change-Id: If6b7b53890e3d4ee7db3b6c91bec9fe07fbadcd1
/frameworks/rs/driver/rsdRuntimeStubs.cpp
a1dd74c5ce4db0991020a4836be24fc35af4f301 09-Jul-2012 Rajeev Sharma <rdsharma@google.com> Add rsDebug implementations for all basic types

Change-Id: Iae69fc211de166da486d5e638b9b4b48e23a743b
/frameworks/rs/driver/rsdRuntimeStubs.cpp
aa152101cc4d04597d9aefc3e5a1454eaf39d2cc 14-Jun-2012 Jason Sams <jsams@google.com> Fix single level forEach threading

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

Change-Id: I617cb2b1ccb402526a78338612b1614f94da4efb
/frameworks/rs/driver/rsdRuntimeStubs.cpp
6537404d5ad7ec19f0f26533d695d39909782781 15-May-2012 Stephen Hines <srhines@google.com> Support float vector versions of rsDebug() directly.

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

Change-Id: I3133b1f6220ccd0fa9f8d2bc9502074beaa45d1a
/frameworks/rs/driver/rsdRuntimeStubs.cpp
070cb235d9f094048c0260aa72d5acf61ed840a3 03-May-2012 Stephen Hines <srhines@google.com> Revert "Start chewing new libbcc APIs."

This reverts commit ec3fc1163c01e18b1454057723c451f0d96868ad.
/frameworks/rs/driver/rsdRuntimeStubs.cpp
ec3fc1163c01e18b1454057723c451f0d96868ad 25-Apr-2012 Shih-wei Liao <sliao@google.com> Start chewing new libbcc APIs.

Change-Id: Idb4166eb0f0137a69b0c76be1e7fcb0d09bb1613
/frameworks/rs/driver/rsdRuntimeStubs.cpp
b322033c13487a174bb9c26466e9684d1ff4de8d 02-Apr-2012 Jason Sams <jsams@google.com> Implement IO_OUTPUT + SurfaceTexture

Change-Id: Id96fecd6d768196523330c5eda77c4ee86b9bd3c
/frameworks/rs/driver/rsdRuntimeStubs.cpp
653b53ebcd2bedc94ac486080d2e82e1920232e3 24-Feb-2012 Alex Sakhartchouk <alexst@google.com> Removing GL calls from librs

Change-Id: Ida22199a33f0f9fd534dcc5951d12937967a187b
/frameworks/rs/driver/rsdRuntimeStubs.cpp
da042e76b482e026592c42e5ee57b86413b9c57a 10-Jan-2012 Alex Sakhartchouk <alexst@google.com> Merge "Adding ability to bind constants to shaders." into graphics-dev
a720a144508edd91e4790b23eadd6cd270368df9 10-Jan-2012 Alex Sakhartchouk <alexst@google.com> Adding ability to bind constants to shaders.

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

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

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

Bug: 5449033
Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
/frameworks/rs/driver/rsdRuntimeStubs.cpp
c7cb70396934adcb3fd620d147dd5ea1c3ff8def 04-Jan-2012 Steve Block <steveblock@google.com> am 41891aea: Merge "Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE"

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

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

Bug: 5449033
Change-Id: I4c4e33bb9df3e39e11cd985e193e6fbab4635298
/frameworks/rs/driver/rsdRuntimeStubs.cpp
9e0afb5a2b3e476c42a373e7cd89cef4a34f8195 31-Oct-2011 Jason Sams <rjsams@android.com> Path rendering

Change-Id: I5379a676c9ec6a9b25f21bc1e050053f27e411dd
/frameworks/rs/driver/rsdRuntimeStubs.cpp
1e5149f5cd3e75a010b58b985b1151d955d227d1 09-Aug-2011 Stephen Hines <srhines@google.com> Migrate perf-critical functions away from librs.

BUG=3497315

Change-Id: Ieaa0d64933767d422aa62740d72b31042dcd4a2f
/frameworks/rs/driver/rsdRuntimeStubs.cpp
c500e74d0848b721bf01cf0ab344a6adb035c312 25-Jul-2011 Jason Sams <rjsams@android.com> Add size param to rsForEach
bug 5074640


Change-Id: I395bd8b295beacc979681ccdd3451d9d6cc3d672
/frameworks/rs/driver/rsdRuntimeStubs.cpp
02932bf86982eb1220033bbb2227f072ac9cec0a 24-Jun-2011 Stephen Hines <srhines@google.com> Move divsi3, modsi3, udivsi3, umodsi3 to libbcc.

BUG=3435530

Change-Id: I4e90a6cdf5af534f93d83093ea31b1defd1e896c
/frameworks/rs/driver/rsdRuntimeStubs.cpp
a94952436aeb251f587c1bccdf94c7f75285dfe2 16-Jun-2011 Alex Sakhartchouk <alexst@google.com> Adding ability to read back fbo data to renderscript

Change-Id: Ie684c26cbcde22f2483b43415dfc39a3de22c5a1
/frameworks/rs/driver/rsdRuntimeStubs.cpp
74a827988567a9d65954bb0d825a3ba4a97e2947 14-Jun-2011 Alex Sakhartchouk <alexst@google.com> Allocation copy functions.

Change-Id: Idce6d44a4f4bb2e399284a40c0f90dc1bff912fd
/frameworks/rs/driver/rsdRuntimeStubs.cpp
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/driver/rsdRuntimeStubs.cpp
83c451a4ef4388e002482e383d488ca9b7b7600d 21-Apr-2011 Jason Sams <rjsams@android.com> Move TLS behind hal.

Change-Id: I9e84acb3736bc98fa5fb0720bddb13a030285319
/frameworks/rs/driver/rsdRuntimeStubs.cpp
2b3ce1d5812fb3ea02d28ae75600d8bc6689acaa 21-Apr-2011 Jason Sams <rjsams@android.com> Remove accidental logging.

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

Change-Id: I8e0250a642844a2ad3ff6efc38e385445b7da032
/frameworks/rs/driver/rsdRuntimeStubs.cpp