Yang Ni
263cc90345
Various fixes in setting globals in a script group
...
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-11-13 10:00:12 -08:00
Miao Wang
ba8766c5db
[RenderScript] Add null check for return values of JNI
...
Get<TYPE>ArrayElements.
Bug: 20760800
Change-Id: I6ba56933a71721da88d31dbf74c48d42a924305a
2015-10-13 10:44:38 -07:00
Pirama Arumuga Nainar
115b4117a0
Fix punctuation and typos in AllocationAdapter's documentation.
...
Change-Id: I5574ff201b857a29f30ebe8413dbe4128dcff3ae
2015-10-08 19:51:11 +00:00
Pirama Arumuga Nainar
c9390c8baf
am 46b51097: Merge "Safely handle interrupts during Thread.join()"
...
* commit '46b51097b92900866ac5b25762f622d3ceb1be5d':
Safely handle interrupts during Thread.join()
2015-10-05 23:33:38 +00:00
Pirama Arumuga Nainar
83461d73bc
Safely handle interrupts during Thread.join()
...
Interrupt current thread if InterruptedException is received during
Thread.join(). Also, log the interruption.
Change-Id: I452124915ea3f19610e6d4a3411d741f2f604af2
2015-10-05 15:45:47 -07:00
Pirama Arumuga Nainar
5fbb245230
am ca3e5aea: Merge "Retry if interrupted before mMessageThread has joined"
...
* commit 'ca3e5aeaa65ae1d77ce92f082ab789933eb18237':
Retry if interrupted before mMessageThread has joined
2015-10-02 22:08:11 +00:00
Pirama Arumuga Nainar
2f25ce7753
Retry if interrupted before mMessageThread has joined
...
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-10-02 21:42:12 +00:00
Miao Wang
05420e77f5
am 134c504a: Merge "[RenderScript] pass correct length of ains to BLAS functions"
...
* commit '134c504a3ea687a0ea875057792e66705ddbfce7':
[RenderScript] pass correct length of ains to BLAS functions
2015-09-30 23:44:22 +00:00
Miao Wang
134c504a3e
Merge "[RenderScript] pass correct length of ains to BLAS functions"
2015-09-30 22:53:18 +00:00
Miao Wang
0b34f2a3c5
[RenderScript] pass correct length of ains to BLAS functions
...
bug: 24540091
Change-Id: Ia541bcbee07125c4caf3e0f4863702a3c0b929d5
2015-09-30 15:38:07 -07:00
Elliott Hughes
b57dd722f1
resolved conflicts for a884d81e to stage-aosp-master
...
Change-Id: Ice485967fa96f13786024b6939b826638e906ff0
2015-09-24 10:01:32 -07:00
Daniel Micay
76f6a86de2
constify JNINativeMethod function pointer tables
...
Change-Id: I4036c924958221cbc644724f8eb01c5de3cd7954
2015-09-22 17:10:35 -04:00
Stephen Hines
b3a1674a47
am ed3ffe0f: am 6430812a: Merge "RenderScript: implement a Script entry point for calling a reduce-style kernel."
...
* commit 'ed3ffe0fc86de016ff2b4231e2fcc74a6119f6c7':
RenderScript: implement a Script entry point for calling a reduce-style kernel.
2015-07-23 22:54:59 +00:00
Stephen Hines
6430812a93
Merge "RenderScript: implement a Script entry point for calling a reduce-style kernel."
2015-07-23 22:26:05 +00:00
Matt Wala
36eb1f74b3
RenderScript: implement a Script entry point for calling a
...
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-21 11:07:10 -07:00
Miao Wang
3fd9bf4e24
am 15d68941: Merge "[RenderScript] Add docs advising users about dstAtop bug." into mnc-dev
...
* commit '15d6894170f2ee1a6eae57c915fcc27a56c9de17':
[RenderScript] Add docs advising users about dstAtop bug.
2015-07-20 23:52:46 +00:00
Miao Wang
37e1d0ce1e
[RenderScript] Add docs advising users about dstAtop bug.
...
Bug: 22047392
Change-Id: I736a697276020687c20dff515aabb1be1776f8c0
(cherry picked from commit ffb1a9bed0788d3547f085bfb9d254004e0db1e3)
2015-07-20 16:44:14 -07:00
Miao Wang
ffb1a9bed0
[RenderScript] Add docs advising users about dstAtop bug.
...
Bug: 22047392
Change-Id: I736a697276020687c20dff515aabb1be1776f8c0
2015-07-20 16:04:59 -07:00
Stephen Hines
dd67c9d6a8
am 0f5b7bc2: am 79a1bde2: Merge "Add a flag to the API to specify -O0 on the bcc command line."
...
* commit '0f5b7bc2fe2ae554ab1f044eb5b10aab5f4812cb':
Add a flag to the API to specify -O0 on the bcc command line.
2015-07-17 23:14:36 +00:00
Stephen Hines
79a1bde2e0
Merge "Add a flag to the API to specify -O0 on the bcc command line."
2015-07-17 22:45:16 +00:00
verena beckham
c9659ea3a2
Add a flag to the API to specify -O0 on the bcc command line.
...
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-16 19:45:09 -07:00
Miao Wang
3ef2041cee
fix BNNM docs
...
bug: 22507076
Change-Id: I5fdffdde597d97b1dde77574d096b81bff4aa382
(cherry picked from commit d7d413ad0bfaea2d4bb4adcd8011239c2f5f74ae)
2015-07-16 10:28:35 -07:00
Miao Wang
9ee3b6f136
am ad904cf3: Merge "fix BNNM docs" into mnc-dev
...
* commit 'ad904cf34219897da731eb65f9de53176cc39b20':
fix BNNM docs
2015-07-15 22:33:14 +00:00
Miao Wang
d7d413ad0b
fix BNNM docs
...
bug: 22507076
Change-Id: I5fdffdde597d97b1dde77574d096b81bff4aa382
2015-07-15 11:35:28 -07:00
Miao Wang
c02720316d
resolved conflicts for merge of a1867fb0 to mnc-dev-plus-aosp
...
Change-Id: Id0266c63c98b4cb37f49eb2e0fb9a98cbc7ee1de
2015-06-30 23:35:23 -07:00
Miao Wang
2514806817
[RenderScript] update the type of offsets for BLAS.BNNM
...
bug: 22184114
Change-Id: I7e7132aa3563f32de32640567b381f8f5bddf491
(cherry picked from commit 6099ee6e081904e73e0fad331e326b0607b6b1dc)
2015-06-30 22:29:47 -07:00
John Hoford
d6ae785292
am 3791d011: am 6463dd52: Merge "add comment about xor not being porter/duff Bug: 21934855"
...
* commit '3791d0112ef38c95b8de8b73c5a1f5b074e6e6e9':
add comment about xor not being porter/duff Bug: 21934855
2015-06-30 22:59:18 +00:00
John Hoford
6ba4cb7773
add comment about xor not being porter/duff
...
Bug: 21934855
Change-Id: I99394bd8a7a40a220c05118564b532f2533da38a
2015-06-30 19:53:41 +00:00
Miao Wang
6099ee6e08
[RenderScript] update the type of offsets for BLAS.BNNM
...
bug: 22184114
Change-Id: I7e7132aa3563f32de32640567b381f8f5bddf491
2015-06-30 10:12:54 -07:00
Yang Ni
3020953243
Add Java doc comments on script group name reuse
...
b/21999787
Change-Id: Id9a7bad4ce91f3afdd82a1288cf94430f3aef9bb
(cherry picked from commit dbb6fd58a4b113f8761ce825ad5b91e50c170971)
2015-06-29 15:38:25 -07:00
Yang Ni
524d9b663d
am f7e55607: am fd5ec27b: Merge "Add Java doc comments on script group name reuse" into mnc-dev
...
* commit 'f7e5560703aa1e71f1e7603dfcd4f855a0377b31':
Add Java doc comments on script group name reuse
2015-06-29 21:23:18 +00:00
Yang Ni
dbb6fd58a4
Add Java doc comments on script group name reuse
...
b/21999787
Change-Id: Id9a7bad4ce91f3afdd82a1288cf94430f3aef9bb
2015-06-28 16:09:57 -07:00
Miao Wang
1db4e1a1cb
am 1fff1371: am df584d34: Merge "[RenderScript] Add documentation for IntrinsicBLAS, and @hide annotations." into mnc-dev
...
* commit '1fff1371b31a0194330a98fe6882471ca61f44eb':
[RenderScript] Add documentation for IntrinsicBLAS, and @hide annotations.
2015-06-19 21:49:20 +00:00
Miao Wang
df584d34b5
Merge "[RenderScript] Add documentation for IntrinsicBLAS, and @hide annotations." into mnc-dev
2015-06-19 21:19:56 +00:00
Yang Ni
d6909748d3
am 44095579: am 159f442f: Merge "Unpublish methods in class ScriptGroup.Binding" into mnc-dev
...
* commit '44095579186a59b6856af665a6b30743e35a2b7b':
Unpublish methods in class ScriptGroup.Binding
2015-06-19 13:56:44 +00:00
Miao Wang
fb675a5396
[RenderScript] Add documentation for IntrinsicBLAS, and @hide
...
annotations.
bug: 21039492
Change-Id: I50a6beca22c9e524a76925d8e497b2618177491d
2015-06-17 15:17:18 -07:00
Yang Ni
77eba48889
Unpublish methods in class ScriptGroup.Binding
...
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-17 15:06:30 -07:00
Yang Ni
d9f5f0269d
Fixed ScriptGroup for outputs to globals
...
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-08 15:08:19 -07:00
Yang Ni
bb068cd513
am ee8e4ede: am 6f4610bd: Merge "Fixed ScriptGroup for outputs to globals" into mnc-dev
...
* commit 'ee8e4edebacf05cb6ed88f0fa094ad81d440172d':
Fixed ScriptGroup for outputs to globals
2015-06-05 23:07:17 +00:00
Yang Ni
6f4610bdad
Merge "Fixed ScriptGroup for outputs to globals" into mnc-dev
2015-06-05 22:43:27 +00:00
Chris Craik
a11ceb9e91
am 5fd0e46d: am 34a63ba4: Merge "Ensure RenderScript tracing is always balanced via try/finally"
...
* commit '5fd0e46d242f718de629ec07cf540fa24b4a72ec':
Ensure RenderScript tracing is always balanced via try/finally
2015-06-04 19:00:29 +00:00
Chris Craik
06d2984871
Ensure RenderScript tracing is always balanced via try/finally
...
bug:21560057
Change-Id: I6709b81636822135848c10adca8ba425f3c2212e
2015-06-04 10:02:18 -07:00
Chris Craik
f77facd0b9
Fix RenderScript copy tracing sections
...
bug:21560057
Change-Id: I3b44d04bd908d9549ef7ada5f48f5d94e239d186
2015-06-04 09:50:15 -07:00
Chris Craik
397ef9a4ba
Ensure RenderScript tracing is always balanced via try/finally
...
bug:21560057
Change-Id: I6709b81636822135848c10adca8ba425f3c2212e
2015-06-02 17:24:15 -07:00
Chris Craik
48b0104374
am e63136a3: am 8c1e287b: Merge "Fix RenderScript copy tracing sections" into mnc-dev
...
* commit 'e63136a36ec6e5f22d53654c85b8b3eb0b19cb27':
Fix RenderScript copy tracing sections
2015-06-01 23:21:50 +00:00
Chris Craik
5c705d63d7
Fix RenderScript copy tracing sections
...
bug:21560057
Change-Id: I3b44d04bd908d9549ef7ada5f48f5d94e239d186
2015-06-01 10:59:35 -07:00
Stephen Hines
8bd4d77dc4
am 95e31ac8: am 3385b616: Merge "Added in flag to ask context to wait for debugger attach."
...
* commit '95e31ac85d4ba0b7dfb087f8bc0a10e4065ca8cd':
Added in flag to ask context to wait for debugger attach.
2015-05-21 16:50:01 +00:00
Stephen Hines
3385b6169f
Merge "Added in flag to ask context to wait for debugger attach."
2015-05-21 16:23:37 +00:00
Miao Wang
8374e25a9e
am 77877609: Merge "[RenderScript] fix Allocation.copyToFieldPacker"
...
* commit '7787760961703239763afad9639517ce02259090':
[RenderScript] fix Allocation.copyToFieldPacker
2015-05-19 21:17:28 +00:00
Miao Wang
7787760961
Merge "[RenderScript] fix Allocation.copyToFieldPacker"
2015-05-19 16:45:13 +00:00