Home
last modified time | relevance | path

Searched refs:drvState (Results 1 – 24 of 24) sorted by relevance

/frameworks/rs/
DrsGrallocConsumer.cpp51 uint32_t y = a->mHal.drvState.lod[0].dimY; in GrallocConsumer()
53 mConsumer->setDefaultBufferSize(a->mHal.drvState.lod[0].dimX, y); in GrallocConsumer()
147 mAlloc[idx]->mHal.drvState.lod[0].mallocPtr = reinterpret_cast<uint8_t*>(bufferPointer); in lockNextBuffer()
148 mAlloc[idx]->mHal.drvState.lod[0].stride = mSlots[slot].mGraphicBuffer->getStride() * in lockNextBuffer()
153 rsAssert(mAlloc[idx]->mHal.drvState.lod[0].dimX == in lockNextBuffer()
155 rsAssert(mAlloc[idx]->mHal.drvState.lod[0].dimY == in lockNextBuffer()
173 const int yWidth = mAlloc[idx]->mHal.drvState.lod[0].dimX; in lockNextBuffer()
174 const int yHeight = mAlloc[idx]->mHal.drvState.lod[0].dimY; in lockNextBuffer()
181 mAlloc[idx]->mHal.drvState.lod[1].dimX = cWidth; in lockNextBuffer()
182 mAlloc[idx]->mHal.drvState.lod[1].dimY = cHeight; in lockNextBuffer()
[all …]
DrsAllocation.h108 mutable DrvState drvState; member
203 uint8_t * p = (uint8_t *) mHal.drvState.lod[lod].mallocPtr;
205 p += y * mHal.drvState.lod[lod].stride;
206 p += z * mHal.drvState.lod[lod].stride * mHal.drvState.lod[lod].dimY;
DrsAllocation.cpp173 if ((lod >= mHal.drvState.lodCount) || in getPointer()
174 (z && (z >= mHal.drvState.lod[lod].dimZ)) || in getPointer()
186 if ((stride != nullptr) && mHal.drvState.lod[0].dimY) { in getPointer()
187 *stride = mHal.drvState.lod[lod].stride; in getPointer()
189 return mHal.drvState.lod[lod].mallocPtr; in getPointer()
272 if (x >= mHal.drvState.lod[0].dimX) { in elementData()
277 if (y > 0 && y >= mHal.drvState.lod[0].dimY) { in elementData()
282 if (z > 0 && z >= mHal.drvState.lod[0].dimZ) { in elementData()
307 if (x >= mHal.drvState.lod[0].dimX) { in elementRead()
312 if (y > 0 && y >= mHal.drvState.lod[0].dimY) { in elementRead()
[all …]
/frameworks/rs/driver/
DrsdAllocation.cpp94 uint8_t *ptr = (uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in GetOffsetPtr()
95 ptr += face * alloc->mHal.drvState.faceOffset; in GetOffsetPtr()
96 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride; in GetOffsetPtr()
97 ptr += yoff * alloc->mHal.drvState.lod[lod].stride; in GetOffsetPtr()
179 if (!alloc->mHal.drvState.lod[0].mallocPtr) { in UploadToTexture()
193 if (alloc->mHal.drvState.lod[0].mallocPtr) { in UploadToTexture()
194 free(alloc->mHal.drvState.lod[0].mallocPtr); in UploadToTexture()
195 alloc->mHal.drvState.lod[0].mallocPtr = nullptr; in UploadToTexture()
221 alloc->mHal.drvState.lod[0].dimX, alloc->mHal.drvState.lod[0].dimY); in AllocateRenderTarget()
247 alloc->mHal.drvState.lod[0].mallocPtr, GL_DYNAMIC_DRAW); in UploadToBufferObject()
[all …]
DrsdMeshObj.cpp154 mAttribs[ct].ptr = (const uint8_t*)alloc->mHal.drvState.lod[0].mallocPtr; in renderPrimitiveRange()
175 idxAlloc->mHal.drvState.lod[0].mallocPtr); in renderPrimitiveRange()
DrsdRuntimeStubs.cpp491 uint8_t *p = (uint8_t *)a->mHal.drvState.lod[0].mallocPtr; in IS_CLEAR_SET_OBJ()
493 const uint32_t stride = a->mHal.drvState.lod[0].stride; in IS_CLEAR_SET_OBJ()
494 const uint32_t dimY = a->mHal.drvState.lod[0].dimY; in IS_CLEAR_SET_OBJ()
DrsdShader.cpp534 const uint8_t *data = static_cast<const uint8_t *>(alloc->mHal.drvState.lod[0].mallocPtr); in setupUserConstants()
/frameworks/support/v8/renderscript/jni/
Dandroid_rscompat_usage_io_driver.cpp28 alloc->mHal.drvState.lod[0].mallocPtr = dst; in IoGetBuffer()
29 … alloc->mHal.drvState.lod[0].stride = drv->wndBuffer->stride * alloc->mHal.state.elementSizeBytes; in IoGetBuffer()
49 r = ANativeWindow_setBuffersGeometry(nw, alloc->mHal.drvState.lod[0].dimX, in rscAllocationSetSurface()
50 alloc->mHal.drvState.lod[0].dimY, in rscAllocationSetSurface()
73 if (alloc->mHal.drvState.lod[0].mallocPtr) { in rscAllocationDestroy()
78 free(alloc->mHal.drvState.lod[0].mallocPtr); in rscAllocationDestroy()
80 alloc->mHal.drvState.lod[0].mallocPtr = NULL; in rscAllocationDestroy()
/frameworks/rs/driver/runtime/
Drs_allocation.c8 return alloc->mHal.drvState.lod[0].dimX; in rsAllocationGetDimX()
14 return alloc->mHal.drvState.lod[0].dimY; in rsAllocationGetDimY()
20 return alloc->mHal.drvState.lod[0].dimZ; in rsAllocationGetDimZ()
113 uint8_t *p = (uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr; in rsOffset()
115 const uint32_t stride = (uint32_t)alloc->mHal.drvState.lod[0].stride; in rsOffset()
116 const uint32_t dimY = alloc->mHal.drvState.lod[0].dimY; in rsOffset()
128 uint8_t *p = (uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr; in rsOffsetNs()
130 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; in rsOffsetNs()
131 const uint32_t dimY = alloc->mHal.drvState.lod[0].dimY; in rsOffsetNs()
256 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr;
[all …]
Drs_sample.c272 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in getBilinearSample1D()
322 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in getBilinearSample2D()
323 size_t stride = alloc->mHal.drvState.lod[lod].stride; in getBilinearSample2D()
351 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in getNearestSample()
388 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in getNearestSample()
389 size_t stride = alloc->mHal.drvState.lod[lod].stride; in getNearestSample()
426 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in sample_LOD_LinearPixel()
428 int32_t sourceW = alloc->mHal.drvState.lod[lod].dimX; in sample_LOD_LinearPixel()
458 int32_t sourceW = alloc->mHal.drvState.lod[lod].dimX; in sample_LOD_NearestPixel()
472 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in sample_LOD_LinearPixel()
[all …]
Drs_structs.h81 } drvState; member
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicYuvToRGB.cpp112 const uchar *pinY = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernel()
118 size_t strideY = cp->alloc->mHal.drvState.lod[0].stride; in kernel()
121 if (cp->alloc->mHal.drvState.lod[0].dimY == 0) { in kernel()
130 size_t cstep = cp->alloc->mHal.drvState.yuv.step; in kernel()
132 const uchar *pinU = (const uchar *)cp->alloc->mHal.drvState.lod[1].mallocPtr; in kernel()
133 const size_t strideU = cp->alloc->mHal.drvState.lod[1].stride; in kernel()
136 const uchar *pinV = (const uchar *)cp->alloc->mHal.drvState.lod[2].mallocPtr; in kernel()
137 const size_t strideV = cp->alloc->mHal.drvState.lod[2].stride; in kernel()
148 v = ((uint8_t *)cp->alloc->mHal.drvState.lod[0].mallocPtr) + in kernel()
DrsCpuIntrinsicResize.cpp322 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4()
323 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY; in kernelU4()
324 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX; in kernelU4()
325 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4()
389 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU2()
390 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY; in kernelU2()
391 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX; in kernelU2()
392 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU2()
456 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU1()
457 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY; in kernelU1()
[all …]
DrsCpuScriptGroup.cpp67 mkinfo->inPtr[0] = (const uint8_t *)sl->ins[ct]->mHal.drvState.lod[0].mallocPtr; in scriptGroupRoot()
74 sl->ins[ct]->mHal.drvState.lod[0].stride * kinfo->current.y); in scriptGroupRoot()
76 } else if (sl->ins[ct]->mHal.drvState.lod[0].dimY > kinfo->lid) { in scriptGroupRoot()
79 sl->ins[ct]->mHal.drvState.lod[0].stride * kinfo->lid); in scriptGroupRoot()
94 (uint8_t *)sl->outs[ct]->mHal.drvState.lod[0].mallocPtr; in scriptGroupRoot()
101 sl->outs[ct]->mHal.drvState.lod[0].stride * kinfo->current.y; in scriptGroupRoot()
103 } else if (sl->outs[ct]->mHal.drvState.lod[0].dimY > kinfo->lid) { in scriptGroupRoot()
106 sl->outs[ct]->mHal.drvState.lod[0].stride * kinfo->lid; in scriptGroupRoot()
DrsCpuIntrinsic3DLUT.cpp71 const uchar *bp = (const uchar *)cp->mLUT->mHal.drvState.lod[0].mallocPtr; in kernel()
74 static_cast<int>(cp->mLUT->mHal.drvState.lod[0].dimX - 1), in kernel()
75 static_cast<int>(cp->mLUT->mHal.drvState.lod[0].dimY - 1), in kernel()
76 static_cast<int>(cp->mLUT->mHal.drvState.lod[0].dimZ - 1), in kernel()
81 const size_t stride_y = cp->mLUT->mHal.drvState.lod[0].stride; in kernel()
82 const size_t stride_z = stride_y * cp->mLUT->mHal.drvState.lod[0].dimY; in kernel()
DrsCpuIntrinsicConvolve3x3.cpp195 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4()
196 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4()
242 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU2()
243 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU2()
287 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU1()
288 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU1()
332 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelF4()
333 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelF4()
377 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelF2()
378 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelF2()
[all …]
DrsCpuIntrinsicConvolve5x5.cpp357 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernelU4()
358 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; in kernelU4()
417 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernelU2()
418 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; in kernelU2()
466 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernelU1()
467 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; in kernelU1()
515 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernelF4()
516 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; in kernelF4()
564 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernelF2()
565 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; in kernelF2()
[all …]
DrsCpuScript.cpp56 return alloc && alloc->mHal.drvState.lod[0].mallocPtr == nullptr; in allocationLODIsNull()
613 mtls->redp.outPtr[0] = (uint8_t *)aout->mHal.drvState.lod[0].mallocPtr; in reduceMtlsSetup()
620 mtls->redp.inPtr[index] = (const uint8_t*)ains[index]->mHal.drvState.lod[0].mallocPtr; in reduceMtlsSetup()
722 mtls->fep.inPtr[index] = (const uint8_t*)ains[index]->mHal.drvState.lod[0].mallocPtr; in forEachMtlsSetup()
728 mtls->fep.outPtr[0] = (uint8_t *)aout->mHal.drvState.lod[0].mallocPtr; in forEachMtlsSetup()
921 ptr = data->mHal.drvState.lod[0].mallocPtr; in setGlobalBind()
960 if (a->mHal.drvState.lod[0].mallocPtr == ptr) { in getAllocationForPointer()
DrsCpuIntrinsicBlur.cpp292 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4()
293 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4()
363 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU1()
364 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU1()
DrsCpuScriptGroup2.cpp57 const uint8_t* ptr = (uint8_t*)(a->mHal.drvState.lod[0].mallocPtr) + in groupRoot()
60 ptr += a->mHal.drvState.lod[0].stride * kinfo->current.y; in groupRoot()
69 const uint8_t* ptr = (uint8_t *)(out->mHal.drvState.lod[0].mallocPtr) + in groupRoot()
72 ptr += out->mHal.drvState.lod[0].stride * kinfo->current.y; in groupRoot()
DrsCpuIntrinsicLUT.cpp66 const uchar *tr = (const uchar *)cp->lut->mHal.drvState.lod[0].mallocPtr; in kernel()
DrsCpuIntrinsicBLAS.cpp80 *A = ain[0]->mHal.drvState.lod[0].mallocPtr; in initABC()
81 *lda = (int)(ain[0]->mHal.drvState.lod[0].stride/size); in initABC()
84 *B = ain[1]->mHal.drvState.lod[0].mallocPtr; in initABC()
85 *ldb = (int)(ain[1]->mHal.drvState.lod[0].stride/size); in initABC()
88 *C = ain[2]->mHal.drvState.lod[0].mallocPtr; in initABC()
89 *ldc = (int)(ain[2]->mHal.drvState.lod[0].stride/size); in initABC()
DrsCpuCore.cpp858 if ((mtls->aout[0] != nullptr) && mtls->aout[0]->mHal.drvState.lod[0].stride) { in launchForEach()
859 s2 = targetByteChunk / mtls->aout[0]->mHal.drvState.lod[0].stride; in launchForEach()
861 s2 = targetByteChunk / mtls->ains[0]->mHal.drvState.lod[0].stride; in launchForEach()
DrsCpuIntrinsicHistogram.cpp155 unsigned int *o = (unsigned int *)mAllocOut->mHal.drvState.lod[0].mallocPtr; in postLaunch()