Lines Matching refs:ptr

84     uint8_t *ptr = (uint8_t *)drv->lod[lod].mallocPtr;
85 ptr += face * drv->faceOffset;
86 ptr += yoff * drv->lod[lod].stride;
87 ptr += xoff * alloc->mHal.state.elementSizeBytes;
88 return ptr;
92 static void Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr,
104 RSD_CALL_GL(glTexSubImage2D, t, lod, xoff, yoff, w, h, drv->glFormat, drv->glType, ptr);
233 const Type *type, uint8_t *ptr) {
266 drv->lod[0].mallocPtr = ptr;
268 drv->lod[lod].mallocPtr = ptr + offsets[lod];
271 alloc->mHal.drvState.mallocPtrLOD0 = ptr;
291 uint8_t * ptr = NULL;
295 ptr = (uint8_t *)malloc(allocSize);
296 if (!ptr) {
302 size_t verifySize = AllocationBuildPointerTable(rsc, alloc, alloc->getType(), ptr);
323 if (forceZero && ptr) {
324 memset(ptr, 0, alloc->mHal.state.type->getSizeBytes());
374 uint8_t *ptr = (uint8_t *)realloc(oldPtr, s);
376 size_t verifySize = AllocationBuildPointerTable(rsc, alloc, newType, ptr);
580 uint8_t * ptr = GetOffsetPtr(alloc, xoff, 0, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X);
585 alloc->decRefs(ptr, count);
588 memcpy(ptr, data, size);
632 const uint8_t * ptr = GetOffsetPtr(alloc, xoff, 0, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X);
633 memcpy(data, ptr, count * eSize);
735 uint8_t * ptr = GetOffsetPtr(alloc, x, 0, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X);
738 ptr += alloc->mHal.state.type->getElement()->getFieldOffsetBytes(cIdx);
742 e->decRefs(ptr);
745 memcpy(ptr, data, sizeBytes);
755 uint8_t * ptr = GetOffsetPtr(alloc, x, y, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X);
758 ptr += alloc->mHal.state.type->getElement()->getFieldOffsetBytes(cIdx);
762 e->decRefs(ptr);
765 memcpy(ptr, data, sizeBytes);