Lines Matching refs:drvState

90     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()
301 alloc->mHal.drvState.lod[0].dimX = type->getDimX(); in AllocationBuildPointerTable()
302 alloc->mHal.drvState.lod[0].dimY = type->getDimY(); in AllocationBuildPointerTable()
303 alloc->mHal.drvState.lod[0].dimZ = type->getDimZ(); in AllocationBuildPointerTable()
304 alloc->mHal.drvState.lod[0].mallocPtr = 0; in AllocationBuildPointerTable()
306 size_t stride = alloc->mHal.drvState.lod[0].dimX * type->getElementSizeBytes(); in AllocationBuildPointerTable()
307 alloc->mHal.drvState.lod[0].stride = rsRound(stride, requiredAlignment); in AllocationBuildPointerTable()
308 alloc->mHal.drvState.lodCount = type->getLODCount(); in AllocationBuildPointerTable()
309 alloc->mHal.drvState.faceCount = type->getDimFaces(); in AllocationBuildPointerTable()
314 size_t o = alloc->mHal.drvState.lod[0].stride * rsMax(alloc->mHal.drvState.lod[0].dimY, 1u) * in AllocationBuildPointerTable()
315 rsMax(alloc->mHal.drvState.lod[0].dimZ, 1u); in AllocationBuildPointerTable()
317 o += DeriveYUVLayout(alloc->mHal.state.yuv, &alloc->mHal.drvState); in AllocationBuildPointerTable()
319 for (uint32_t ct = 1; ct < alloc->mHal.drvState.lodCount; ct++) { in AllocationBuildPointerTable()
320 offsets[ct] = (size_t)alloc->mHal.drvState.lod[ct].mallocPtr; in AllocationBuildPointerTable()
322 } else if(alloc->mHal.drvState.lodCount > 1) { in AllocationBuildPointerTable()
323 uint32_t tx = alloc->mHal.drvState.lod[0].dimX; in AllocationBuildPointerTable()
324 uint32_t ty = alloc->mHal.drvState.lod[0].dimY; in AllocationBuildPointerTable()
325 uint32_t tz = alloc->mHal.drvState.lod[0].dimZ; in AllocationBuildPointerTable()
326 for (uint32_t lod=1; lod < alloc->mHal.drvState.lodCount; lod++) { in AllocationBuildPointerTable()
327 alloc->mHal.drvState.lod[lod].dimX = tx; in AllocationBuildPointerTable()
328 alloc->mHal.drvState.lod[lod].dimY = ty; in AllocationBuildPointerTable()
329 alloc->mHal.drvState.lod[lod].dimZ = tz; in AllocationBuildPointerTable()
330 alloc->mHal.drvState.lod[lod].stride = in AllocationBuildPointerTable()
333 o += alloc->mHal.drvState.lod[lod].stride * rsMax(ty, 1u) * rsMax(tz, 1u); in AllocationBuildPointerTable()
340 alloc->mHal.drvState.faceOffset = o; in AllocationBuildPointerTable()
342 alloc->mHal.drvState.lod[0].mallocPtr = ptr; in AllocationBuildPointerTable()
343 for (uint32_t lod=1; lod < alloc->mHal.drvState.lodCount; lod++) { in AllocationBuildPointerTable()
344 alloc->mHal.drvState.lod[lod].mallocPtr = ptr + offsets[lod]; in AllocationBuildPointerTable()
347 size_t allocSize = alloc->mHal.drvState.faceOffset; in AllocationBuildPointerTable()
348 if(alloc->mHal.drvState.faceCount) { in AllocationBuildPointerTable()
513 uint32_t lodCount = rsMax(alloc->mHal.drvState.lodCount, (uint32_t)1); in rsdAllocationAdapterOffset()
515 alloc->mHal.drvState.lod[lod] = base->mHal.drvState.lod[lod + lodBias]; in rsdAllocationAdapterOffset()
516 alloc->mHal.drvState.lod[lod].mallocPtr = GetOffsetPtr(alloc, in rsdAllocationAdapterOffset()
556 if (alloc->mHal.drvState.lod[0].mallocPtr) { in rsdAllocationDestroy()
561 free(alloc->mHal.drvState.lod[0].mallocPtr); in rsdAllocationDestroy()
563 alloc->mHal.drvState.lod[0].mallocPtr = nullptr; in rsdAllocationDestroy()
596 const uint32_t oldDimX = alloc->mHal.drvState.lod[0].dimX; in rsdAllocationResize()
604 void * oldPtr = alloc->mHal.drvState.lod[0].mallocPtr; in rsdAllocationResize()
617 memset(((uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr) + stride * oldDimX, in rsdAllocationResize()
646 RSD_CALL_GL(glReadPixels, 0, 0, alloc->mHal.drvState.lod[0].dimX, in rsdAllocationSyncFromFBO()
647 alloc->mHal.drvState.lod[0].dimY, in rsdAllocationSyncFromFBO()
648 drv->glFormat, drv->glType, alloc->mHal.drvState.lod[0].mallocPtr); in rsdAllocationSyncFromFBO()
726 alloc->mHal.drvState.lod[0].mallocPtr = dst; in IoGetBuffer()
727 … alloc->mHal.drvState.lod[0].stride = drv->wndBuffer->stride * alloc->mHal.state.elementSizeBytes; in IoGetBuffer()
728 rsAssert((alloc->mHal.drvState.lod[0].stride & 0xf) == 0); in IoGetBuffer()
760 int32_t r = ANativeWindow_setBuffersGeometry(nw, alloc->mHal.drvState.lod[0].dimX, in rsdAllocationSetSurface()
761 alloc->mHal.drvState.lod[0].dimY, in rsdAllocationSetSurface()
823 DeriveYUVLayout(alloc->mHal.state.yuv, &alloc->mHal.drvState); in rsdAllocationIoReceive()
859 if (alloc->mHal.drvState.lod[0].mallocPtr) { in rsdAllocationData2D()
876 dst += alloc->mHal.drvState.lod[lod].stride; in rsdAllocationData2D()
898 dst += alloc->mHal.drvState.lod[lod].stride; in rsdAllocationData2D()
923 if (alloc->mHal.drvState.lod[0].mallocPtr) { in rsdAllocationData3D()
942 dst += alloc->mHal.drvState.lod[lod].stride; in rsdAllocationData3D()
970 if (alloc->mHal.drvState.lod[0].mallocPtr) { in rsdAllocationRead2D()
982 src += alloc->mHal.drvState.lod[lod].stride; in rsdAllocationRead2D()
1000 if (alloc->mHal.drvState.lod[0].mallocPtr) { in rsdAllocationRead3D()
1014 src += alloc->mHal.drvState.lod[lod].stride; in rsdAllocationRead3D()
1022 return alloc->mHal.drvState.lod[0].mallocPtr; in rsdAllocationLock1D()
1145 uint32_t w = alloc->mHal.drvState.lod[lod + 1].dimX; in mip565()
1146 uint32_t h = alloc->mHal.drvState.lod[lod + 1].dimY; in mip565()
1163 uint32_t w = alloc->mHal.drvState.lod[lod + 1].dimX; in mip8888()
1164 uint32_t h = alloc->mHal.drvState.lod[lod + 1].dimY; in mip8888()
1181 uint32_t w = alloc->mHal.drvState.lod[lod + 1].dimX; in mip8()
1182 uint32_t h = alloc->mHal.drvState.lod[lod + 1].dimY; in mip8()
1199 if(!alloc->mHal.drvState.lod[0].mallocPtr) { in rsdAllocationGenerateMipmaps()