Home
last modified time | relevance | path

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

/frameworks/rs/driver/
DrsdAllocation.cpp90 uint8_t *ptr = (uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in GetOffsetPtr()
91 ptr += face * alloc->mHal.drvState.faceOffset; in GetOffsetPtr()
92 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride; in GetOffsetPtr()
93 ptr += yoff * alloc->mHal.drvState.lod[lod].stride; in GetOffsetPtr()
175 if (!alloc->mHal.drvState.lod[0].mallocPtr) { in UploadToTexture()
189 if (alloc->mHal.drvState.lod[0].mallocPtr) { in UploadToTexture()
190 free(alloc->mHal.drvState.lod[0].mallocPtr); in UploadToTexture()
191 alloc->mHal.drvState.lod[0].mallocPtr = nullptr; in UploadToTexture()
217 alloc->mHal.drvState.lod[0].dimX, alloc->mHal.drvState.lod[0].dimY); in AllocateRenderTarget()
243 alloc->mHal.drvState.lod[0].mallocPtr, GL_DYNAMIC_DRAW); in UploadToBufferObject()
[all …]
DrsdMeshObj.cpp158 mAttribs[ct].ptr = (const uint8_t*)alloc->mHal.drvState.lod[0].mallocPtr; in renderPrimitiveRange()
179 idxAlloc->mHal.drvState.lod[0].mallocPtr); in renderPrimitiveRange()
DrsdRuntimeStubs.cpp508 uint8_t *p = (uint8_t *)a->mHal.drvState.lod[0].mallocPtr; in IS_CLEAR_SET_OBJ()
510 const uint32_t stride = a->mHal.drvState.lod[0].stride; in IS_CLEAR_SET_OBJ()
511 const uint32_t dimY = a->mHal.drvState.lod[0].dimY; in IS_CLEAR_SET_OBJ()
DrsdShader.cpp538 const uint8_t *data = static_cast<const uint8_t *>(alloc->mHal.drvState.lod[0].mallocPtr); in setupUserConstants()
/frameworks/rs/
DrsGrallocConsumer.cpp36 uint32_t width = a->mHal.drvState.lod[0].dimX; in GrallocConsumer()
37 uint32_t height = a->mHal.drvState.lod[0].dimY; in GrallocConsumer()
161 mAlloc[idx]->mHal.drvState.lod[0].mallocPtr = data; in lockNextBuffer()
162 mAlloc[idx]->mHal.drvState.lod[0].stride = rowstride; in lockNextBuffer()
167 const int yWidth = mAlloc[idx]->mHal.drvState.lod[0].dimX; in lockNextBuffer()
168 const int yHeight = mAlloc[idx]->mHal.drvState.lod[0].dimY; in lockNextBuffer()
215 mAlloc[idx]->mHal.drvState.lod[1].dimX = cWidth; in lockNextBuffer()
216 mAlloc[idx]->mHal.drvState.lod[1].dimY = cHeight; in lockNextBuffer()
217 mAlloc[idx]->mHal.drvState.lod[2].dimX = cWidth; in lockNextBuffer()
218 mAlloc[idx]->mHal.drvState.lod[2].dimY = cHeight; in lockNextBuffer()
[all …]
DrsAllocation.h104 mutable DrvState drvState; member
199 uint8_t * p = (uint8_t *) mHal.drvState.lod[lod].mallocPtr;
201 p += y * mHal.drvState.lod[lod].stride;
202 p += z * mHal.drvState.lod[lod].stride * mHal.drvState.lod[lod].dimY;
DrsAllocation.cpp175 if ((lod >= mHal.drvState.lodCount) || in getPointer()
176 (z && (z >= mHal.drvState.lod[lod].dimZ)) || in getPointer()
188 if ((stride != nullptr) && mHal.drvState.lod[0].dimY) { in getPointer()
189 *stride = mHal.drvState.lod[lod].stride; in getPointer()
191 return mHal.drvState.lod[lod].mallocPtr; in getPointer()
275 if (x >= mHal.drvState.lod[0].dimX) { in elementData()
280 if (y > 0 && y >= mHal.drvState.lod[0].dimY) { in elementData()
285 if (z > 0 && z >= mHal.drvState.lod[0].dimZ) { in elementData()
308 if (x >= mHal.drvState.lod[0].dimX) { in elementRead()
313 if (y > 0 && y >= mHal.drvState.lod[0].dimY) { in elementRead()
[all …]
DrsScriptC_Lib.cpp252 if (lod >= alloc->mHal.drvState.lodCount) { in validateCopyArgs()
255 ss << lod << " >= " << alloc->mHal.drvState.lodCount; in validateCopyArgs()
260 const uint32_t allocDimX = alloc->mHal.drvState.lod[lod].dimX; in validateCopyArgs()
272 const uint32_t allocDimY = alloc->mHal.drvState.lod[lod].dimY; in validateCopyArgs()
/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()
68 uint8_t *p = (uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr; in rsOffset()
69 const uint32_t stride = (uint32_t)alloc->mHal.drvState.lod[0].stride; in rsOffset()
70 const uint32_t dimY = alloc->mHal.drvState.lod[0].dimY; in rsOffset()
79 uint8_t *p = (uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr; in rsOffsetNs()
80 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; in rsOffsetNs()
81 const uint32_t dimY = alloc->mHal.drvState.lod[0].dimY; in rsOffsetNs()
194 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr; in rsGetElementAt()
[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 int32_t sourceW = alloc->mHal.drvState.lod[lod].dimX; in sample_LOD_LinearPixel()
456 int32_t sourceW = alloc->mHal.drvState.lod[lod].dimX; in sample_LOD_NearestPixel()
470 int sourceW = alloc->mHal.drvState.lod[lod].dimX; in sample_LOD_LinearPixel()
471 int sourceH = alloc->mHal.drvState.lod[lod].dimY; in sample_LOD_LinearPixel()
[all …]
Drs_structs.h81 } drvState; member
/frameworks/rs/support/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/cpu_ref/
DrsCpuIntrinsicYuvToRGB.cpp106 const uchar *pinY = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernel()
112 size_t strideY = cp->alloc->mHal.drvState.lod[0].stride; in kernel()
115 if (cp->alloc->mHal.drvState.lod[0].dimY == 0) { in kernel()
124 size_t cstep = cp->alloc->mHal.drvState.yuv.step; in kernel()
126 const uchar *pinU = (const uchar *)cp->alloc->mHal.drvState.lod[1].mallocPtr; in kernel()
127 const size_t strideU = cp->alloc->mHal.drvState.lod[1].stride; in kernel()
130 const uchar *pinV = (const uchar *)cp->alloc->mHal.drvState.lod[2].mallocPtr; in kernel()
131 const size_t strideV = cp->alloc->mHal.drvState.lod[2].stride; in kernel()
142 v = ((uint8_t *)cp->alloc->mHal.drvState.lod[0].mallocPtr) + in kernel()
DrsCpuIntrinsicResize.cpp330 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4()
331 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY; in kernelU4()
332 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX; in kernelU4()
333 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4()
408 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU2()
409 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY; in kernelU2()
410 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX; in kernelU2()
411 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU2()
486 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU1()
487 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY; in kernelU1()
[all …]
DrsCpuScriptGroup.cpp69 mkinfo->inPtr[0] = (const uint8_t *)sl->ins[ct]->mHal.drvState.lod[0].mallocPtr; in scriptGroupRoot()
76 sl->ins[ct]->mHal.drvState.lod[0].stride * kinfo->current.y); in scriptGroupRoot()
78 } else if (sl->ins[ct]->mHal.drvState.lod[0].dimY > kinfo->lid) { in scriptGroupRoot()
81 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.cpp64 const uchar *bp = (const uchar *)cp->mLUT->mHal.drvState.lod[0].mallocPtr; in kernel()
67 static_cast<int>(cp->mLUT->mHal.drvState.lod[0].dimX - 1), in kernel()
68 static_cast<int>(cp->mLUT->mHal.drvState.lod[0].dimY - 1), in kernel()
69 static_cast<int>(cp->mLUT->mHal.drvState.lod[0].dimZ - 1), in kernel()
74 const size_t stride_y = cp->mLUT->mHal.drvState.lod[0].stride; in kernel()
75 const size_t stride_z = stride_y * cp->mLUT->mHal.drvState.lod[0].dimY; in kernel()
DrsCpuIntrinsicConvolve3x3.cpp188 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4()
189 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4()
235 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU2()
236 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU2()
280 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU1()
281 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU1()
325 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelF4()
326 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelF4()
370 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelF2()
371 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelF2()
[all …]
DrsCpuIntrinsicConvolve5x5.cpp351 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernelU4()
352 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; in kernelU4()
411 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernelU2()
412 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; in kernelU2()
460 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernelU1()
461 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; in kernelU1()
509 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernelF4()
510 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; in kernelF4()
558 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernelF2()
559 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; in kernelF2()
[all …]
DrsCpuScript.cpp55 return alloc && alloc->mHal.drvState.lod[0].mallocPtr == nullptr; in allocationLODIsNull()
610 mtls->redp.outPtr[0] = (uint8_t *)aout->mHal.drvState.lod[0].mallocPtr; in reduceMtlsSetup()
617 mtls->redp.inPtr[index] = (const uint8_t*)ains[index]->mHal.drvState.lod[0].mallocPtr; in reduceMtlsSetup()
731 mtls->fep.inPtr[index] = (const uint8_t*)ains[index]->mHal.drvState.lod[0].mallocPtr; in forEachMtlsSetup()
737 mtls->fep.outPtr[0] = (uint8_t *)aout->mHal.drvState.lod[0].mallocPtr; in forEachMtlsSetup()
930 ptr = data->mHal.drvState.lod[0].mallocPtr; in setGlobalBind()
969 if (a->mHal.drvState.lod[0].mallocPtr == ptr) { in getAllocationForPointer()
DrsCpuIntrinsicBlur.cpp300 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4()
301 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4()
371 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU1()
372 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.cpp60 const uchar *tr = (const uchar *)cp->lut->mHal.drvState.lod[0].mallocPtr; in kernel()
DrsCpuIntrinsicBLAS.cpp73 *A = ain[0]->mHal.drvState.lod[0].mallocPtr; in initABC()
74 *lda = (int)(ain[0]->mHal.drvState.lod[0].stride/size); in initABC()
77 *B = ain[1]->mHal.drvState.lod[0].mallocPtr; in initABC()
78 *ldb = (int)(ain[1]->mHal.drvState.lod[0].stride/size); in initABC()
81 *C = ain[2]->mHal.drvState.lod[0].mallocPtr; in initABC()
82 *ldc = (int)(ain[2]->mHal.drvState.lod[0].stride/size); in initABC()
DrsCpuCore.cpp856 if ((mtls->aout[0] != nullptr) && mtls->aout[0]->mHal.drvState.lod[0].stride) { in launchForEach()
857 s2 = targetByteChunk / mtls->aout[0]->mHal.drvState.lod[0].stride; in launchForEach()
859 s2 = targetByteChunk / mtls->ains[0]->mHal.drvState.lod[0].stride; in launchForEach()
DrsCpuIntrinsicHistogram.cpp149 unsigned int *o = (unsigned int *)mAllocOut->mHal.drvState.lod[0].mallocPtr; in postLaunch()