Home
last modified time | relevance | path

Searched refs:mtls (Results 1 – 8 of 8) sorted by relevance

/frameworks/rs/cpu_ref/
DrsCpuCore.cpp48 #define REDUCE_ALOGV(mtls, level, ...) do { if ((mtls)->logReduce >= (level)) ALOGV(__VA_ARGS__); }… argument
160 MTLaunchStructCommon *mtls = (MTLaunchStructCommon *)data; in launchThreads() local
161 if (mtls && mtls->dimPtr->y <= 1 && mtls->end.x <= mtls->start.x + mtls->mSliceSize) { in launchThreads()
339 static inline void FepPtrSetup(const MTLaunchStructForEach *mtls, RsExpandKernelDriverInfo *fep, in FepPtrSetup() argument
345 …fep->inPtr[i] = (const uint8_t *)mtls->ains[i]->getPointerUnchecked(x, y, z, lod, face, a1, a2, a3… in FepPtrSetup()
347 if (mtls->aout[0] != nullptr) { in FepPtrSetup()
348 …fep->outPtr[0] = (uint8_t *)mtls->aout[0]->getPointerUnchecked(x, y, z, lod, face, a1, a2, a3, a4); in FepPtrSetup()
357 static inline void RedpPtrSetup(const MTLaunchStructReduce *mtls, RsExpandKernelDriverInfo *redp, in RedpPtrSetup() argument
360 redp->inPtr[i] = (const uint8_t *)mtls->ains[i]->getPointerUnchecked(x, y, z); in RedpPtrSetup()
377 static bool SelectOuterSlice(const MTLaunchStructCommon *mtls, RsExpandKernelDriverInfo* info, uint… in SelectOuterSlice() argument
[all …]
DrsCpuScript.cpp526 bool RsdCpuScriptImpl::setUpMtlsDimensions(MTLaunchStructCommon *mtls, in setUpMtlsDimensions() argument
529 rsAssert(mtls); in setUpMtlsDimensions()
533 mtls->end.DIM_FIELD = baseDim.DIM_FIELD; \ in setUpMtlsDimensions()
535 mtls->start.DIM_FIELD = \ in setUpMtlsDimensions()
537 mtls->end.DIM_FIELD = \ in setUpMtlsDimensions()
539 if (mtls->start.DIM_FIELD >= mtls->end.DIM_FIELD) { \ in setUpMtlsDimensions()
562 MTLaunchStructReduce *mtls) { in reduceMtlsSetup() argument
564 memset(mtls, 0, sizeof(MTLaunchStructReduce)); in reduceMtlsSetup()
565 mtls->dimPtr = &mtls->redp.dim; in reduceMtlsSetup()
584 mtls->redp.dim.x = inType->getDimX(); in reduceMtlsSetup()
[all …]
DrsCpuIntrinsic.cpp96 MTLaunchStructForEach mtls; in invokeForEach() local
100 if (forEachMtlsSetup(ains, inLen, aout, usr, usrLen, sc, &mtls)) { in invokeForEach()
101 mtls.script = this; in invokeForEach()
102 mtls.fep.slot = slot; in invokeForEach()
104 mtls.kernel = mRootPtr; in invokeForEach()
105 mtls.fep.usr = this; in invokeForEach()
108 mCtx->launchForEach(ains, inLen, aout, sc, &mtls); in invokeForEach()
115 void RsdCpuScriptIntrinsic::forEachKernelSetup(uint32_t slot, MTLaunchStructForEach *mtls) { in forEachKernelSetup() argument
117 mtls->script = this; in forEachKernelSetup()
118 mtls->fep.slot = slot; in forEachKernelSetup()
[all …]
DrsCpuScriptGroup.cpp206 MTLaunchStructForEach mtls; in execute() local
226 bool launchOK = si->forEachMtlsSetup(ains, inLen, outs[ct], nullptr, 0, nullptr, &mtls); in execute()
228 si->forEachKernelSetup(slot, &mtls); in execute()
229 si->preLaunch(slot, ains, inLen, outs[ct], mtls.fep.usr, in execute()
230 mtls.fep.usrLen, nullptr); in execute()
233 mCtx->launchForEach(ains, inLen, outs[ct], nullptr, &mtls); in execute()
264 si->forEachKernelSetup(kernels[ct]->mSlot, &mtls); in execute()
265 fnPtrs.add((void *)mtls.kernel); in execute()
266 usrPtrs.add(mtls.fep.usr); in execute()
267 sigs.add(mtls.fep.usrLen); in execute()
[all …]
DrsCpuScriptGroup2.cpp173 MTLaunchStructForEach mtls; in CpuScriptGroup2Impl() local
174 si->forEachKernelSetup(funcID->mSlot, &mtls); in CpuScriptGroup2Impl()
175 cc = new CPUClosure(closure, si, (ExpandFuncTy)mtls.kernel); in CpuScriptGroup2Impl()
586 MTLaunchStructForEach mtls; in run() local
594 nullptr, 0, nullptr, &mtls); in run()
596 mtls.script = nullptr; in run()
597 mtls.fep.usr = nullptr; in run()
598 mtls.kernel = (ForEachFunc_t)mFunc; in run()
604 nullptr, &mtls); in run()
621 MTLaunchStructForEach mtls; in run() local
[all …]
DrsCpuScript.h88 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,
DrsCpuCore.h166 const RsScriptCall *sc, MTLaunchStructForEach *mtls);
170 MTLaunchStructReduce *mtls);
262 MTLaunchStructReduce *mtls);
264 MTLaunchStructReduce *mtls);
DrsCpuIntrinsic.h42 void forEachKernelSetup(uint32_t slot, MTLaunchStructForEach * mtls) override;