Add AllocationCreateStrided to support lib CPU driver
- 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
diff --git a/driver/rsdAllocation.h b/driver/rsdAllocation.h
index eff5e30..e51bef4 100644
--- a/driver/rsdAllocation.h
+++ b/driver/rsdAllocation.h
@@ -84,6 +84,11 @@
bool rsdAllocationInit(const android::renderscript::Context *rsc,
android::renderscript::Allocation *alloc,
bool forceZero);
+#ifdef RS_COMPATIBILITY_LIB
+bool rsdAllocationInitStrided(const android::renderscript::Context *rsc,
+ android::renderscript::Allocation *alloc,
+ bool forceZero, size_t requiredAlignment);
+#endif
bool rsdAllocationAdapterInit(const android::renderscript::Context *rsc,
android::renderscript::Allocation *alloc);
void rsdAllocationDestroy(const android::renderscript::Context *rsc,