Home
last modified time | relevance | path

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

12

/frameworks/rs/cpu_ref/
DrsCpuScript.cpp555 bool RsdCpuScriptImpl::reduceMtlsSetup(const Allocation ** ains, in reduceMtlsSetup() argument
560 rsAssert(ains && (inLen >= 1) && aout); in reduceMtlsSetup()
565 if (allocationLODIsNull(ains[index])) { 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()
617 mtls->redp.inPtr[index] = (const uint8_t*)ains[index]->mHal.drvState.lod[0].mallocPtr; in reduceMtlsSetup()
618 mtls->redp.inStride[index] = ains[index]->getType()->getElementSizeBytes(); in reduceMtlsSetup()
626 bool RsdCpuScriptImpl::forEachMtlsSetup(const Allocation ** ains, in forEachMtlsSetup() argument
632 if (ains == nullptr && inLen != 0) { in forEachMtlsSetup()
[all …]
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()
DrsCpuScriptGroup.cpp213 const Allocation **ains; in execute() local
217 ains = nullptr; in execute()
221 ains = const_cast<const Allocation**>(&ins[ct]); in execute()
224 bool launchOK = si->forEachMtlsSetup(ains, inLen, outs[ct], nullptr, 0, nullptr, &mtls); 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()
[all …]
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,
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,
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,
DrsCpuCore.cpp339 if (mtls->ains[i] == nullptr) { in FepPtrSetup()
343 …fep->inPtr[i] = (const uint8_t *)mtls->ains[i]->getPointerUnchecked(x, y, z, lod, face, a1, a2, a3… in FepPtrSetup()
358 redp->inPtr[i] = (const uint8_t *)mtls->ains[i]->getPointerUnchecked(x, y, z); in RedpPtrSetup()
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
[all …]
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
Drsd_cpu.h58 const Allocation ** ains,
66 const Allocation ** ains, uint32_t inLen,
/frameworks/base/rs/java/android/renderscript/
DScript.java225 protected void forEach(int slot, Allocation[] ains, Allocation aout, in forEach() argument
229 forEach(slot, ains, aout, v, null); in forEach()
235 protected void forEach(int slot, Allocation[] ains, Allocation aout, in forEach() argument
240 if (ains != null) { in forEach()
241 for (Allocation ain : ains) { in forEach()
247 if (ains == null && aout == null) { in forEach()
253 if (ains != null) { in forEach()
254 in_ids = new long[ains.length]; in forEach()
255 for (int index = 0; index < ains.length; ++index) { in forEach()
256 in_ids[index] = ains[index].getID(mRS); in forEach()
[all …]
DRenderScript.java758 native void rsnScriptForEach(long con, long id, int slot, long[] ains, in rsnScriptForEach() argument
761 synchronized void nScriptForEach(long id, int slot, long[] ains, long aout, in nScriptForEach() argument
764 rsnScriptForEach(mContext, id, slot, ains, aout, params, limits); in nScriptForEach()
767 native void rsnScriptReduce(long con, long id, int slot, long[] ains, in rsnScriptReduce() argument
769 synchronized void nScriptReduce(long id, int slot, long ains[], long aout, in nScriptReduce() argument
772 rsnScriptReduce(mContext, id, slot, ains, aout, limits); in nScriptReduce()
/frameworks/rs/support/java/src/androidx/renderscript/
DScript.java324 protected void forEach(int slot, Allocation[] ains, Allocation aout, in forEach() argument
326 forEach(slot, ains, aout, v, null); in forEach()
334 protected void forEach(int slot, Allocation[] ains, Allocation aout, in forEach() argument
338 if (ains != null) { in forEach()
339 for (Allocation ain : ains) { in forEach()
345 if (ains == null && aout == null) { in forEach()
351 if (ains != null) { in forEach()
352 in_ids = new long[ains.length]; in forEach()
353 for (int index = 0; index < ains.length; ++index) { in forEach()
354 in_ids[index] = ains[index].getID(mRS); in forEach()
[all …]
DRenderScript.java675 native void rsnScriptForEach(long con, long id, int slot, long[] ains, in rsnScriptForEach() argument
678 synchronized void nScriptForEach(long id, int slot, long[] ains, long aout, in nScriptForEach() argument
685 rsnScriptForEach(mContext, id, slot, ains, aout, params, limits); in nScriptForEach()
688 native void rsnScriptReduce(long con, long id, int slot, long[] ains, in rsnScriptReduce() argument
690 synchronized void nScriptReduce(long id, int slot, long ains[], long aout, in nScriptReduce() argument
693 rsnScriptReduce(mContext, id, slot, ains, aout, limits); in nScriptReduce()
/frameworks/rs/driver/
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()
DrsdBcc.h49 const android::renderscript::Allocation ** ains,
57 const android::renderscript::Allocation ** ains,
/frameworks/rs/
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
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()
DrsScriptIntrinsic.h45 const Allocation ** ains,
53 const Allocation ** ains, size_t inLen,
DrsScriptC.h43 const Allocation ** ains,
51 const Allocation ** ains, size_t inLen,
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()
DrsScript.h128 const Allocation ** ains,
136 const Allocation **ains, size_t inLen,
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()
Drs.spec408 param RsAllocation * ains
417 param RsAllocation * ains
/frameworks/rs/support/jni/
Dandroid_renderscript_RenderScript.cpp1652 jlongArray ains, jlong aout, jbyteArray params, in nScriptForEachMulti() argument
1655 …p), s(%p), slot(%i) ains(%p) aout(%" PRId64 ")", (RsContext)con, (void *)script, slot, ains, aout); in nScriptForEachMulti()
1662 if (ains != nullptr) { in nScriptForEachMulti()
1663 in_len = _env->GetArrayLength(ains); in nScriptForEachMulti()
1671 in_ptr = _env->GetLongArrayElements(ains, nullptr); in nScriptForEachMulti()
1681 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT); 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
1756 …p), s(%p), slot(%i) ains(%p) aout(%" PRId64 ")", (RsContext)con, (void *)script, slot, ains, aout); in nScriptReduce()
[all …]
/frameworks/base/rs/jni/
Dandroid_renderscript_RenderScript.cpp1995 jlongArray ains, jlong aout, jbyteArray params, in nScriptForEach() argument
1999 …p), s(%p), slot(%i) ains(%p) aout(%" PRId64 ")", (RsContext)con, (void *)script, slot, ains, aout); in nScriptForEach()
2007 if (ains != nullptr) { in nScriptForEach()
2008 in_len = _env->GetArrayLength(ains); in nScriptForEach()
2015 in_ptr = _env->GetLongArrayElements(ains, nullptr); in nScriptForEach()
2029 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT); in nScriptForEach()
2093 if (ains != nullptr) { in nScriptForEach()
2094 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT); in nScriptForEach()
2108 jlongArray ains, jlong aout, jintArray limits) in nScriptReduce() argument
2111 …p), s(%p), slot(%i) ains(%p) aout(%" PRId64 ")", (RsContext)con, (void *)script, slot, ains, aout); in nScriptReduce()
[all …]

12