/frameworks/rs/cpu_ref/ |
H A D | rsCpuCore.cpp | 48 #define REDUCE_ALOGV(mtls, level, ...) do { if ((mtls)->logReduce >= (level)) ALOGV(__VA_ARGS__); } while(0) 160 MTLaunchStructCommon *mtls = (MTLaunchStructCommon *)data; local 161 if (mtls && mtls->dimPtr->y <= 1 && mtls->end.x <= mtls->start.x + mtls->mSliceSize) { 336 // mtls - The MTLaunchStruct holding information about the kernel launch 339 static inline void FepPtrSetup(const MTLaunchStructForEach *mtls, RsExpandKernelDriverInf argument 357 RedpPtrSetup(const MTLaunchStructReduce *mtls, RsExpandKernelDriverInfo *redp, uint32_t x, uint32_t y, uint32_t z) argument 377 SelectOuterSlice(const MTLaunchStructCommon *mtls, RsExpandKernelDriverInfo* info, uint32_t sliceNum) argument 389 SelectZSlice(const MTLaunchStructCommon *mtls, RsExpandKernelDriverInfo* info, uint32_t sliceNum) argument 394 MTLaunchStructForEach *mtls = (MTLaunchStructForEach *)usr; local 421 MTLaunchStructForEach *mtls = (MTLaunchStructForEach *)usr; local 446 MTLaunchStructForEach *mtls = (MTLaunchStructForEach *)usr; local 511 reduce_get_accumulator(uint8_t *&accumPtr, const MTLaunchStructReduce *mtls, const char *walkerName, uint32_t threadIdx) argument 536 const MTLaunchStructReduce *mtls = (const MTLaunchStructReduce *)usr; local 575 const MTLaunchStructReduce *mtls = (const MTLaunchStructReduce *)usr; local 614 const MTLaunchStructReduce *mtls = (const MTLaunchStructReduce *)usr; local 653 launchReduce(const Allocation ** ains, uint32_t inLen, Allocation * aout, MTLaunchStructReduce *mtls) argument 670 launchReduceSerial(const Allocation ** ains, uint32_t inLen, Allocation * aout, MTLaunchStructReduce *mtls) argument 717 launchReduceParallel(const Allocation ** ains, uint32_t inLen, Allocation * aout, MTLaunchStructReduce *mtls) argument 828 launchForEach(const Allocation ** ains, uint32_t inLen, Allocation* aout, const RsScriptCall* sc, MTLaunchStructForEach* mtls) argument [all...] |
H A D | rsCpuIntrinsic.cpp | 96 MTLaunchStructForEach mtls; local 100 if (forEachMtlsSetup(ains, inLen, aout, usr, usrLen, sc, &mtls)) { 101 mtls.script = this; 102 mtls.fep.slot = slot; 104 mtls.kernel = mRootPtr; 105 mtls.fep.usr = this; 108 mCtx->launchForEach(ains, inLen, aout, sc, &mtls); 115 void RsdCpuScriptIntrinsic::forEachKernelSetup(uint32_t slot, MTLaunchStructForEach *mtls) { argument 117 mtls->script = this; 118 mtls [all...] |
H A D | rsCpuScript.cpp | 518 // dimensions into the mtls start/end fields. 526 bool RsdCpuScriptImpl::setUpMtlsDimensions(MTLaunchStructCommon *mtls, argument 529 rsAssert(mtls); 533 mtls->end.DIM_FIELD = baseDim.DIM_FIELD; \ 535 mtls->start.DIM_FIELD = \ 537 mtls->end.DIM_FIELD = \ 539 if (mtls->start.DIM_FIELD >= mtls->end.DIM_FIELD) { \ 562 MTLaunchStructReduce *mtls) { 564 memset(mtls, 558 reduceMtlsSetup(const Allocation ** ains, uint32_t inLen, const Allocation * aout, const RsScriptCall *sc, MTLaunchStructReduce *mtls) argument 629 forEachMtlsSetup(const Allocation ** ains, uint32_t inLen, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc, MTLaunchStructForEach *mtls) argument 745 MTLaunchStructForEach mtls; local 760 MTLaunchStructReduce mtls; local 770 forEachKernelSetup(uint32_t slot, MTLaunchStructForEach *mtls) argument 777 reduceKernelSetup(uint32_t slot, MTLaunchStructReduce *mtls) argument [all...] |
H A D | rsCpuScriptGroup.cpp | 206 MTLaunchStructForEach mtls; local 226 bool launchOK = si->forEachMtlsSetup(ains, inLen, outs[ct], nullptr, 0, nullptr, &mtls); 228 si->forEachKernelSetup(slot, &mtls); 229 si->preLaunch(slot, ains, inLen, outs[ct], mtls.fep.usr, 230 mtls.fep.usrLen, nullptr); 233 mCtx->launchForEach(ains, inLen, outs[ct], nullptr, &mtls); 264 si->forEachKernelSetup(kernels[ct]->mSlot, &mtls); 265 fnPtrs.add((void *)mtls.kernel); 266 usrPtrs.add(mtls.fep.usr); 267 sigs.add(mtls [all...] |
H A D | rsCpuScript.h | 88 const RsScriptCall *sc, MTLaunchStructForEach *mtls); 90 virtual void forEachKernelSetup(uint32_t slot, MTLaunchStructForEach *mtls); 94 const RsScriptCall *sc, MTLaunchStructReduce *mtls); 96 virtual void reduceKernelSetup(uint32_t slot, MTLaunchStructReduce *mtls); 136 bool setUpMtlsDimensions(MTLaunchStructCommon *mtls,
|
H A D | rsCpuCore.h | 166 const RsScriptCall *sc, MTLaunchStructForEach *mtls); 170 MTLaunchStructReduce *mtls); 262 MTLaunchStructReduce *mtls); 264 MTLaunchStructReduce *mtls);
|
H A D | rsCpuScriptGroup2.cpp | 173 MTLaunchStructForEach mtls; local 174 si->forEachKernelSetup(funcID->mSlot, &mtls); 175 cc = new CPUClosure(closure, si, (ExpandFuncTy)mtls.kernel); 586 MTLaunchStructForEach mtls; local 594 nullptr, 0, nullptr, &mtls); 596 mtls.script = nullptr; 597 mtls.fep.usr = nullptr; 598 mtls.kernel = (ForEachFunc_t)mFunc; 604 nullptr, &mtls); 621 MTLaunchStructForEach mtls; local [all...] |
H A D | rsCpuIntrinsic.h | 42 void forEachKernelSetup(uint32_t slot, MTLaunchStructForEach * mtls) override;
|