summaryrefslogtreecommitdiff
path: root/rsScriptC.h
AgeCommit message (Collapse)Author
2014-12-23Add a dumpBitcode() method to facilitate debugging.Stephen Hines
Change-Id: I300bc9cf9f06c315c053cb302fdf33a9ca899972
2014-08-20Replace NULL macros with nullptr literals.Chris Wailes
Change-Id: I918c40879aa547438f77e7d1a95fa2aa33bec398
2014-08-15Collapse code paths for single- and multi-input kernels.Chris Wailes
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
2014-08-13Revert "Collapse code paths for single- and multi-input kernels."Stephen Hines
This reverts commit 818cfa034e257c7bb48356257f5cb67334e19aa6. Change-Id: I59f39f52e6c8f60bb01cbcb8ccf2215eaf46a57f
2014-08-12Collapse code paths for single- and multi-input kernels.Chris Wailes
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
2014-07-08Adds support for multi-input kernels to Frameworks/RS.Chris Wailes
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
2014-06-10Remove FAKE_ARM64_BUILD now that we have 64 build working.Jean-Luc Brouillet
Change-Id: Ieb6627adcd1d097fe709559e182efcfc6841d13e
2014-03-25Remove the obsolete ScriptCState. Simplify cascading #ifdefs.Jean-Luc Brouillet
Change-Id: I1cb561c6325d80c764d386f7b76e6a416261cd8f modified: rsContext.h modified: rsScriptC.cpp modified: rsScriptC.h
2014-03-13Make RS compile on ARM64.Tim Murray
bug 13280327 Change-Id: I79080c448ca17d0cba8df075737c22b24ce9a085
2012-12-19Cleanup diff with compat.Jason Sams
Change-Id: Ieedcdec03ccb05cac68cbebbd398e07cb885f4d3
2012-11-19Separate CPU driver impl from reference driver.Jason Sams
Change-Id: Ifb484edda665959b81d7b1f890d108bfa20a535d
2012-10-01Ensure that the cache directory exists before calling compiler.Tim Murray
Bug: 7077014 Change-Id: Iab94a265193d4ff749573520939c974a982ac7c1
2012-07-25Move memory layout to driver.Jason Sams
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
2012-07-24Plumb context through for serialization.Jason Sams
Change-Id: I2a49f57aa7576604deeac898a7cceb36ae68d66f
2012-02-23Merge "Support running ForEach on non-root functions."Stephen Hines
2012-02-22Support running ForEach on non-root functions.Stephen Hines
BUG=6000538 Change-Id: Ie2b16893b150cc5955ee4b9d028c988f69a82744
2012-02-16Rename three header files to free namespace for api.Jason Sams
Change-Id: Ie9ef65a477373c30b2d5b02248f62e768b6f27ae
2011-08-03Start using bcinfo components within librs.Stephen Hines
BUG=4942491 Change-Id: I3a46783511c4954bac9eadbbbefe5abf85498c16
2011-06-03More work to make libRS buildable on the host.Alex Sakhartchouk
Change-Id: I239585ef7c1334f7fc19fa6423535dea7b9a753f
2011-04-20Create runtime stubs for compute driver.Jason Sams
Change-Id: I8e0250a642844a2ad3ff6efc38e385445b7da032
2011-03-17Migrate thread launch to driver.Jason Sams
Change-Id: If182c524cceb327547640f22f956856d291d1787
2011-03-17Start seperating out RS compute implementation. Create halJason Sams
layer to seperate from runtime. Change-Id: Idf5c1261be4131690d25c15948e98324e979b4f9
2011-02-25Moving dependency includes out of librs headers.Alex Sakhartchouk
When we want to use it on the host, we shouldn't need to go hunting for every external dependency Change-Id: I885262acdcdf5ede4a9392235f35d5e2f7038e8b
2011-01-27Correctly free resouces bound to scripts when the scripts are deleted.Jason Sams
Change-Id: Idfcc30f1a7de0badeb6d8254ed508938d89f4070 b: 3381615
2011-01-23Cleanup script init to fix bogus log printing andJason Sams
reduce memory churn. Change-Id: I0bf5392102e3d59fea81f5f9f832887113602b7f
2011-01-19Check and propogate errors from llvm.Jason Sams
Change-Id: Id99a724f746d1f64eabcdf67c12646cc32ff8f9d
2011-01-14bcc interface fixed.Shih-wei Liao
Change-Id: I81349750e58f119a9c2ad596f376c7e39d5f0d4e
2011-01-071. LOG 4 fatal error paths (TODO: These 4 places should signal Java exceptions.)Shih-wei Liao
2. Prepare on-device linking. 3. Clean up code. Change-Id: Iac4148431dbe1c3c4044f7394eb51a1332f513f9
2011-01-03Rename bcc::BCCscript -> bcc::Script. Ideally, should do:Shih-wei Liao
include bcc.h instead of forward declaration. Change-Id: I649f62d240ed4e13eb95a8988a9ee202b19e7436
2010-12-20Stale cache management to address a P1 bug # 3296131.Shih-wei Liao
Change-Id: I593f35a91c4a14c055828f8989fe01b9e7790039
2010-12-141. Add Context to a RenderScript or RenderScriptGL instance.Shih-wei Liao
This is to allow RenderScript to better interact with the Android environment. E.g., per-app cache. 2. Plumbing, testing. 3. Added getApplicationContext in RenderScript.java. Change-Id: I85edeebe38825e20b2e86f4f4815689dfc332ef9
2010-11-29Fix 'BCCscript' build break.Iain Merrick
frameworks/compile/libbcc/include/bcc/bcc.h was updated in change I3f3d31fc. What used to be "struct BCCscript" is now "class bcc::BCCscript" for C++ code. Looks like the framework/base header rsScriptC.h is just trying to forward-declare the same type, so we just need to make the same change there. Change-Id: I6f6f9dd7608af01d519c2e26fd9b5e6649f71902
2010-11-18Add caching support of BCC binaries.Shih-wei Liao
Change-Id: I1e75bb84d88319cb6f1bbe6d907cf6e8ed546142
2010-11-10Code cleanup to make formatting consistentAlex Sakhartchouk
across all the renderscript files. Change-Id: Idf5fcc60877e44c8f074f7176e37f70b3b895a3c
2010-11-01Add code to mark functions rather than whole files as threadable.Jason Sams
Change-Id: Ie635fbbb96b8ade48501ec564fe135edc256537d
2010-10-08Removing fixed size arrays.Alex Sakhartchouk
Change-Id: I5c65b29a197013de2517cfb6dbe7abb9e24a688b
2010-09-29Fix clear() operation for rsScriptC.Stephen Hines
- 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
2010-07-151st cut of ForEach and test.Jason Sams
Change-Id: I6534569c8d26db8b9691666134a555c8bf94184e
2010-06-04Creating the jni and java layer to integrate a3dAlex Sakhartchouk
Change-Id: I438359633bae59bf9188cd2c4664a92ca16c5f37
2010-05-28Rough implemetation of ForEach.Jason Sams
Remove launchID from root graphics script. Change-Id: I9f80c0d4df1264f2ee1624a6d7216b9dfdf8502e
2010-05-21Removed unnecessary change based on comments.Alex Sakhartchouk
Now using android utils lib. collada_to_a3d seems to work with android util libs. Integrating old changelist Changing assert to rsAssrt in VertexArray making context compile. Change-Id: I33890defa777f09253bfab630d97782359ec49d7 Added serialization code to rsLib Integrated old changelist Change-Id: Ie4746113f6d1817fbb3264f97fdddde25b779311 Added serialization code to rsLib Change-Id: Ie4746113f6d1817fbb3264f97fdddde25b779311
2010-05-19Begin naming cleanup for renderscript runtime.Jason Sams
Prefix functions with "rs" or "rsg". Change-Id: I4435b486831bfab1ea473ccfad435b404e68f1c9
2010-05-18Split ScriptC Lib into CL, GL, and basic.Jason Sams
Change-Id: Iadab35f2a967a1afd7a2fd13216d0a7acf4b6a50
2010-05-17Remove more pieces of setRoot. Add pointer to allocation lookup for scripts.Jason Sams
Change-Id: I2c3075d2056f02bb834bfad403dc72da991f3156
2010-05-11Convert renderscript from using ACC to LLVM for its compiler.Jason Sams
This will also require application to be updated to support the new compiler and data passing models. Change-Id: If078e3a5148af395ba1b936169a407d8c3ad727f
2009-12-09Throttle low priority RS threads by sleeping once per frame to avoid ↵Jason Sams
starving other apps.
2009-11-03Fix RS bugs. We were holding a pointer to the script text from the java vm. ↵Jason Sams
Move freeing of objects to before context teardown to allow allocations to clean up their data.
2009-09-25Reduce debugging spew and add props to selectivly re-enable it.Jason Sams
change-id: Ib59ed5d7a9d479ccd1af456029735dbc65ae1efe
2009-09-25Improve renderscript context teardown. Track object in the system and then ↵Jason Sams
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.
2009-09-24Fix invokables to make sure script pointers are setup before invoking ↵Jason Sams
function calls. Reduce app startup time up to 1s.