/frameworks/rs/cpu_ref/ |
D | rsCpuScript.cpp | 554 bool RsdCpuScriptImpl::reduceMtlsSetup(const Allocation ** ains, in reduceMtlsSetup() argument 559 rsAssert(ains && (inLen >= 1) && aout); in reduceMtlsSetup() 564 if (allocationLODIsNull(ains[index])) { in reduceMtlsSetup() 577 const Allocation *ain0 = ains[0]; in reduceMtlsSetup() 585 if (!ain0->hasSameDims(ains[Index])) { in reduceMtlsSetup() 613 memcpy(mtls->ains, ains, inLen * sizeof(ains[0])); in reduceMtlsSetup() 616 mtls->redp.inPtr[index] = (const uint8_t*)ains[index]->mHal.drvState.lod[0].mallocPtr; in reduceMtlsSetup() 617 mtls->redp.inStride[index] = ains[index]->getType()->getElementSizeBytes(); in reduceMtlsSetup() 625 bool RsdCpuScriptImpl::forEachMtlsSetup(const Allocation ** ains, in forEachMtlsSetup() argument 631 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 | 213 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 …]
|
D | rsCpuScript.h | 49 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,
|
D | rsCpuCore.h | 88 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,
|
D | rsCpuIntrinsic.h | 37 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,
|
D | rsCpuCore.cpp | 339 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 …]
|
D | rsCpuIntrinsicHistogram.cpp | 36 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
|
D | rsd_cpu.h | 58 const Allocation ** ains, 66 const Allocation ** ains, uint32_t inLen,
|
/frameworks/base/rs/java/android/renderscript/ |
D | Script.java | 224 protected void forEach(int slot, Allocation[] ains, Allocation aout, in forEach() argument 228 forEach(slot, ains, aout, v, null); in forEach() 234 protected void forEach(int slot, Allocation[] ains, Allocation aout, in forEach() argument 239 if (ains != null) { in forEach() 240 for (Allocation ain : ains) { in forEach() 246 if (ains == null && aout == null) { in forEach() 252 if (ains != null) { in forEach() 253 in_ids = new long[ains.length]; in forEach() 254 for (int index = 0; index < ains.length; ++index) { in forEach() 255 in_ids[index] = ains[index].getID(mRS); in forEach() [all …]
|
/frameworks/rs/support/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 …]
|
/frameworks/rs/driver/ |
D | rsdBcc.cpp | 81 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()
|
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 | 199 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()
|
D | rsScriptIntrinsic.h | 45 const Allocation ** ains, 53 const Allocation ** ains, size_t inLen,
|
D | rsScriptC.h | 43 const Allocation ** ains, 51 const Allocation ** ains, size_t inLen,
|
D | rsScriptC.cpp | 173 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()
|
D | rsScript.h | 128 const Allocation ** ains, 136 const Allocation **ains, size_t inLen,
|
D | rsScriptGroup.cpp | 348 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()
|
D | rs.spec | 408 param RsAllocation * ains 417 param RsAllocation * ains
|
/frameworks/rs/rsov/driver/ |
D | rsovScript.h | 66 void invokeForEach(uint32_t slot, const Allocation **ains, uint32_t inLen, 70 void invokeReduce(uint32_t slot, const Allocation **ains, uint32_t inLen, 178 uint32_t slot, const android::renderscript::Allocation **ains, size_t inLen, 183 uint32_t slot, const android::renderscript::Allocation **ains, size_t inLen,
|
D | rsovScript.cpp | 218 void RSoVScript::invokeForEach(uint32_t slot, const Allocation **ains, in invokeForEach() argument 223 rsAssert(ains); in invokeForEach() 226 inputAllocations[i] = static_cast<RSoVAllocation *>(ains[i]->mHal.drv); in invokeForEach() 233 void RSoVScript::invokeReduce(uint32_t slot, const Allocation **ains, in invokeReduce() argument 236 getCpuScript()->invokeReduce(slot, ains, inLen, aout, sc); in invokeReduce() 839 const Allocation *ains[1] = {ain}; in rsovScriptInvokeForEach() local 841 rsovScriptInvokeForEachMulti(rsc, s, slot, ains, 1, aout, usr, usrLen, sc); in rsovScriptInvokeForEach() 846 const Allocation **ains, size_t inLen, in rsovScriptInvokeForEachMulti() argument 850 cs->invokeForEach(slot, ains, inLen, aout, usr, usrLen, sc); in rsovScriptInvokeForEachMulti() 875 const Allocation **ains, size_t inLen, in rsovScriptInvokeReduce() argument [all …]
|
/frameworks/rs/support/jni/ |
D | android_renderscript_RenderScript.cpp | 1650 jlongArray ains, jlong aout, jbyteArray params, in nScriptForEachMulti() argument 1653 …p), s(%p), slot(%i) ains(%p) aout(%" PRId64 ")", (RsContext)con, (void *)script, slot, ains, aout); in nScriptForEachMulti() 1660 if (ains != nullptr) { in nScriptForEachMulti() 1661 in_len = _env->GetArrayLength(ains); in nScriptForEachMulti() 1669 in_ptr = _env->GetLongArrayElements(ains, nullptr); in nScriptForEachMulti() 1679 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT); in nScriptForEachMulti() 1737 if (ains != nullptr) { in nScriptForEachMulti() 1738 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT); in nScriptForEachMulti() 1752 jlongArray ains, jlong aout, jintArray limits) in nScriptReduce() argument 1754 …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 | 1987 jlongArray ains, jlong aout, jbyteArray params, in nScriptForEach() argument 1991 …p), s(%p), slot(%i) ains(%p) aout(%" PRId64 ")", (RsContext)con, (void *)script, slot, ains, aout); in nScriptForEach() 1999 if (ains != nullptr) { in nScriptForEach() 2000 in_len = _env->GetArrayLength(ains); in nScriptForEach() 2007 in_ptr = _env->GetLongArrayElements(ains, nullptr); in nScriptForEach() 2021 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT); in nScriptForEach() 2085 if (ains != nullptr) { in nScriptForEach() 2086 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT); in nScriptForEach() 2100 jlongArray ains, jlong aout, jintArray limits) in nScriptReduce() argument 2103 …p), s(%p), slot(%i) ains(%p) aout(%" PRId64 ")", (RsContext)con, (void *)script, slot, ains, aout); in nScriptReduce() [all …]
|