Home
last modified time | relevance | path

Searched refs:ains (Results 1 – 25 of 33) sorted by relevance

12

/aosp12/frameworks/rs/cpu_ref/
H A DrsCpuScript.cpp560 rsAssert(ains && (inLen >= 1) && aout); in reduceMtlsSetup()
578 const Allocation *ain0 = ains[0]; in reduceMtlsSetup()
586 if (!ain0->hasSameDims(ains[Index])) { in reduceMtlsSetup()
614 memcpy(mtls->ains, ains, inLen * sizeof(ains[0])); in reduceMtlsSetup()
632 if (ains == nullptr && inLen != 0) { in forEachMtlsSetup()
661 if (inLen > 0 && ains[0]) { in forEachMtlsSetup()
662 const Allocation *ain0 = ains[0]; in forEachMtlsSetup()
695 if (ains[0] && !ains[0]->hasSameDims(aout)) { in forEachMtlsSetup()
711 if (ains) { in forEachMtlsSetup()
712 memcpy(mtls->ains, ains, inLen * sizeof(ains[0])); in forEachMtlsSetup()
[all …]
H A DrsCpuScriptGroup.cpp213 const Allocation **ains; in execute() local
217 ains = nullptr; in execute()
221 ains = const_cast<const Allocation**>(&ins[ct]); in execute()
227 si->preLaunch(slot, ains, inLen, outs[ct], mtls.fep.usr, in execute()
231 mCtx->launchForEach(ains, inLen, outs[ct], nullptr, &mtls); in execute()
234 si->postLaunch(slot, ains, inLen, outs[ct], nullptr, 0, nullptr); in execute()
244 const Allocation **ains; in execute() local
248 ains = nullptr; in execute()
252 ains = const_cast<const Allocation**>(&ins[0]); in execute()
266 si->preLaunch(kernels[ct]->mSlot, ains, inLen, outs[ct], in execute()
[all …]
H A DrsCpuIntrinsic.cpp76 void RsdCpuScriptIntrinsic::preLaunch(uint32_t slot, const Allocation ** ains, in preLaunch() argument
82 void RsdCpuScriptIntrinsic::postLaunch(uint32_t slot, const Allocation ** ains, in postLaunch() argument
89 const Allocation ** ains, in invokeForEach() argument
98 preLaunch(slot, ains, inLen, aout, usr, usrLen, sc); in invokeForEach()
100 if (forEachMtlsSetup(ains, inLen, aout, usr, usrLen, sc, &mtls)) { in invokeForEach()
108 mCtx->launchForEach(ains, inLen, aout, sc, &mtls); in invokeForEach()
112 postLaunch(slot, ains, inLen, aout, usr, usrLen, sc); in invokeForEach()
H A DrsCpuCore.h88 const Allocation *ains[RS_KERNEL_INPUT_LIMIT]; member
96 const Allocation *ains[RS_KERNEL_INPUT_LIMIT]; member
167 void launchForEach(const Allocation **ains, uint32_t inLen, Allocation *aout,
171 void launchReduce(const Allocation ** ains, uint32_t inLen, Allocation *aout,
263 void launchReduceSerial(const Allocation ** ains, uint32_t inLen, Allocation *aout,
265 void launchReduceParallel(const Allocation ** ains, uint32_t inLen, Allocation *aout,
H A DrsCpuScript.h49 virtual void preLaunch(uint32_t slot, const Allocation ** ains,
52 virtual void postLaunch(uint32_t slot, const Allocation ** ains,
58 const Allocation ** ains,
66 const Allocation ** ains, uint32_t inLen,
88 bool forEachMtlsSetup(const Allocation ** ains, uint32_t inLen,
95 bool reduceMtlsSetup(const Allocation ** ains, uint32_t inLen, const Allocation *aout,
H A DrsCpuIntrinsic.h37 const Allocation *ains[RS_KERNEL_INPUT_LIMIT]; member
61 void preLaunch(uint32_t slot, const Allocation ** ains,
64 void postLaunch(uint32_t slot, const Allocation ** ains,
H A DrsCpuCore.cpp339 if (mtls->ains[i] == nullptr) { in FepPtrSetup()
651 void RsdCpuReferenceImpl::launchReduce(const Allocation ** ains, in launchReduce() argument
657 launchReduceParallel(ains, inLen, aout, mtls); in launchReduce()
659 launchReduceSerial(ains, inLen, aout, mtls); in launchReduce()
668 void RsdCpuReferenceImpl::launchReduceSerial(const Allocation ** ains, in launchReduceSerial() argument
715 void RsdCpuReferenceImpl::launchReduceParallel(const Allocation ** ains, in launchReduceParallel() argument
721 launchReduceSerial(ains, inLen, aout, mtls); in launchReduceParallel()
826 void RsdCpuReferenceImpl::launchForEach(const Allocation ** ains, in launchForEach() argument
858 } else if (mtls->ains[0]) { in launchForEach()
859 s2 = targetByteChunk / mtls->ains[0]->mHal.drvState.lod[0].stride; in launchForEach()
[all …]
H A DrsCpuIntrinsicHistogram.cpp36 void preLaunch(uint32_t slot, const Allocation ** ains, uint32_t inLen,
39 void postLaunch(uint32_t slot, const Allocation ** ains, uint32_t inLen,
96 const Allocation ** ains, in preLaunch() argument
123 switch(ains[0]->getType()->getElement()->getVectorSize()) { in preLaunch()
144 const Allocation ** ains, in postLaunch() argument
H A Drsd_cpu.h58 const Allocation ** ains,
66 const Allocation ** ains, uint32_t inLen,
/aosp12/frameworks/base/rs/java/android/renderscript/
H A DScript.java234 forEach(slot, ains, aout, v, null); in forEach()
245 if (ains != null) { in forEach()
246 for (Allocation ain : ains) { in forEach()
252 if (ains == null && aout == null) { in forEach()
258 if (ains != null) { in forEach()
259 in_ids = new long[ains.length]; in forEach()
261 in_ids[index] = ains[index].getID(mRS); in forEach()
298 if (ains == null || ains.length < 1) { in reduce()
306 for (Allocation ain : ains) { in reduce()
310 long[] in_ids = new long[ains.length]; in reduce()
[all …]
H A DRenderScript.java752 native void rsnScriptForEach(long con, long id, int slot, long[] ains, in rsnScriptForEach() argument
755 synchronized void nScriptForEach(long id, int slot, long[] ains, long aout, in nScriptForEach() argument
758 rsnScriptForEach(mContext, id, slot, ains, aout, params, limits); in nScriptForEach()
761 native void rsnScriptReduce(long con, long id, int slot, long[] ains, in rsnScriptReduce() argument
763 synchronized void nScriptReduce(long id, int slot, long ains[], long aout, in nScriptReduce() argument
766 rsnScriptReduce(mContext, id, slot, ains, aout, limits); in nScriptReduce()
/aosp12/frameworks/rs/support/java/src/androidx/renderscript/
H A DScript.java331 forEach(slot, ains, aout, v, null); in forEach()
343 if (ains != null) { in forEach()
344 for (Allocation ain : ains) { in forEach()
350 if (ains == null && aout == null) { in forEach()
356 if (ains != null) { in forEach()
357 in_ids = new long[ains.length]; in forEach()
359 in_ids[index] = ains[index].getID(mRS); in forEach()
397 if (ains == null || ains.length < 1) { in reduce()
405 for (Allocation ain : ains) { in reduce()
409 long[] in_ids = new long[ains.length]; in reduce()
[all …]
H A DRenderScript.java680 native void rsnScriptForEach(long con, long id, int slot, long[] ains, in rsnScriptForEach() argument
683 synchronized void nScriptForEach(long id, int slot, long[] ains, long aout, in nScriptForEach() argument
690 rsnScriptForEach(mContext, id, slot, ains, aout, params, limits); in nScriptForEach()
693 native void rsnScriptReduce(long con, long id, int slot, long[] ains, in rsnScriptReduce() argument
695 synchronized void nScriptReduce(long id, int slot, long ains[], long aout, in nScriptReduce() argument
698 rsnScriptReduce(mContext, id, slot, ains, aout, limits); in nScriptReduce()
/aosp12/frameworks/rs/driver/
H A DrsdBcc.cpp81 const Allocation *ains[1] = {ain}; in rsdScriptInvokeForEach() local
83 rsdScriptInvokeForEachMulti(rsc, s, slot, ains, 1, aout, usr, usrLen, in rsdScriptInvokeForEach()
91 const Allocation ** ains, in rsdScriptInvokeForEachMulti() argument
99 cs->invokeForEach(slot, ains, inLen, aout, usr, usrLen, sc); in rsdScriptInvokeForEachMulti()
128 const Allocation ** ains, size_t inLen, in rsdScriptInvokeReduce() argument
132 cs->invokeReduce(slot, ains, inLen, aout, sc); in rsdScriptInvokeReduce()
H A DrsdBcc.h49 const android::renderscript::Allocation ** ains,
57 const android::renderscript::Allocation ** ains,
/aosp12/frameworks/rs/
H A DrsScript.cpp199 Allocation **ains = (Allocation**)(vains); in rsi_ScriptForEachMulti() local
202 const_cast<const Allocation **>(ains), inLen, in rsi_ScriptForEachMulti()
216 RsAllocation ains[1] = {vain}; in rsi_ScriptForEach() local
218 rsi_ScriptForEachMulti(rsc, vs, slot, ains, in rsi_ScriptForEach()
219 sizeof(ains) / sizeof(RsAllocation), vaout, in rsi_ScriptForEach()
229 Allocation **ains = (Allocation**)(vains); in rsi_ScriptReduce() local
232 const_cast<const Allocation **>(ains), inLen, in rsi_ScriptReduce()
H A DrsScriptIntrinsic.cpp60 const Allocation** ains, in runForEach() argument
67 rsc->mHal.funcs.script.invokeForEachMulti(rsc, this, slot, ains, inLen, in runForEach()
72 const Allocation ** ains, size_t inLen, in runReduce() argument
H A DrsScriptIntrinsic.h45 const Allocation ** ains,
53 const Allocation ** ains, size_t inLen,
H A DrsScriptC.h43 const Allocation ** ains,
51 const Allocation ** ains, size_t inLen,
H A DrsScriptC.cpp173 const Allocation ** ains, in runForEach() argument
207 rsc->mHal.funcs.script.invokeForEachMulti(rsc, this, slot, ains, inLen, in runForEach()
211 rsc->mHal.funcs.script.invokeForEach(rsc, this, slot, ains[0], aout, in runForEach()
221 const Allocation ** ains, size_t inLen, in runReduce() argument
238 rsc->mHal.funcs.script.invokeReduce(rsc, this, slot, ains, inLen, aout, sc); in runReduce()
H A DrsScript.h128 const Allocation ** ains,
136 const Allocation **ains, size_t inLen,
H A DrsScriptGroup.cpp348 const Allocation *ains[1] = {ain}; in execute() local
349 n->mScript->runForEach(rsc, k->mSlot, ains, in execute()
350 sizeof(ains) / sizeof(RsAllocation), in execute()
H A Drs.spec408 param RsAllocation * ains
417 param RsAllocation * ains
/aosp12/frameworks/rs/support/jni/
H A Dandroid_renderscript_RenderScript.cpp1652 jlongArray ains, jlong aout, jbyteArray params, in nScriptForEachMulti() argument
1662 if (ains != nullptr) { in nScriptForEachMulti()
1663 in_len = _env->GetArrayLength(ains); in nScriptForEachMulti()
1671 in_ptr = _env->GetLongArrayElements(ains, nullptr); in nScriptForEachMulti()
1739 if (ains != nullptr) { in nScriptForEachMulti()
1740 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT); in nScriptForEachMulti()
1754 jlongArray ains, jlong aout, jintArray limits) in nScriptReduce() argument
1758 if (ains == nullptr) { in nScriptReduce()
1763 jint in_len = _env->GetArrayLength(ains); in nScriptReduce()
1770 jlong *in_ptr = _env->GetLongArrayElements(ains, nullptr); in nScriptReduce()
[all …]
/aosp12/frameworks/base/rs/jni/
H A Dandroid_renderscript_RenderScript.cpp1990 jlongArray ains, jlong aout, jbyteArray params, in nScriptForEach() argument
2002 if (ains != nullptr) { in nScriptForEach()
2003 in_len = _env->GetArrayLength(ains); in nScriptForEach()
2010 in_ptr = _env->GetLongArrayElements(ains, nullptr); in nScriptForEach()
2088 if (ains != nullptr) { in nScriptForEach()
2089 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT); in nScriptForEach()
2103 jlongArray ains, jlong aout, jintArray limits) in nScriptReduce() argument
2109 if (ains == nullptr) { in nScriptReduce()
2114 jint in_len = _env->GetArrayLength(ains); in nScriptReduce()
2121 jlong *in_ptr = _env->GetLongArrayElements(ains, nullptr); in nScriptReduce()
[all …]

12