summaryrefslogtreecommitdiff
path: root/rsScriptC.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix crash in tracing code.Stephen Hines2016-06-141-11/+5
| | | | | | | | | | | | | Bug: http://b/29358536 When we switched to standalone bcc, we accidentally removed the setters for this name field. It is simplest to just use the slot number for fixing this today, and revisit how to populate a proper name later on, since it would technically require vendor driver updates. (cherry picked from commit d969fdc55bc82d48242be3c6193a6548137e9579) Change-Id: I38a67a10d960d8fd2dddd03dc5155e3781f390d8
* Delete simple reduction implementation.David Gross2016-06-101-25/+5
| | | | | Bug: 27298560 Change-Id: I8c3d568e98aaf0b7d86881c985d13ed5b8e95338
* Merge "Derive the bcc optimization level from the input bitcode."Stephen Hines2016-01-301-0/+5
|\
| * Derive the bcc optimization level from the input bitcode.Stephen McGroarty2015-09-021-0/+5
| | | | | | | | | | | | | | | | | | | | 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>
* | Support for general reduction kernels.David Gross2016-01-191-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Requires coordinated change in frameworks/base. Requires coordinated change in frameworks/compile/libbcc in order for RsTest to run. At present, general reduction kernels are run single-threaded. Also: Remove dead struct field MTLaunchStructForEach::sig. Bug: 23535724 Change-Id: Ice17ccf20a902f8a106eaa62ec071d46e3c0ad8c
* | Switch to a local BitcodeTranslator.Stephen Hines2015-12-031-19/+5
|/ | | | | | | | The original implementation was using pointers for bitcode lifetime issues, but we can now use a regular local (non-pointer) variable instead. Change-Id: I5b36f813476a5d433d9926dfb91570b8ede15644
* Add a basic implementation of the reduce kernel API to the CPUMatt Wala2015-08-141-1/+31
| | | | | | | | | | reference implementation. Bug: 22631253 For now, this just runs a serial reduction on one thread. Change-Id: I34c96d24bb6f44274de72bb53160abcf79d143b0
* Handle older structure sizes by zeroing new fieldsPirama Arumuga Nainar2015-04-281-0/+9
| | | | | | | | | | | | | | | 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
* Fix issue with older structure sizesStephen Hines2015-04-141-0/+4
| | | | | | | | | 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
* Add fatal error checkJason Sams2015-03-181-0/+3
| | | | | | | | 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
* Revert "Replaced android::Vector with std::vector."Yang Ni2015-02-151-10/+11
| | | | | | | | | | b/19148482 This reverts commit 93d6bc872b7d9fba63abfa7513d56b38d9c3d371. I also made some changes to Make it work with HEAD. Change-Id: I5e516976ec1d85ffe1cf388c01795348a9441982
* Add a dumpBitcode() method to facilitate debugging.Stephen Hines2014-12-231-0/+44
| | | | Change-Id: I300bc9cf9f06c315c053cb302fdf33a9ca899972
* Replace NULL macros with nullptr literals.Chris Wailes2014-08-201-7/+7
| | | | Change-Id: I918c40879aa547438f77e7d1a95fa2aa33bec398
* Replace android::String8 with std::stringChris Wailes2014-08-201-13/+41
| | | | Change-Id: I5b2b6d3e38afd0b040f0a584613745206bf01ba0
* Replaced android::Vector with std::vector.Chris Wailes2014-08-181-9/+10
| | | | Change-Id: I4c6abd964dc4b1412ec2e592fc8e835fecfe53f6
* Collapse code paths for single- and multi-input kernels.Chris Wailes2014-08-151-32/+14
| | | | | | | | | | | 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
* Revert "Collapse code paths for single- and multi-input kernels."Stephen Hines2014-08-131-14/+32
| | | | | | This reverts commit 818cfa034e257c7bb48356257f5cb67334e19aa6. Change-Id: I59f39f52e6c8f60bb01cbcb8ccf2215eaf46a57f
* Collapse code paths for single- and multi-input kernels.Chris Wailes2014-08-121-32/+14
| | | | | | | | | | | 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
* Adds support for multi-input kernels to Frameworks/RS.Chris Wailes2014-07-081-0/+32
| | | | | | | | | | | | | This patch modifies Frameworks/RS in the following ways: * Adjusted the data-layout of the C/C++ version of RsForEachStubParamStruct to accommodate a pointer to an array of input allocations and a pointer to an array of stride sizes for each of these allocatoins. * Adds a new code path for Java code to pass multiple allocations to a RS kernel. * Packs base pointers and step values for multi-input kernels into the new RsForEachStubParamStruct members. Change-Id: I46d2834c37075b2a2407fd8b010546818a4540d1
* Remove FAKE_ARM64_BUILD now that we have 64 build working.Jean-Luc Brouillet2014-06-101-7/+3
| | | | Change-Id: Ieb6627adcd1d097fe709559e182efcfc6841d13e
* Remove the obsolete ScriptCState. Simplify cascading #ifdefs.Jean-Luc Brouillet2014-03-251-52/+3
| | | | | | | | Change-Id: I1cb561c6325d80c764d386f7b76e6a416261cd8f modified: rsContext.h modified: rsScriptC.cpp modified: rsScriptC.h
* Make RS compile on ARM64.Tim Murray2014-03-131-1/+11
| | | | | | bug 13280327 Change-Id: I79080c448ca17d0cba8df075737c22b24ce9a085
* Fix up master issues with tracing/logging and the compatibility library.Stephen Hines2013-07-111-2/+1
| | | | Change-Id: Ia35ca58807a78ea01c4da6c44b4d5e29e65e0cfd
* resolved conflicts for merge of 5376c9bf to masterStephen Hines2013-07-111-2/+1
|\ | | | | | | Change-Id: I51507da10f8d7116a2aa29446a00a43d397a37c8
| * Remove libutils and fix rsDebug for RS support library.Stephen Hines2013-07-101-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Add the name of the forEach functions to the tracing outputTobias Grosser2013-06-171-2/+17
| | | | | | | | | | | | | | | | | | | | Instead of showing up as 'runForEach', kernels are now e.g. printed as 'runForEach_createAntLookup'. The String8 is carefully constructed here, such that we only pay the string processing overhead in case tracing is actually enabled. Change-Id: Id18319e271a02cbe888bcb9fe806794007d00fca
* | Enable very basic tracing support.Tim Murray2013-05-231-1/+5
|/ | | | Change-Id: I524a857390e0bbc49273989caf56f03b51de65cf
* Add x86 server support.Tim Murray2013-03-191-2/+7
| | | | Change-Id: I674acaf15b67afa48bc736f72942a11e2e38e940
* Cleanup diff with compat.Jason Sams2012-12-191-0/+17
| | | | Change-Id: Ieedcdec03ccb05cac68cbebbd398e07cb885f4d3
* Move to smart pointers for refcounting RS contextsTim Murray2012-11-051-1/+7
| | | | Change-Id: I0dc6adc4e02c7427a4234c549d3555a501fe5f90
* Ensure that the cache directory exists before calling compiler.Tim Murray2012-10-011-0/+44
| | | | | Bug: 7077014 Change-Id: Iab94a265193d4ff749573520939c974a982ac7c1
* Move memory layout to driver.Jason Sams2012-07-251-22/+1
| | | | | | | | 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
* Support running ForEach on non-root functions.Stephen Hines2012-02-221-2/+3
| | | | | | BUG=6000538 Change-Id: Ie2b16893b150cc5955ee4b9d028c988f69a82744
* Properly recover from failed compilation.Stephen Hines2012-02-021-1/+1
| | | | | | | | | | BUG=5955072 We used to call delete, which did not update the Context's view of the world, leading to potential segfaults on Context teardown. This change also enables exceptions to be thrown when runtime errors are encountered. Change-Id: If63578efff2d7dd03639da1049c1a5ebc69fde35
* Remove wrapper version check assert.Stephen Hines2012-02-011-1/+0
| | | | | | | This really shouldn't have been here to begin with, since the wrapper version should be meaningless to libRS. Change-Id: I329446ed96d1a70197247735e267b8539a8c83a2
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-081-12/+12
| | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
* Merge "Add support for handling a bitcode wrapper to librs."Stephen Hines2011-11-231-1/+19
|\
| * Add support for handling a bitcode wrapper to librs.Stephen Hines2011-11-221-1/+19
| | | | | | | | | | | | BUG=5425905 Change-Id: I75676060703df6d9043b287fea900c4379455ee2
* | Fix script init error handling.Jason Sams2011-11-221-3/+8
|/ | | | Change-Id: I7ceb0af4dfd12db0274985ff658f678d7af829ff
* Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGESteve Block2011-10-261-3/+3
| | | | | | | See https://android-git.corp.google.com/g/#/c/143865 Bug: 5449033 Change-Id: I0122812ed6ff6f5b59fe4a43ab8bff0577adde0a
* Fix remaining .rs.dtor() issue for RS.Stephen Hines2011-09-011-0/+1
| | | | | | BUG=5186750 Change-Id: I74765b844d28ed780f9c9e291b8e0de94352f74b
* Start using bcinfo components within librs.Stephen Hines2011-08-031-0/+29
| | | | | | BUG=4942491 Change-Id: I3a46783511c4954bac9eadbbbefe5abf85498c16
* Add slot number to forEach hal.Jason Sams2011-07-131-1/+1
| | | | Change-Id: I0f2992d5f4128422d07f897b335c219cc7f1d02c
* More work to make libRS buildable on the host.Alex Sakhartchouk2011-06-031-7/+2
| | | | Change-Id: I239585ef7c1334f7fc19fa6423535dea7b9a753f
* Modifying libRS internal communication to handle network rendering.Alex Sakhartchouk2011-04-251-3/+4
| | | | Change-Id: I8c8b3cc3402ecf4ba774e1d668dce25ff0af0e5a
* Create runtime stubs for compute driver.Jason Sams2011-04-201-3/+5
| | | | Change-Id: I8e0250a642844a2ad3ff6efc38e385445b7da032
* Seperate GL from RS program store.Jason Sams2011-04-041-1/+1
| | | | Change-Id: I0eae9c0699845af8e8611b065e70738cc9f2b15c
* Migrate thread launch to driver.Jason Sams2011-03-171-201/+3
| | | | Change-Id: If182c524cceb327547640f22f956856d291d1787
* Start seperating out RS compute implementation. Create halJason Sams2011-03-171-234/+66
| | | | | | layer to seperate from runtime. Change-Id: Idf5c1261be4131690d25c15948e98324e979b4f9
* Moving dependency includes out of librs headers.Alex Sakhartchouk2011-02-251-0/+2
| | | | | | When we want to use it on the host, we shouldn't need to go hunting for every external dependency Change-Id: I885262acdcdf5ede4a9392235f35d5e2f7038e8b