diff options
author | Chris Wailes <chriswailes@google.com> | 2014-06-11 12:00:29 -0700 |
---|---|---|
committer | Chris Wailes <chriswailes@google.com> | 2014-07-08 11:46:34 -0700 |
commit | 4b3c34e6833e39bc89c2128002806b654b8e623d (patch) | |
tree | d5e1eeed6ac0e0f9b57488570680b6796ecd7735 /cpu_ref/rsCpuIntrinsic.h | |
parent | cb51798a0379409c0f9927c44bbcdd772ed7ec18 (diff) | |
download | rs-4b3c34e6833e39bc89c2128002806b654b8e623d.tar.gz |
Adds support for multi-input kernels to Frameworks/RS.
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
Diffstat (limited to 'cpu_ref/rsCpuIntrinsic.h')
-rw-r--r-- | cpu_ref/rsCpuIntrinsic.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpu_ref/rsCpuIntrinsic.h b/cpu_ref/rsCpuIntrinsic.h index 1cf889c8..85e2ddce 100644 --- a/cpu_ref/rsCpuIntrinsic.h +++ b/cpu_ref/rsCpuIntrinsic.h @@ -36,6 +36,15 @@ public: const void * usr, uint32_t usrLen, const RsScriptCall *sc); + + virtual void invokeForEachMulti(uint32_t slot, + const Allocation ** ain, + size_t inLen, + Allocation * aout, + const void * usr, + uint32_t usrLen, + const RsScriptCall *sc); + virtual void forEachKernelSetup(uint32_t slot, MTLaunchStruct *mtls); virtual void invokeInit(); virtual void invokeFreeChildren(); |