History log of /frameworks/rs/rsClosure.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
fef0cd45027f235126d4fb62bda5ea9037450d9c 12-Nov-2015 Yang Ni <yangni@google.com> Various fixes in setting globals in a script group

Bug: 25602504

1) Fixed setting 64-bit globals on a 32-bit platform.

The long values were casted to pointer-size integers (uintptr_t) or void*
in the runtime implementation. This caused the upper 32 bits to be lost
on 32-bit platforms. Fixed that by casting to int64_t instead.

2) Fixed setting Allocation values (either as arg or a global) in a script

The size for a value in a script is signed, with -1 indicating that the
value is an Allocation. The sign has to be kept across different layers
of our stack.

3) Added a test for both native and support libraries for passing
floating point values to a script group, and for passing 64-bit values
(long or double) to a script group.

Change-Id: Ifff099a76be7707df7b67c388395f5a00f9cae66
99bd4a4614d03e02bb4e07db15c7af5a736211a0 12-May-2015 Yang Ni <yangni@google.com> Fixed CTS failure


ScriptGroupTest.Builder2InvokeToKernelDependency failed.
Needs a copy of the FieldPacker object for invoke parameters, which
was passed in as a copy by JNI and released after the closure is

Change-Id: I092fe029394ed898dc66e5ecdbbd86c416abe46b
bd0af2d161e36e52e6782ccb2d15dd5a36467704 24-Mar-2015 Yang Ni <yangni@google.com> Clean up ScriptGroup2 implementation


- Adjust ref counting
- Fix value size type in closure creation

Change-Id: I1179d34aa67f845578740e71cc2da4f82419f251
062c287f573ecc06c38ee4295e5627e12c52ac3d 21-Feb-2015 Yang Ni <yangni@google.com> Runtime support for Script Group as single module

Also made two other cleanups:
- Changed KernelID/InvokeID into IDBase in class Closure
Rather than having two fields in class Closure, one of type ScriptKernelID and
the other InovkeID, use a single field of the common base class IDBase. Added a
boolean field to indicate whether it is kernel or invoke, since -fno-rtti is on.
- Removed user pointer from CPU closure

Change-Id: I5553f86b2e58325f85649078d48685a38f12d62f
ff2bb54ebf593b1d19d3a2e4cfa70a8ea4432c0d 02-Feb-2015 Yang Ni <yangni@google.com> Reformat and remove STL reference from header


Reformmated according to Android C++ style guidelines.
Removed STL references in headers.

Change-Id: I6d82b8fe5ac868067b6d9ebe797125feb97e5641
eb9aa675754c49f613c6ad71d41472b30f38b007 27-Jan-2015 Yang Ni <yangni@google.com> Runtime support for invocables in ScriptGroups

This also includes support for InvokeID

Change-Id: I5b59df166ea30b309b8dd9623825ac0e72d03856
1ffd86b448d78366190c540f98f8b6d641cdb6cf 07-Jan-2015 Yang Ni <yangni@google.com> New Script Group API: runtime and cpu driver support.

Change-Id: I9c612cf8874aabaf0ca7d1640567464c71ed3070