Home
last modified time | relevance | path

Searched refs:redp (Results 1 – 3 of 3) sorted by relevance

/frameworks/rs/cpu_ref/
DrsCpuCore.cpp355 static inline void RedpPtrSetup(const MTLaunchStructReduce *mtls, RsExpandKernelDriverInfo *redp, in RedpPtrSetup() argument
357 for (uint32_t i = 0; i < redp->inLen; i++) { in RedpPtrSetup()
358 redp->inPtr[i] = (const uint8_t *)mtls->ains[i]->getPointerUnchecked(x, y, z); in RedpPtrSetup()
518 accumPtr = mtls->redp.outPtr[0]; in reduce_get_accumulator()
535 RsExpandKernelDriverInfo redp = mtls->redp; in walk_1d_reduce() local
556 RedpPtrSetup(mtls, &redp, xStart, 0, 0); in walk_1d_reduce()
557 fn(&redp, xStart, xEnd, accumPtr); in walk_1d_reduce()
574 RsExpandKernelDriverInfo redp = mtls->redp; in walk_2d_reduce() local
595 for (redp.current.y = yStart; redp.current.y < yEnd; redp.current.y++) { in walk_2d_reduce()
596 RedpPtrSetup(mtls, &redp, mtls->start.x, redp.current.y, 0); in walk_2d_reduce()
[all …]
DrsCpuScript.cpp562 mtls->dimPtr = &mtls->redp.dim; in reduceMtlsSetup()
581 mtls->redp.dim.x = inType->getDimX(); in reduceMtlsSetup()
582 mtls->redp.dim.y = inType->getDimY(); in reduceMtlsSetup()
583 mtls->redp.dim.z = inType->getDimZ(); in reduceMtlsSetup()
594 if (!setUpMtlsDimensions(mtls, mtls->redp.dim, sc)) { in reduceMtlsSetup()
609 mtls->redp.outLen = 1; in reduceMtlsSetup()
610 mtls->redp.outPtr[0] = (uint8_t *)aout->mHal.drvState.lod[0].mallocPtr; in reduceMtlsSetup()
611 mtls->redp.outStride[0] = aout->getType()->getElementSizeBytes(); in reduceMtlsSetup()
615 mtls->redp.inLen = inLen; in reduceMtlsSetup()
617 mtls->redp.inPtr[index] = (const uint8_t*)ains[index]->mHal.drvState.lod[0].mallocPtr; in reduceMtlsSetup()
[all …]
DrsCpuCore.h94 RsExpandKernelDriverInfo redp; member