Lines Matching refs:drvState

95     uint8_t *ptr = (uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;  in GetOffsetPtr()
96 ptr += face * alloc->mHal.drvState.faceOffset; in GetOffsetPtr()
97 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride; in GetOffsetPtr()
98 ptr += yoff * alloc->mHal.drvState.lod[lod].stride; in GetOffsetPtr()
180 if (!alloc->mHal.drvState.lod[0].mallocPtr) { in UploadToTexture()
194 if (alloc->mHal.drvState.lod[0].mallocPtr) { in UploadToTexture()
195 free(alloc->mHal.drvState.lod[0].mallocPtr); in UploadToTexture()
196 alloc->mHal.drvState.lod[0].mallocPtr = NULL; in UploadToTexture()
222 alloc->mHal.drvState.lod[0].dimX, alloc->mHal.drvState.lod[0].dimY); in AllocateRenderTarget()
248 alloc->mHal.drvState.lod[0].mallocPtr, GL_DYNAMIC_DRAW); in UploadToBufferObject()
305 alloc->mHal.drvState.lod[0].dimX = type->getDimX(); in AllocationBuildPointerTable()
306 alloc->mHal.drvState.lod[0].dimY = type->getDimY(); in AllocationBuildPointerTable()
307 alloc->mHal.drvState.lod[0].dimZ = type->getDimZ(); in AllocationBuildPointerTable()
308 alloc->mHal.drvState.lod[0].mallocPtr = 0; in AllocationBuildPointerTable()
310 size_t stride = alloc->mHal.drvState.lod[0].dimX * type->getElementSizeBytes(); in AllocationBuildPointerTable()
311 alloc->mHal.drvState.lod[0].stride = rsRound(stride, 16); in AllocationBuildPointerTable()
312 alloc->mHal.drvState.lodCount = type->getLODCount(); in AllocationBuildPointerTable()
313 alloc->mHal.drvState.faceCount = type->getDimFaces(); in AllocationBuildPointerTable()
318 size_t o = alloc->mHal.drvState.lod[0].stride * rsMax(alloc->mHal.drvState.lod[0].dimY, 1u) * in AllocationBuildPointerTable()
319 rsMax(alloc->mHal.drvState.lod[0].dimZ, 1u); in AllocationBuildPointerTable()
321 o += DeriveYUVLayout(alloc->mHal.state.yuv, &alloc->mHal.drvState); in AllocationBuildPointerTable()
323 for (uint32_t ct = 1; ct < alloc->mHal.drvState.lodCount; ct++) { in AllocationBuildPointerTable()
324 offsets[ct] = (size_t)alloc->mHal.drvState.lod[ct].mallocPtr; in AllocationBuildPointerTable()
326 } else if(alloc->mHal.drvState.lodCount > 1) { in AllocationBuildPointerTable()
327 uint32_t tx = alloc->mHal.drvState.lod[0].dimX; in AllocationBuildPointerTable()
328 uint32_t ty = alloc->mHal.drvState.lod[0].dimY; in AllocationBuildPointerTable()
329 uint32_t tz = alloc->mHal.drvState.lod[0].dimZ; in AllocationBuildPointerTable()
330 for (uint32_t lod=1; lod < alloc->mHal.drvState.lodCount; lod++) { in AllocationBuildPointerTable()
331 alloc->mHal.drvState.lod[lod].dimX = tx; in AllocationBuildPointerTable()
332 alloc->mHal.drvState.lod[lod].dimY = ty; in AllocationBuildPointerTable()
333 alloc->mHal.drvState.lod[lod].dimZ = tz; in AllocationBuildPointerTable()
334 alloc->mHal.drvState.lod[lod].stride = in AllocationBuildPointerTable()
337 o += alloc->mHal.drvState.lod[lod].stride * rsMax(ty, 1u) * rsMax(tz, 1u); in AllocationBuildPointerTable()
344 alloc->mHal.drvState.faceOffset = o; in AllocationBuildPointerTable()
346 alloc->mHal.drvState.lod[0].mallocPtr = ptr; in AllocationBuildPointerTable()
347 for (uint32_t lod=1; lod < alloc->mHal.drvState.lodCount; lod++) { in AllocationBuildPointerTable()
348 alloc->mHal.drvState.lod[lod].mallocPtr = ptr + offsets[lod]; in AllocationBuildPointerTable()
351 size_t allocSize = alloc->mHal.drvState.faceOffset; in AllocationBuildPointerTable()
352 if(alloc->mHal.drvState.faceCount) { in AllocationBuildPointerTable()
496 if (alloc->mHal.drvState.lod[0].mallocPtr) { in rsdAllocationDestroy()
501 free(alloc->mHal.drvState.lod[0].mallocPtr); in rsdAllocationDestroy()
503 alloc->mHal.drvState.lod[0].mallocPtr = NULL; in rsdAllocationDestroy()
535 const uint32_t oldDimX = alloc->mHal.drvState.lod[0].dimX; in rsdAllocationResize()
543 void * oldPtr = alloc->mHal.drvState.lod[0].mallocPtr; in rsdAllocationResize()
556 memset(((uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr) + stride * oldDimX, in rsdAllocationResize()
585 RSD_CALL_GL(glReadPixels, 0, 0, alloc->mHal.drvState.lod[0].dimX, in rsdAllocationSyncFromFBO()
586 alloc->mHal.drvState.lod[0].dimY, in rsdAllocationSyncFromFBO()
587 drv->glFormat, drv->glType, alloc->mHal.drvState.lod[0].mallocPtr); in rsdAllocationSyncFromFBO()
663 alloc->mHal.drvState.lod[0].mallocPtr = dst; in IoGetBuffer()
664 … alloc->mHal.drvState.lod[0].stride = drv->wndBuffer->stride * alloc->mHal.state.elementSizeBytes; in IoGetBuffer()
665 rsAssert((alloc->mHal.drvState.lod[0].stride & 0xf) == 0); in IoGetBuffer()
721 r = native_window_set_buffers_dimensions(nw, alloc->mHal.drvState.lod[0].dimX, in rsdAllocationSetSurface()
722 alloc->mHal.drvState.lod[0].dimY); in rsdAllocationSetSurface()
826 if (alloc->mHal.drvState.lod[0].mallocPtr) { in rsdAllocationData2D()
843 dst += alloc->mHal.drvState.lod[lod].stride; in rsdAllocationData2D()
862 src += alloc->mHal.drvState.lod[lod].stride; in rsdAllocationData2D()
863 dst += alloc->mHal.drvState.lod[lod].stride; in rsdAllocationData2D()
888 if (alloc->mHal.drvState.lod[0].mallocPtr) { in rsdAllocationData3D()
907 dst += alloc->mHal.drvState.lod[lod].stride; in rsdAllocationData3D()
935 if (alloc->mHal.drvState.lod[0].mallocPtr) { in rsdAllocationRead2D()
947 src += alloc->mHal.drvState.lod[lod].stride; in rsdAllocationRead2D()
965 if (alloc->mHal.drvState.lod[0].mallocPtr) { in rsdAllocationRead3D()
979 src += alloc->mHal.drvState.lod[lod].stride; in rsdAllocationRead3D()
987 return alloc->mHal.drvState.lod[0].mallocPtr; in rsdAllocationLock1D()
1118 uint32_t w = alloc->mHal.drvState.lod[lod + 1].dimX; in mip565()
1119 uint32_t h = alloc->mHal.drvState.lod[lod + 1].dimY; in mip565()
1136 uint32_t w = alloc->mHal.drvState.lod[lod + 1].dimX; in mip8888()
1137 uint32_t h = alloc->mHal.drvState.lod[lod + 1].dimY; in mip8888()
1154 uint32_t w = alloc->mHal.drvState.lod[lod + 1].dimX; in mip8()
1155 uint32_t h = alloc->mHal.drvState.lod[lod + 1].dimY; in mip8()
1172 if(!alloc->mHal.drvState.lod[0].mallocPtr) { in rsdAllocationGenerateMipmaps()
1206 obj->r = alloc->mHal.drvState.lod[0].mallocPtr; in rsdAllocationUpdateCachedObject()
1208 obj->v2 = (void *)alloc->mHal.drvState.lod[0].stride; in rsdAllocationUpdateCachedObject()