summaryrefslogtreecommitdiff
path: root/rs/java
AgeCommit message (Collapse)Author
2016-01-30Merge "Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API." am: 49aee686d8Stephen Hines
am: c033f493f2 * commit 'c033f493f23574dc69bf8ecd0f04af8910b4a47e': Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API.
2016-01-30Merge "Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API."Stephen Hines
2016-01-27[RenderScript] Unhide new Allocation APIsMiao Wang
Bug: 23535524 - ByteBuffer getByteBuffer() - long getStride() - Allocation[] createAllocations(rs, type, usage, num) - long getTimeStamp() Change-Id: I0cad88c81f9f48c7aca59af159c49f506b234aee
2016-01-27Merge "[RenderScript] Implement APIs for better multi-frame process ↵Miao Wang
support." am: 6ebdbfa549 am: d90b4a3266 * commit 'd90b4a3266ab2af3cbc6f131a0ed320f7a795a09': [RenderScript] Implement APIs for better multi-frame process support.
2016-01-26[RenderScript] Implement APIs for better multi-frame process support.Miao Wang
Bug: 23535524 Two APIs added for multiframe processing: - createAllocations(...): To create an array of Allocations sharing the same Type and Usage. For USAGE_IO_INPUT Allocations, they also share the same BufferQueue. - getTimeStamp(): API to retrieve the time stamp associated with the most recent buffer. Change-Id: I6b7b35d7dca5e87ee2f3db2ee17cb9cf824bcfe1
2016-01-26Merge "[RenderScript] Add API to map Allocation mallocptr to Java ↵Miao Wang
ByteBuffer" am: ed50f333fb am: 5f210ae042 * commit '5f210ae04239f4a374763ea9ffe7176f5455017a': [RenderScript] Add API to map Allocation mallocptr to Java ByteBuffer
2016-01-26Merge "[RenderScript] Add API to map Allocation mallocptr to Java ByteBuffer"Miao Wang
2016-01-25[RenderScript] Add API to map Allocation mallocptr to Java ByteBufferMiao Wang
Bug: 25926361 Bug: 23535524 - Construct the ByteBuffer using the AllocationGetPointer. - Add an API to query the stride of the allocation. - Both ByteBuffer and Stride will be cached for normal Allocations. if using USAGE_IO, since after each ioReceive, the mallocPtr will change, getByteBuffer will always create a new one using the most up-to-date mallocPtr. Change-Id: I5e84b6690e83bb062c383043275524d0e51e46eb
2016-01-25Unhide Script::reduce() interface for general reduction.David Gross
Bug: 23535724 Change-Id: I7a43622954de9f4168f7e4376f39d6ec54191c03
2016-01-15Add general reduction plumbing starting with Java Script::reduce().David Gross
Requires coordinated change in frameworks/rs. Bug: 23535724 Change-Id: I2fee6750cf542948d8fa87a98441002c4d84f36e
2015-11-13Various fixes in setting globals in a script groupYang Ni
Bug: 25602504 1) Passing floating point values into a script group was broken, since they were casted to long values. Fixed that in the frameworks implementation by taking the raw bits instead. 2) Passing 64-bit values into a script group was broken on 32-bit platforms, since they were casted to pointer-sized integers (uintptr_t) in the JNI code. Fixed that by casting to int64_t instead. 3) Setting global variables of Allocation type in a script group was broken. The special size value -1 was used to indicate the value is an Allocation. However, size was casted to size_t in the JNI code. Fixed that by using signed integers. Change-Id: Ifff099a76be7707df7b67c388395f5a00f9cae66
2015-10-08Fix punctuation and typos in AllocationAdapter's documentation.Pirama Arumuga Nainar
Change-Id: I5574ff201b857a29f30ebe8413dbe4128dcff3ae
2015-10-05am 46b51097: Merge "Safely handle interrupts during Thread.join()"Pirama Arumuga Nainar
* commit '46b51097b92900866ac5b25762f622d3ceb1be5d': Safely handle interrupts during Thread.join()
2015-10-05Safely handle interrupts during Thread.join()Pirama Arumuga Nainar
Interrupt current thread if InterruptedException is received during Thread.join(). Also, log the interruption. Change-Id: I452124915ea3f19610e6d4a3411d741f2f604af2
2015-10-02am ca3e5aea: Merge "Retry if interrupted before mMessageThread has joined"Pirama Arumuga Nainar
* commit 'ca3e5aeaa65ae1d77ce92f082ab789933eb18237': Retry if interrupted before mMessageThread has joined
2015-10-02Retry if interrupted before mMessageThread has joinedPirama Arumuga Nainar
Bug: 24342101 If interrupted during mMessageThread.join(), retry the join instead of assuming the thread has joined and continuing. Continuing to destroy the context will cause a segfault when the message thread attempts to use the destroyed context. Change-Id: I3213091a0e996449bceb403dffca3063786d5a65
2015-09-02Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API.Stephen McGroarty
The flag was previously used to set the optimization level of the bcc compiler to -O0. However, this functionality is now accomplished through deriving the optimization level from the input bitcode. That patch can be found here: https://android-review.googlesource.com/169330 Change-Id: I9c57d941bb35c6f737a31fcd74f31d9de25a16a8 Signed-off-by: Stephen McGroarty <stephen@codeplay.com>
2015-07-23am ed3ffe0f: am 6430812a: Merge "RenderScript: implement a Script entry ↵Stephen Hines
point for calling a reduce-style kernel." * commit 'ed3ffe0fc86de016ff2b4231e2fcc74a6119f6c7': RenderScript: implement a Script entry point for calling a reduce-style kernel.
2015-07-23Merge "RenderScript: implement a Script entry point for calling a ↵Stephen Hines
reduce-style kernel."
2015-07-21RenderScript: implement a Script entry point for calling aMatt Wala
reduce-style kernel. Bug: 22631253 This adds a new (currently hidden) API to the Script class and the corresponding code for the RenderScript JNI layer. Change-Id: I40f19aaeb90411b859bd6b0bffc3f071fa327c21
2015-07-20am 15d68941: Merge "[RenderScript] Add docs advising users about dstAtop ↵Miao Wang
bug." into mnc-dev * commit '15d6894170f2ee1a6eae57c915fcc27a56c9de17': [RenderScript] Add docs advising users about dstAtop bug.
2015-07-20[RenderScript] Add docs advising users about dstAtop bug.Miao Wang
Bug: 22047392 Change-Id: I736a697276020687c20dff515aabb1be1776f8c0 (cherry picked from commit ffb1a9bed0788d3547f085bfb9d254004e0db1e3)
2015-07-20[RenderScript] Add docs advising users about dstAtop bug.Miao Wang
Bug: 22047392 Change-Id: I736a697276020687c20dff515aabb1be1776f8c0
2015-07-17am 0f5b7bc2: am 79a1bde2: Merge "Add a flag to the API to specify -O0 on the ↵Stephen Hines
bcc command line." * commit '0f5b7bc2fe2ae554ab1f044eb5b10aab5f4812cb': Add a flag to the API to specify -O0 on the bcc command line.
2015-07-17Merge "Add a flag to the API to specify -O0 on the bcc command line."Stephen Hines
2015-07-16Add a flag to the API to specify -O0 on the bcc command line.verena beckham
Add a flag CREATE_FLAG_OPT_LEVEL_0 to set the optimization level to 0 when calling bcc. This will result in an object file that is easier to debug. Change-Id: I0384dca098fa0d9ae0f2e02e798da9de342c1122 Signed-off-by: verena beckham <verena@codeplay.com>
2015-07-16fix BNNM docsMiao Wang
bug: 22507076 Change-Id: I5fdffdde597d97b1dde77574d096b81bff4aa382 (cherry picked from commit d7d413ad0bfaea2d4bb4adcd8011239c2f5f74ae)
2015-07-15am ad904cf3: Merge "fix BNNM docs" into mnc-devMiao Wang
* commit 'ad904cf34219897da731eb65f9de53176cc39b20': fix BNNM docs
2015-07-15fix BNNM docsMiao Wang
bug: 22507076 Change-Id: I5fdffdde597d97b1dde77574d096b81bff4aa382
2015-06-30resolved conflicts for merge of a1867fb0 to mnc-dev-plus-aospMiao Wang
Change-Id: Id0266c63c98b4cb37f49eb2e0fb9a98cbc7ee1de
2015-06-30[RenderScript] update the type of offsets for BLAS.BNNMMiao Wang
bug: 22184114 Change-Id: I7e7132aa3563f32de32640567b381f8f5bddf491 (cherry picked from commit 6099ee6e081904e73e0fad331e326b0607b6b1dc)
2015-06-30am 3791d011: am 6463dd52: Merge "add comment about xor not being porter/duff ↵John Hoford
Bug: 21934855" * commit '3791d0112ef38c95b8de8b73c5a1f5b074e6e6e9': add comment about xor not being porter/duff Bug: 21934855
2015-06-30add comment about xor not being porter/duffJohn Hoford
Bug: 21934855 Change-Id: I99394bd8a7a40a220c05118564b532f2533da38a
2015-06-30[RenderScript] update the type of offsets for BLAS.BNNMMiao Wang
bug: 22184114 Change-Id: I7e7132aa3563f32de32640567b381f8f5bddf491
2015-06-29Add Java doc comments on script group name reuseYang Ni
b/21999787 Change-Id: Id9a7bad4ce91f3afdd82a1288cf94430f3aef9bb (cherry picked from commit dbb6fd58a4b113f8761ce825ad5b91e50c170971)
2015-06-29am f7e55607: am fd5ec27b: Merge "Add Java doc comments on script group name ↵Yang Ni
reuse" into mnc-dev * commit 'f7e5560703aa1e71f1e7603dfcd4f855a0377b31': Add Java doc comments on script group name reuse
2015-06-28Add Java doc comments on script group name reuseYang Ni
b/21999787 Change-Id: Id9a7bad4ce91f3afdd82a1288cf94430f3aef9bb
2015-06-19am 1fff1371: am df584d34: Merge "[RenderScript] Add documentation for ↵Miao Wang
IntrinsicBLAS, and @hide annotations." into mnc-dev * commit '1fff1371b31a0194330a98fe6882471ca61f44eb': [RenderScript] Add documentation for IntrinsicBLAS, and @hide annotations.
2015-06-19Merge "[RenderScript] Add documentation for IntrinsicBLAS, and @hide ↵Miao Wang
annotations." into mnc-dev
2015-06-19am 44095579: am 159f442f: Merge "Unpublish methods in class ↵Yang Ni
ScriptGroup.Binding" into mnc-dev * commit '44095579186a59b6856af665a6b30743e35a2b7b': Unpublish methods in class ScriptGroup.Binding
2015-06-17[RenderScript] Add documentation for IntrinsicBLAS, and @hideMiao Wang
annotations. bug: 21039492 Change-Id: I50a6beca22c9e524a76925d8e497b2618177491d
2015-06-17Unpublish methods in class ScriptGroup.BindingYang Ni
b/21187932 Made it an opaque class, since there is no need for a user to inspect its fields after creation. Change-Id: I9101afdecc5e25bb484d060be2a08c470faa92e5
2015-06-08Fixed ScriptGroup for outputs to globalsYang Ni
b/21187932 Dependency from one kernel to another kernel -- where one reads the other's output to a global allocation -- was not handled correctly. This CL fixed that. Needed to make a new CTS test pass. Change-Id: I500f9cac9d89bcaec7c186e942ba4a7d413daadb (cherry picked from commit 85858718c0fc8f4f17ee18e5d62ec0614a8bc780)
2015-06-05am ee8e4ede: am 6f4610bd: Merge "Fixed ScriptGroup for outputs to globals" ↵Yang Ni
into mnc-dev * commit 'ee8e4edebacf05cb6ed88f0fa094ad81d440172d': Fixed ScriptGroup for outputs to globals
2015-06-05Merge "Fixed ScriptGroup for outputs to globals" into mnc-devYang Ni
2015-06-04am 5fd0e46d: am 34a63ba4: Merge "Ensure RenderScript tracing is always ↵Chris Craik
balanced via try/finally" * commit '5fd0e46d242f718de629ec07cf540fa24b4a72ec': Ensure RenderScript tracing is always balanced via try/finally
2015-06-04Ensure RenderScript tracing is always balanced via try/finallyChris Craik
bug:21560057 Change-Id: I6709b81636822135848c10adca8ba425f3c2212e
2015-06-04Fix RenderScript copy tracing sectionsChris Craik
bug:21560057 Change-Id: I3b44d04bd908d9549ef7ada5f48f5d94e239d186
2015-06-02Ensure RenderScript tracing is always balanced via try/finallyChris Craik
bug:21560057 Change-Id: I6709b81636822135848c10adca8ba425f3c2212e
2015-06-01am e63136a3: am 8c1e287b: Merge "Fix RenderScript copy tracing sections" ↵Chris Craik
into mnc-dev * commit 'e63136a36ec6e5f22d53654c85b8b3eb0b19cb27': Fix RenderScript copy tracing sections