summaryrefslogtreecommitdiff
path: root/cpp
Commit message (Collapse)AuthorAgeFilesLines
* Squash: Merge tag 'android-7.1.2_r2' of ↵HEADn7.1mosimchah2017-04-041-3/+3
| | | | | | https://android.googlesource.com/platform/frameworks/rs into HEAD Change-Id: I57a1494bb6ad77b495cef47259ed5f55faed92e5
* Correctly pass number of input allocations for RS NDK BLAS.Miao Wang2016-10-071-5/+7
| | | | | | | | Bug: 31992305 Test: Build and CTS RsCpp test pass. Change-Id: I5d55dd3cfa1b6eff1c4d9dfa5315e7e962bf6588 (cherry picked from commit 93ddf62ab18ed17d96189a602a8cbde83712a3e9)
* Delete simple reduction implementation.David Gross2016-06-104-32/+3
| | | | | Bug: 27298560 Change-Id: I8c3d568e98aaf0b7d86881c985d13ed5b8e95338
* Avoid destroying Device separatelyYang Ni2016-04-042-9/+3
| | | | | | | | | Bug: 27983025 Device should be destroyed inside the destructor of the associated Context. Change-Id: I921a89974e1174f837349a89aef9b03efa4882f5
* Stop targeting froyo. It isn't supported.Dan Albert2016-03-181-2/+2
| | | | | | | Bug: 27746233 Change-Id: I9a5a270dd299d21171b442902f3e31bea095c48f (cherry picked from commit d999344a046d0c02a71d84494f6bb78b6505147f)
* Compatibility library support for general reduction.David Gross2016-02-262-0/+11
| | | | | | | | | | | | | | | | Requires corresponding change in frameworks/support. Note that the new RSTest_CompatLib test cases were copied from RsTest. Also: - Change LOCAL_RENDERSCRIPT_TARGET_API to 0. - Change manifest targetSdkVersion from 8 to 24 (see Bug: 27367665). - Change compile-only RSTest_CompatLib test apitest.rs to use N rather than pre-N rsForEach() API. Bug: 23535724 Change-Id: I872f2b5a83fb78f4b54b8f6710e1d49df3bea3d1 (cherry picked from commit 328245ae4aecdae3ec23a640efc454959f2ff98c)
* Use c++_static instead of stlport_static for support lib.Miao Wang2016-02-242-81/+83
| | | | | | | | | | | Bug: 27230989 - Clean up the makefile - For NDK libs, use c++_static - Avoid exposing symbols for C++ lib - Use nullptr instead of NULL Change-Id: I60cf11cb6a6044584a3e484979da231f72772f86
* Refactor/enhance dispatch table initMiao Wang2016-02-232-144/+146
| | | | | Bug: 27323830 Change-Id: I9da69782cccbf42761cbd82d99df2bab80e9e57c
* Add float16 elements to C++ APIPirama Arumuga Nainar2016-02-182-0/+31
| | | | | | | | | | | | | | | | | | Bug: 25972767 Add float16 elements to C++ API and test the ability to create float16 allocations. Caveats: - Element::F16 and such are accessible to the host-side code irrespective of the target API level. This is because right now, target API level seems to be set at runtime instead of compile time. - We added float16 to RenderScript starting API level 23. Since we cannot compile RS CPP apps targeting this level, Scripts cannot manipulate float16 data yet. Change-Id: I2bfba13fcad1c3aa984e97b44765fd2a57a054ac (cherry picked from commit 566168431399086c146b2f845f6d0128852c9686)
* Merge "Derive the bcc optimization level from the input bitcode."Stephen Hines2016-01-302-4/+2
|\
| * Derive the bcc optimization level from the input bitcode.Stephen McGroarty2015-09-022-4/+2
| | | | | | | | | | | | | | | | | | | | 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>
* | Add back RS::init(const char*, uint32_t)Miao Wang2016-01-122-2/+15
| | | | | | | | | | Bug: 26202632 Change-Id: Ia6610623fe8444abfbe95f8d3170b9ed9677d526
* | Various fixes in setting globals in a script groupYang Ni2015-11-131-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 group. 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
* | Remove RSYuvFormat from C++ API headerPirama Arumuga Nainar2015-11-102-29/+15
| | | | | | | | | | | | | | | | | | | | | | | | Remove definition of RSYuvFormat from the C++ API's headers and use the newly added enum in rsDefines.h (which is distributed as a part of the NDK). The new enum is named 'RsYuvFormat' for sake of consistency with the rest of rsDefines.h. The new enum also uses the Camera's pixel formats as the enum values. This requires minor updates. Change-Id: Ia04e320c45d0e13cb476d2ad4deefeb2f8da60d3
* | Enable error logcat for rsDispatch.Miao Wang2015-11-061-80/+80
| | | | | | | | | | Bug: 25226912 Change-Id: I26eed3223d37a0c49efc2d4fdf33dd64ad52d22f
* | Allow developers to specify a target RS API level for C++Miao Wang2015-10-122-7/+8
| | | | | | | | | | Bug: 23165318 Change-Id: I557e63f5abf3628df7545db3bdec4a6de59d3083
* | Merge "Implement IntrinsicBLAS for RS C++ API"Miao Wang2015-10-124-271/+4061
|\ \
| * | Implement IntrinsicBLAS for RS C++ APIMiao Wang2015-09-154-271/+4061
| | | | | | | | | | | | Change-Id: I2337340ce9ed43ab49b55b37d349b696bb0679a1
* | | Add -Wextra to our RS build.Stephen Hines2015-10-021-1/+1
| | | | | | | | | | | | Change-Id: Ic1c430eec6840af4a8c19a1c13e8559ddf971eb3
* | | Comments clean up for C++ APIMiao Wang2015-09-159-34/+35
| | | | | | | | | | | | Change-Id: I7ced3653a32fa8eaa62cd218002d22f5551c404a
* | | Fix updateFromNative in C++ API.Miao Wang2015-09-153-12/+25
|/ / | | | | | | Change-Id: I2b1cce8ab964e9ddd6b039fd8d7b8f8bf5f0eed1
* | C++ API call RS::finish() before destroy rsContextMiao Wang2015-09-111-0/+1
| | | | | | | | Change-Id: I54e78db8bc36d5c7432b8233ebace0d66f83c549
* | Remove useless HOST_OS==windows checksDan Willemsen2015-09-021-4/+0
|/ | | | | | | | These aren't host modules, so they shouldn't be checking what host they're building on. We don't use target libraries that are built when HOST_OS == windows. Change-Id: I4db86dce039150612cd4ea8ba773adc2915b46f9
* Add reduce to the dispatch table and to the RenderScript C++ API.Matt Wala2015-08-204-2/+30
| | | | | Bug: 22631253 Change-Id: I06eec227e122075c8a81ed501cd9efcd4e0ef13a
* Lose HAVE_ANDROID_OS in frameworks/rs.Elliott Hughes2015-08-121-2/+2
| | | | Change-Id: Iba57869192ba9b1fde995ff0e48b7a28b2cb122f
* Add AllocationCreateStrided to support lib CPU driverMiao Wang2015-08-061-0/+2
| | | | | | | | | | | | - Able to create Allocations with arbitrary alignment requirement, making Incremental Intrinsic Support able to run with different native GPU RS runtime. - Make compat mode CPU driver using an additional rs_compat.spec. - Add a compat mode only USAGE_INCREMENTAL_SUPPORT. - Add AllocationCreateStrided() to take an Alignment requirement (power of 2). Only enbled when detect USAGE_INCREMENTAL_SUPPORT. Change-Id: I66f913c3a2474f93af5a244c0c84460a7a395e71
* Add a flag to the API to specify -O0 on the bcc command line.verena beckham2015-07-172-2/+4
| | | | | | | | | Add a flag RS_CONTEXT_OPT_LEVEL_0 which sets a field mOptLevel in the Context to 0 when calling bcc. Using this flag will result in an object file that is easier to debug. Change-Id: I9673506710cc9f34c415b694fe5d6bc7e967f1db Signed-off-by: verena beckham <verena@codeplay.com>
* update dispatch table for IntrinsicBLASMiao Wang2015-06-302-0/+7
| | | | | | | bug: 21028875 Change-Id: I6d4aa8973de523aef7ced48105737eb5ee471e5d (cherry picked from commit 549f8a500d72edda06f1f1a4986a57aba7f66294)
* Disable ASan for one library.Evgenii Stepanov2015-06-111-0/+2
| | | | | Bug: 21785137 Change-Id: I460b3070eda67477148ff3da1db5fdc7ebb5386d
* Added in wait for attach context flag.Stephen McGroarty2015-05-192-2/+4
| | | | | | | | | | Added in a small flag which is passed to the context from the Java/C++ API which causes the context to delay execution until a debugger is a attached. This gives time to the developer to attach a debugger to the process before the kernel is executed. Change-Id: I5bb8e75100436920f9e1a0f414f3b0bcf0d2b439 Signed-off-by: Stephen McGroarty <stephen@codeplay.com>
* Add USAGE_OEMJason Sams2015-05-111-0/+1
| | | | | | | Allow OEMs to pass data from other HW blocks via internal extension. Change-Id: I78c19f5eec462aff7d8a5408f2f16cfc9b78c036
* set mYuvFormat to RS_YUV_NONE in Type constructor.Miao Wang2015-04-161-0/+2
| | | | Change-Id: I49415d85c3ec4ddb42c587b20c30df4d5fe25842
* Merge "Enable YUV support in rs C++ API."Miao Wang2015-04-162-2/+15
|\
| * Enable YUV support in rs C++ API.Miao Wang2015-04-152-2/+15
| | | | | | | | Change-Id: I5326c2b6551953e19da50aff1848557231b908e5
* | Merge "remove STL from rs C++ public interface. Nuke stlport."Miao Wang2015-04-165-67/+163
|\|
| * remove STL from rs C++ public interface. Nuke stlport.Miao Wang2015-04-135-67/+163
| | | | | | | | Change-Id: Ida273c1cfa21c4db51ae41a4c42746d9d828f292
* | Added a name to ScriptGroup2Yang Ni2015-04-131-1/+1
|/ | | | | | | Implemented in the runtime and CPU driver the new script group name. Code caching is not implemented yet, and to be added in another CL. Change-Id: I46e351c8412740512f56b7915b14f36183c6eeaf
* Add setSurface() and getSurface() to RScpp.Miao Wang2015-04-073-21/+80
| | | | Change-Id: I53ac88ce3f482e01bd70df57a1aaf0b71b1f49af
* Fix the ordering of CREATE_SAMPLER macro in C++ API, according to correspondingMiao Wang2015-04-031-9/+9
| | | | | | | | | | Java API. - min/mag, wrapS/wrapT was incorrectly swapped - When creating MIP_LINEAR related sampler, mag should be set to LINEAR and min to LINEAR_MIP_LINEAR Change-Id: Iaa354281d6dba73fca452e04452c88bfe5af0469
* Update Dispatch table following ScriptGroup2 API change.Miao Wang2015-03-311-3/+2
| | | | Change-Id: Iacc3cdaa6d58c8f7739ac173fb5ac5de14482133
* Merge "Update RenderScript C++ API"Miao Wang2015-03-315-31/+254
|\
| * Update RenderScript C++ APIMiao Wang2015-03-305-31/+254
| | | | | | | | | | | | | | | | - Add Copy3DRangeTo API - Add AutoPadding & unPadding for CopyTo and CopyFrom APIs - Add IntrinsicResize Change-Id: I1138225f8a7b738929a09636bf2669f5d68b0c7d
* | Update Dispatch table entry for ScriptGroup2.Miao Wang2015-03-312-1/+9
|/ | | | Change-Id: Ice2523e7803cc50822840e47d13df3b2e059a5ca
* Ensure ScriptIntrinsicHistogram is given a valid Element in constructor when ↵Jon Parr2015-03-132-5/+8
| | | | | | | | | used via C++ bindings. Correct checks for compatible elements within ScriptIntrinsicHistogram. Add missing setVar within variable setters. Change-Id: I404058d231676d9c7403d4327053421a624f5ae9
* am ff523842: Merge "Make dispatchTable load AllocationGetPointer only when ↵Miao Wang2015-03-101-5/+7
|\ | | | | | | | | | | | | device api >= L" * commit 'ff523842e4b001886b39ad4b79dddb762433e492': Make dispatchTable load AllocationGetPointer only when device api >= L
| * Make dispatchTable load AllocationGetPointer only when device api >= LMiao Wang2015-03-061-5/+7
| | | | | | | | Change-Id: Idfc739e8f810f55108d5b7b598f71948dfeb40bf
* | am ceb8d321: Merge "Fix the bug for AllocationRead() that cannot handle 3d ↵Miao Wang2015-02-242-0/+21
|\| | | | | | | | | | | | | Allocation correctly. Add the following functions to make it symmetric for read and write." * commit 'ceb8d321879ba542b708910f9c835bc94eb6c4c8': Fix the bug for AllocationRead() that cannot handle 3d Allocation correctly. Add the following functions to make it symmetric for read and write.
| * Fix the bug for AllocationRead() that cannot handle 3d AllocationMiao Wang2015-02-232-0/+21
| | | | | | | | | | | | | | | | | | | | | | correctly. Add the following functions to make it symmetric for read and write. - AllocationElementData - AllocationElementRead - Allocation3DRead Change-Id: I8c89b5e3474c4c3c70e9795843a76e61f1f90f6a
* | am 73211368: Merge "Add API check for loadSymbols(), so that functions being ↵Miao Wang2015-02-132-7/+33
|\| | | | | | | | | | | | | dlsymed will depend on the device API level. (default: only load functions in API <= 21);" * commit '7321136880c7dc427c77af07d16f9f6a97c4808f': Add API check for loadSymbols(), so that functions being dlsymed will depend on the device API level. (default: only load functions in API <= 21);
| * Add API check for loadSymbols(), so that functions being dlsymedMiao Wang2015-02-092-7/+33
| | | | | | | | | | | | | | will depend on the device API level. (default: only load functions in API <= 21); Change-Id: I4b65df7f228a23d713b69983ddb81ce67075d9cc