Home
last modified time | relevance | path

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

/frameworks/rs/cpu_ref/
DrsCpuCore.cpp172 MTLaunchStruct *mtls = (MTLaunchStruct *)data; in launchThreads() local
173 if (mtls && mtls->fep.dimY <= 1 && mtls->xEnd <= mtls->xStart + mtls->mSliceSize) { in launchThreads()
355 MTLaunchStruct *mtls = (MTLaunchStruct *)usr; in wc_xy() local
357 memcpy(&p, &mtls->fep, sizeof(p)); in wc_xy()
359 uint32_t sig = mtls->sig; in wc_xy()
361 outer_foreach_t fn = (outer_foreach_t) mtls->kernel; in wc_xy()
363 uint32_t slice = (uint32_t)__sync_fetch_and_add(&mtls->mSliceNum, 1); in wc_xy()
364 uint32_t yStart = mtls->yStart + slice * mtls->mSliceSize; in wc_xy()
365 uint32_t yEnd = yStart + mtls->mSliceSize; in wc_xy()
366 yEnd = rsMin(yEnd, mtls->yEnd); in wc_xy()
[all …]
DrsCpuScript.cpp795 MTLaunchStruct *mtls) { in forEachMtlsSetup() argument
797 memset(mtls, 0, sizeof(MTLaunchStruct)); in forEachMtlsSetup()
812 mtls->fep.dimX = inType->getDimX(); in forEachMtlsSetup()
813 mtls->fep.dimY = inType->getDimY(); in forEachMtlsSetup()
814 mtls->fep.dimZ = inType->getDimZ(); in forEachMtlsSetup()
819 mtls->fep.dimX = outType->getDimX(); in forEachMtlsSetup()
820 mtls->fep.dimY = outType->getDimY(); in forEachMtlsSetup()
821 mtls->fep.dimZ = outType->getDimZ(); in forEachMtlsSetup()
838 mtls->xEnd = mtls->fep.dimX; in forEachMtlsSetup()
840 rsAssert(sc->xStart < mtls->fep.dimX); in forEachMtlsSetup()
[all …]
DrsCpuIntrinsic.cpp93 MTLaunchStruct mtls; in invokeForEach() local
96 forEachMtlsSetup(ain, aout, usr, usrLen, sc, &mtls); in invokeForEach()
97 mtls.script = this; in invokeForEach()
98 mtls.fep.slot = slot; in invokeForEach()
100 mtls.kernel = (void (*)())mRootPtr; in invokeForEach()
101 mtls.fep.usr = this; in invokeForEach()
104 mCtx->launchThreads(ain, aout, sc, &mtls); in invokeForEach()
118 MTLaunchStruct mtls; in invokeForEachMulti() local
125 forEachMtlsSetup(ains, inLen, aout, usr, usrLen, sc, &mtls); in invokeForEachMulti()
126 mtls.script = this; in invokeForEachMulti()
[all …]
DrsCpuScriptGroup.cpp191 MTLaunchStruct mtls; in execute() local
199 si->forEachMtlsSetup(ins[ct], outs[ct], NULL, 0, NULL, &mtls); in execute()
200 si->forEachKernelSetup(slot, &mtls); in execute()
201 si->preLaunch(slot, ins[ct], outs[ct], mtls.fep.usr, mtls.fep.usrLen, NULL); in execute()
202 mCtx->launchThreads(ins[ct], outs[ct], NULL, &mtls); in execute()
219 si->forEachKernelSetup(kernels[ct]->mSlot, &mtls); in execute()
220 fnPtrs.add((void *)mtls.kernel); in execute()
221 usrPtrs.add(mtls.fep.usr); in execute()
222 sigs.add(mtls.fep.usrLen); in execute()
223 … si->preLaunch(kernels[ct]->mSlot, ins[ct], outs[ct], mtls.fep.usr, mtls.fep.usrLen, NULL); in execute()
[all …]
DrsCpuScript.h105 const RsScriptCall *sc, MTLaunchStruct *mtls);
109 const RsScriptCall *sc, MTLaunchStruct *mtls);
111 virtual void forEachKernelSetup(uint32_t slot, MTLaunchStruct *mtls);
DrsCpuCore.h142 const RsScriptCall *sc, MTLaunchStruct *mtls);
145 const RsScriptCall* sc, MTLaunchStruct* mtls);
DrsCpuIntrinsic.h48 virtual void forEachKernelSetup(uint32_t slot, MTLaunchStruct *mtls);