/frameworks/rs/cpu_ref/ |
D | rsCpuScript.cpp | 558 bool RsdCpuScriptImpl::reduceMtlsSetup(const Allocation ** ains, in reduceMtlsSetup() argument 563 rsAssert(ains && (inLen >= 1) && aout); in reduceMtlsSetup() 568 if (allocationLODIsNull(ains[index])) { in reduceMtlsSetup() 581 const Allocation *ain0 = ains[0]; in reduceMtlsSetup() 589 if (!ain0->hasSameDims(ains[Index])) { in reduceMtlsSetup() 617 memcpy(mtls->ains, ains, inLen * sizeof(ains[0])); in reduceMtlsSetup() 620 mtls->redp.inPtr[index] = (const uint8_t*)ains[index]->mHal.drvState.lod[0].mallocPtr; in reduceMtlsSetup() 621 mtls->redp.inStride[index] = ains[index]->getType()->getElementSizeBytes(); in reduceMtlsSetup() 629 bool RsdCpuScriptImpl::forEachMtlsSetup(const Allocation ** ains, in forEachMtlsSetup() argument 635 if (ains == nullptr && inLen != 0) { in forEachMtlsSetup() [all …]
|
D | rsCpuIntrinsic.cpp | 76 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()
|
D | rsCpuScriptGroup.cpp | 215 const Allocation **ains; in execute() local 219 ains = nullptr; in execute() 223 ains = const_cast<const Allocation**>(&ins[ct]); in execute() 226 bool launchOK = si->forEachMtlsSetup(ains, inLen, outs[ct], nullptr, 0, nullptr, &mtls); in execute() 229 si->preLaunch(slot, ains, inLen, outs[ct], mtls.fep.usr, in execute() 233 mCtx->launchForEach(ains, inLen, outs[ct], nullptr, &mtls); in execute() 236 si->postLaunch(slot, ains, inLen, outs[ct], nullptr, 0, nullptr); in execute() 246 const Allocation **ains; in execute() local 250 ains = nullptr; in execute() 254 ains = const_cast<const Allocation**>(&ins[0]); in execute() [all …]
|
D | rsCpuScript.h | 47 virtual void preLaunch(uint32_t slot, const Allocation ** ains, 50 virtual void postLaunch(uint32_t slot, const Allocation ** ains, 56 const Allocation ** ains, 64 const Allocation ** ains, uint32_t inLen, 86 bool forEachMtlsSetup(const Allocation ** ains, uint32_t inLen, 93 bool reduceMtlsSetup(const Allocation ** ains, uint32_t inLen, const Allocation *aout,
|
D | rsCpuCore.h | 86 const Allocation *ains[RS_KERNEL_INPUT_LIMIT]; member 94 const Allocation *ains[RS_KERNEL_INPUT_LIMIT]; member 165 void launchForEach(const Allocation **ains, uint32_t inLen, Allocation *aout, 169 void launchReduce(const Allocation ** ains, uint32_t inLen, Allocation *aout, 261 void launchReduceSerial(const Allocation ** ains, uint32_t inLen, Allocation *aout, 263 void launchReduceParallel(const Allocation ** ains, uint32_t inLen, Allocation *aout,
|
D | rsCpuIntrinsic.h | 46 void preLaunch(uint32_t slot, const Allocation ** ains, 49 void postLaunch(uint32_t slot, const Allocation ** ains,
|
D | rsCpuCore.cpp | 345 …fep->inPtr[i] = (const uint8_t *)mtls->ains[i]->getPointerUnchecked(x, y, z, lod, face, a1, a2, a3… in FepPtrSetup() 360 redp->inPtr[i] = (const uint8_t *)mtls->ains[i]->getPointerUnchecked(x, y, z); in RedpPtrSetup() 653 void RsdCpuReferenceImpl::launchReduce(const Allocation ** ains, in launchReduce() argument 659 launchReduceParallel(ains, inLen, aout, mtls); in launchReduce() 661 launchReduceSerial(ains, inLen, aout, mtls); in launchReduce() 670 void RsdCpuReferenceImpl::launchReduceSerial(const Allocation ** ains, in launchReduceSerial() argument 717 void RsdCpuReferenceImpl::launchReduceParallel(const Allocation ** ains, in launchReduceParallel() argument 723 launchReduceSerial(ains, inLen, aout, mtls); in launchReduceParallel() 828 void RsdCpuReferenceImpl::launchForEach(const Allocation ** ains, in launchForEach() argument 860 } else if (mtls->ains[0]) { in launchForEach() [all …]
|
D | rsCpuIntrinsicHistogram.cpp | 39 void preLaunch(uint32_t slot, const Allocation ** ains, uint32_t inLen, 42 void postLaunch(uint32_t slot, const Allocation ** ains, uint32_t inLen, 102 const Allocation ** ains, in preLaunch() argument 129 switch(ains[0]->getType()->getElement()->getVectorSize()) { in preLaunch() 150 const Allocation ** ains, in postLaunch() argument
|
D | rsd_cpu.h | 54 const Allocation ** ains, 62 const Allocation ** ains, uint32_t inLen,
|
/frameworks/base/rs/java/android/renderscript/ |
D | Script.java | 226 protected void forEach(int slot, Allocation[] ains, Allocation aout, in forEach() argument 230 forEach(slot, ains, aout, v, null); in forEach() 236 protected void forEach(int slot, Allocation[] ains, Allocation aout, in forEach() argument 241 if (ains != null) { in forEach() 242 for (Allocation ain : ains) { in forEach() 248 if (ains == null && aout == null) { in forEach() 254 if (ains != null) { in forEach() 255 in_ids = new long[ains.length]; in forEach() 256 for (int index = 0; index < ains.length; ++index) { in forEach() 257 in_ids[index] = ains[index].getID(mRS); in forEach() [all …]
|
D | RenderScript.java | 746 native void rsnScriptForEach(long con, long id, int slot, long[] ains, in rsnScriptForEach() argument 749 synchronized void nScriptForEach(long id, int slot, long[] ains, long aout, in nScriptForEach() argument 752 rsnScriptForEach(mContext, id, slot, ains, aout, params, limits); in nScriptForEach() 755 native void rsnScriptReduce(long con, long id, int slot, long[] ains, in rsnScriptReduce() argument 757 synchronized void nScriptReduce(long id, int slot, long ains[], long aout, in nScriptReduce() argument 760 rsnScriptReduce(mContext, id, slot, ains, aout, limits); in nScriptReduce()
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
D | Script.java | 324 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 …]
|
D | RenderScript.java | 663 native void rsnScriptForEach(long con, long id, int slot, long[] ains, in rsnScriptForEach() argument 666 synchronized void nScriptForEach(long id, int slot, long[] ains, long aout, in nScriptForEach() argument 673 rsnScriptForEach(mContext, id, slot, ains, aout, params, limits); in nScriptForEach() 676 native void rsnScriptReduce(long con, long id, int slot, long[] ains, in rsnScriptReduce() argument 678 synchronized void nScriptReduce(long id, int slot, long ains[], long aout, in nScriptReduce() argument 681 rsnScriptReduce(mContext, id, slot, ains, aout, limits); in nScriptReduce()
|
/frameworks/rs/driver/ |
D | rsdBcc.cpp | 82 const Allocation *ains[1] = {ain}; in rsdScriptInvokeForEach() local 84 rsdScriptInvokeForEachMulti(rsc, s, slot, ains, 1, aout, usr, usrLen, in rsdScriptInvokeForEach() 92 const Allocation ** ains, in rsdScriptInvokeForEachMulti() argument 100 cs->invokeForEach(slot, ains, inLen, aout, usr, usrLen, sc); in rsdScriptInvokeForEachMulti() 129 const Allocation ** ains, size_t inLen, in rsdScriptInvokeReduce() argument 133 cs->invokeReduce(slot, ains, inLen, aout, sc); in rsdScriptInvokeReduce()
|
D | rsdBcc.h | 49 const android::renderscript::Allocation ** ains, 57 const android::renderscript::Allocation ** ains,
|
/frameworks/rs/ |
D | rsScriptIntrinsic.cpp | 60 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
|
D | rsScript.cpp | 202 Allocation **ains = (Allocation**)(vains); in rsi_ScriptForEachMulti() local 205 const_cast<const Allocation **>(ains), inLen, in rsi_ScriptForEachMulti() 219 RsAllocation ains[1] = {vain}; in rsi_ScriptForEach() local 221 rsi_ScriptForEachMulti(rsc, vs, slot, ains, in rsi_ScriptForEach() 222 sizeof(ains) / sizeof(RsAllocation), vaout, in rsi_ScriptForEach() 232 Allocation **ains = (Allocation**)(vains); in rsi_ScriptReduce() local 235 const_cast<const Allocation **>(ains), inLen, in rsi_ScriptReduce()
|
D | rsScriptC.h | 43 const Allocation ** ains, 51 const Allocation ** ains, size_t inLen,
|
D | rsScriptIntrinsic.h | 45 const Allocation ** ains, 53 const Allocation ** ains, size_t inLen,
|
D | rsScriptC.cpp | 180 const Allocation ** ains, in runForEach() argument 225 rsc->mHal.funcs.script.invokeForEachMulti(rsc, this, slot, ains, inLen, in runForEach() 229 rsc->mHal.funcs.script.invokeForEach(rsc, this, slot, ains[0], aout, in runForEach() 243 const Allocation ** ains, size_t inLen, in runReduce() argument 260 rsc->mHal.funcs.script.invokeReduce(rsc, this, slot, ains, inLen, aout, sc); in runReduce()
|
D | rsScript.h | 128 const Allocation ** ains, 136 const Allocation **ains, size_t inLen,
|
D | rsScriptGroup.cpp | 368 const Allocation *ains[1] = {ain}; in execute() local 369 n->mScript->runForEach(rsc, k->mSlot, ains, in execute() 370 sizeof(ains) / sizeof(RsAllocation), in execute()
|
D | rs.spec | 408 param RsAllocation * ains 417 param RsAllocation * ains
|
/frameworks/support/v8/renderscript/jni/ |
D | android_renderscript_RenderScript.cpp | 1637 jlongArray ains, jlong aout, jbyteArray params, in nScriptForEachMulti() argument 1640 …p), s(%p), slot(%i) ains(%p) aout(%" PRId64 ")", (RsContext)con, (void *)script, slot, ains, aout); in nScriptForEachMulti() 1647 if (ains != nullptr) { in nScriptForEachMulti() 1648 in_len = _env->GetArrayLength(ains); in nScriptForEachMulti() 1656 in_ptr = _env->GetLongArrayElements(ains, nullptr); in nScriptForEachMulti() 1666 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT); in nScriptForEachMulti() 1724 if (ains != nullptr) { in nScriptForEachMulti() 1725 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT); in nScriptForEachMulti() 1739 jlongArray ains, jlong aout, jintArray limits) in nScriptReduce() argument 1741 …p), s(%p), slot(%i) ains(%p) aout(%" PRId64 ")", (RsContext)con, (void *)script, slot, ains, aout); in nScriptReduce() [all …]
|
/frameworks/base/rs/jni/ |
D | android_renderscript_RenderScript.cpp | 1984 jlongArray ains, jlong aout, jbyteArray params, in nScriptForEach() argument 1988 …p), s(%p), slot(%i) ains(%p) aout(%" PRId64 ")", (RsContext)con, (void *)script, slot, ains, aout); in nScriptForEach() 1996 if (ains != nullptr) { in nScriptForEach() 1997 in_len = _env->GetArrayLength(ains); in nScriptForEach() 2004 in_ptr = _env->GetLongArrayElements(ains, nullptr); in nScriptForEach() 2018 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT); in nScriptForEach() 2082 if (ains != nullptr) { in nScriptForEach() 2083 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT); in nScriptForEach() 2097 jlongArray ains, jlong aout, jintArray limits) in nScriptReduce() argument 2100 …p), s(%p), slot(%i) ains(%p) aout(%" PRId64 ")", (RsContext)con, (void *)script, slot, ains, aout); in nScriptReduce() [all …]
|