/frameworks/rs/driver/ |
D | rsdAllocation.cpp | 94 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 …]
|
D | rsdMeshObj.cpp | 154 mAttribs[ct].ptr = (const uint8_t*)alloc->mHal.drvState.lod[0].mallocPtr; in renderPrimitiveRange() 175 idxAlloc->mHal.drvState.lod[0].mallocPtr); in renderPrimitiveRange()
|
D | rsdRuntimeStubs.cpp | 279 uint8_t *p = (uint8_t *)a->mHal.drvState.lod[0].mallocPtr; in IS_CLEAR_SET_OBJ() 281 const uint32_t stride = a->mHal.drvState.lod[0].stride; in IS_CLEAR_SET_OBJ() 282 const uint32_t dimY = a->mHal.drvState.lod[0].dimY; in IS_CLEAR_SET_OBJ()
|
D | rsdShader.cpp | 534 const uint8_t *data = static_cast<const uint8_t *>(alloc->mHal.drvState.lod[0].mallocPtr); in setupUserConstants()
|
/frameworks/rs/ |
D | rsGrallocConsumer.cpp | 46 uint32_t y = a->mHal.drvState.lod[0].dimY; in GrallocConsumer() 48 mConsumer->setDefaultBufferSize(a->mHal.drvState.lod[0].dimX, y); in GrallocConsumer() 132 mAlloc->mHal.drvState.lod[0].mallocPtr = reinterpret_cast<uint8_t*>(bufferPointer); in lockNextBuffer() 133 mAlloc->mHal.drvState.lod[0].stride = mSlots[buf].mGraphicBuffer->getStride() * in lockNextBuffer() 138 assert(mAlloc->mHal.drvState.lod[0].dimX == in lockNextBuffer() 140 assert(mAlloc->mHal.drvState.lod[0].dimY == in lockNextBuffer() 151 mAlloc->mHal.drvState.lod[1].mallocPtr = ycbcr.cb; in lockNextBuffer() 152 mAlloc->mHal.drvState.lod[2].mallocPtr = ycbcr.cr; in lockNextBuffer() 154 mAlloc->mHal.drvState.lod[0].stride = ycbcr.ystride; in lockNextBuffer() 155 mAlloc->mHal.drvState.lod[1].stride = ycbcr.cstride; in lockNextBuffer() [all …]
|
D | rsAllocation.h | 104 mutable DrvState drvState; member 193 uint8_t * p = (uint8_t *) mHal.drvState.lod[lod].mallocPtr; 195 p += y * mHal.drvState.lod[lod].stride; 196 p += z * mHal.drvState.lod[lod].stride * mHal.drvState.lod[lod].dimY;
|
D | rsAllocation.cpp | 163 if ((lod >= mHal.drvState.lodCount) || in getPointer() 164 (z && (z >= mHal.drvState.lod[lod].dimZ)) || in getPointer() 176 if ((stride != nullptr) && mHal.drvState.lod[0].dimY) { in getPointer() 177 *stride = mHal.drvState.lod[lod].stride; in getPointer() 179 return mHal.drvState.lod[lod].mallocPtr; in getPointer() 262 if (x >= mHal.drvState.lod[0].dimX) { in elementData() 267 if (y > 0 && y >= mHal.drvState.lod[0].dimY) { in elementData() 272 if (z > 0 && z >= mHal.drvState.lod[0].dimZ) { in elementData() 297 if (x >= mHal.drvState.lod[0].dimX) { in elementRead() 302 if (y > 0 && y >= mHal.drvState.lod[0].dimY) { in elementRead() [all …]
|
/frameworks/rs/driver/runtime/ |
D | rs_allocation.c | 8 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() 110 uint8_t *p = (uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr; in rsOffset() 112 const uint32_t stride = (uint32_t)alloc->mHal.drvState.lod[0].stride; in rsOffset() 113 const uint32_t dimY = alloc->mHal.drvState.lod[0].dimY; in rsOffset() 125 uint8_t *p = (uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr; in rsOffsetNs() 127 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; in rsOffsetNs() 128 const uint32_t dimY = alloc->mHal.drvState.lod[0].dimY; in rsOffsetNs() 192 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr; in rsGetElementAt() [all …]
|
D | rs_sample.c | 272 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 …]
|
D | rs_structs.h | 81 } drvState; member
|
/frameworks/support/v8/renderscript/jni/ |
D | android_rscompat_usage_io_driver.cpp | 28 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/ |
D | rsCpuIntrinsicYuvToRGB.cpp | 112 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()
|
D | rsCpuIntrinsicResize.cpp | 322 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 …]
|
D | rsCpuScriptGroup.cpp | 67 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()
|
D | rsCpuIntrinsic3DLUT.cpp | 71 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()
|
D | rsCpuIntrinsicConvolve3x3.cpp | 195 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 …]
|
D | rsCpuIntrinsicConvolve5x5.cpp | 357 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 …]
|
D | rsCpuScript.cpp | 529 (const uint8_t *)ain->mHal.drvState.lod[0].mallocPtr == nullptr) { in forEachMtlsSetup() 538 (const uint8_t *)aout->mHal.drvState.lod[0].mallocPtr == nullptr) { in forEachMtlsSetup() 693 mtls->fep.inPtr[index] = (const uint8_t*)ains[index]->mHal.drvState.lod[0].mallocPtr; in forEachMtlsSetup() 699 mtls->fep.outPtr[0] = (uint8_t *)aout->mHal.drvState.lod[0].mallocPtr; in forEachMtlsSetup() 861 ptr = data->mHal.drvState.lod[0].mallocPtr; in setGlobalBind() 905 if (a->mHal.drvState.lod[0].mallocPtr == ptr) { in getAllocationForPointer()
|
D | rsCpuScriptGroup2.cpp | 57 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()
|
D | rsCpuIntrinsicBlur.cpp | 292 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()
|
D | rsCpuIntrinsicLUT.cpp | 66 const uchar *tr = (const uchar *)cp->lut->mHal.drvState.lod[0].mallocPtr; in kernel()
|
D | rsCpuIntrinsicBLAS.cpp | 79 *A = ain[0]->mHal.drvState.lod[0].mallocPtr; in initABC() 80 *lda = (int)(ain[0]->mHal.drvState.lod[0].stride/size); in initABC() 83 *B = ain[1]->mHal.drvState.lod[0].mallocPtr; in initABC() 84 *ldb = (int)(ain[1]->mHal.drvState.lod[0].stride/size); in initABC() 87 *C = ain[2]->mHal.drvState.lod[0].mallocPtr; in initABC() 88 *ldc = (int)(ain[2]->mHal.drvState.lod[0].stride/size); in initABC()
|
D | rsCpuCore.cpp | 484 if ((mtls->aout[0] != nullptr) && mtls->aout[0]->mHal.drvState.lod[0].stride) { in launchThreads() 485 s2 = targetByteChunk / mtls->aout[0]->mHal.drvState.lod[0].stride; in launchThreads() 487 s2 = targetByteChunk / mtls->ains[0]->mHal.drvState.lod[0].stride; in launchThreads()
|
D | rsCpuIntrinsicHistogram.cpp | 155 unsigned int *o = (unsigned int *)mAllocOut->mHal.drvState.lod[0].mallocPtr; in postLaunch()
|