Home
last modified time | relevance | path

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

/frameworks/rs/cpu_ref/
DrsCpuCore.cpp165 MTLaunchStruct *mtls = (MTLaunchStruct *)data; in launchThreads() local
166 if (mtls && mtls->fep.dim.y <= 1 && mtls->end.x <= mtls->start.x + mtls->mSliceSize) { in launchThreads()
335 static inline void FepPtrSetup(const MTLaunchStruct *mtls, RsExpandKernelDriverInfo *fep, in FepPtrSetup() argument
342 …fep->inPtr[i] = (const uint8_t *)mtls->ains[i]->getPointerUnchecked(x, y, z, lod, face, a1, a2, a3… in FepPtrSetup()
345 if (mtls->aout[0] != nullptr) { in FepPtrSetup()
346 …fep->outPtr[0] = (uint8_t *)mtls->aout[0]->getPointerUnchecked(x, y, z, lod, face, a1, a2, a3, a4); in FepPtrSetup()
363 static bool SelectOuterSlice(const MTLaunchStruct *mtls, RsExpandKernelDriverInfo* fep, uint32_t sl… in SelectOuterSlice() argument
366 r = sliceInt(&fep->current.z, r, mtls->start.z, mtls->end.z); in SelectOuterSlice()
367 r = sliceInt(&fep->current.lod, r, mtls->start.lod, mtls->end.lod); in SelectOuterSlice()
368 r = sliceInt(&fep->current.face, r, mtls->start.face, mtls->end.face); in SelectOuterSlice()
[all …]
DrsCpuScript.cpp520 MTLaunchStruct *mtls) { in forEachMtlsSetup() argument
522 memset(mtls, 0, sizeof(MTLaunchStruct)); in forEachMtlsSetup()
549 mtls->fep.dim.x = inType->getDimX(); in forEachMtlsSetup()
550 mtls->fep.dim.y = inType->getDimY(); in forEachMtlsSetup()
551 mtls->fep.dim.z = inType->getDimZ(); in forEachMtlsSetup()
566 mtls->fep.dim.x = outType->getDimX(); in forEachMtlsSetup()
567 mtls->fep.dim.y = outType->getDimY(); in forEachMtlsSetup()
568 mtls->fep.dim.z = outType->getDimZ(); in forEachMtlsSetup()
571 mtls->fep.dim.x = sc->xEnd; in forEachMtlsSetup()
572 mtls->fep.dim.y = sc->yEnd; in forEachMtlsSetup()
[all …]
DrsCpuIntrinsic.cpp96 MTLaunchStruct 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 = (void (*)())mRootPtr; in invokeForEach()
105 mtls.fep.usr = this; in invokeForEach()
108 mCtx->launchThreads(ains, inLen, aout, sc, &mtls); in invokeForEach()
115 void RsdCpuScriptIntrinsic::forEachKernelSetup(uint32_t slot, MTLaunchStruct *mtls) { in forEachKernelSetup() argument
117 mtls->script = this; in forEachKernelSetup()
118 mtls->fep.slot = slot; in forEachKernelSetup()
[all …]
DrsCpuScriptGroup.cpp206 MTLaunchStruct 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->launchThreads(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.cpp168 MTLaunchStruct mtls; in CpuScriptGroup2Impl() local
169 si->forEachKernelSetup(funcID->mSlot, &mtls); in CpuScriptGroup2Impl()
170 cc = new CPUClosure(closure, si, (ExpandFuncTy)mtls.kernel); in CpuScriptGroup2Impl()
566 MTLaunchStruct mtls; in run() local
574 nullptr, 0, nullptr, &mtls); in run()
576 mtls.script = nullptr; in run()
577 mtls.fep.usr = nullptr; in run()
578 mtls.kernel = (ForEachFunc_t)mFunc; in run()
584 nullptr, &mtls); in run()
601 MTLaunchStruct mtls; in run() local
[all …]
DrsCpuScript.h100 const RsScriptCall *sc, MTLaunchStruct *mtls);
102 virtual void forEachKernelSetup(uint32_t slot, MTLaunchStruct *mtls);
DrsCpuIntrinsic.h42 void forEachKernelSetup(uint32_t slot, MTLaunchStruct * mtls) override;
DrsCpuCore.h92 const RsScriptCall* sc, MTLaunchStruct* mtls);