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
diff --git a/rsAllocation.h b/rsAllocation.h
index b997f9a..1b842b8 100644
--- a/rsAllocation.h
+++ b/rsAllocation.h
@@ -166,6 +166,8 @@
void * getPointer(const Context *rsc, uint32_t lod, RsAllocationCubemapFace face,
uint32_t z, uint32_t array, size_t *stride);
+ bool hasSameDims(const Allocation *Other) const;
+
protected:
Vector<const Program *> mToDirtyList;
ObjectBaseRef<const Type> mType;
@@ -202,4 +204,3 @@
}
}
#endif
-