Lines Matching refs:mHal
32 memset(&mHal, 0, sizeof(mHal)); in Allocation()
33 mHal.state.mipmapControl = RS_ALLOCATION_MIPMAP_NONE; in Allocation()
34 mHal.state.usageFlags = usages; in Allocation()
35 mHal.state.mipmapControl = mc; in Allocation()
45 if (!rsc->mHal.funcs.allocation.init(rsc, a, type->getElement()->getHasReferences())) { in createAllocation()
55 const Type *type = mHal.state.type; in updateCache()
56 mHal.state.dimensionX = type->getDimX(); in updateCache()
57 mHal.state.dimensionY = type->getDimY(); in updateCache()
58 mHal.state.dimensionZ = type->getDimZ(); in updateCache()
59 mHal.state.hasFaces = type->getDimFaces(); in updateCache()
60 mHal.state.hasMipmaps = type->getDimLOD(); in updateCache()
61 mHal.state.elementSizeBytes = type->getElementSizeBytes(); in updateCache()
62 mHal.state.hasReferences = mHal.state.type->getElement()->getHasReferences(); in updateCache()
68 mRSC->mHal.funcs.allocation.destroy(mRSC, this); in ~Allocation()
72 rsc->mHal.funcs.allocation.syncAll(rsc, this, src); in syncAll()
76 memcpy(data, getPtr(), mHal.state.type->getSizeBytes()); in read()
81 const size_t eSize = mHal.state.type->getElementSizeBytes(); in data()
86 mHal.state.type->dumpLOGV("type info"); in data()
90 rsc->mHal.funcs.allocation.data1D(rsc, this, xoff, lod, count, data, sizeBytes); in data()
96 const size_t eSize = mHal.state.elementSizeBytes; in data()
107 rsc->mHal.funcs.allocation.data2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes); in data()
118 size_t eSize = mHal.state.elementSizeBytes; in elementData()
120 if (cIdx >= mHal.state.type->getElement()->getFieldCount()) { in elementData()
126 if (x >= mHal.state.dimensionX) { in elementData()
132 const Element * e = mHal.state.type->getElement()->getField(cIdx); in elementData()
133 uint32_t elemArraySize = mHal.state.type->getElement()->getFieldArraySize(cIdx); in elementData()
140 rsc->mHal.funcs.allocation.elementData1D(rsc, this, x, data, cIdx, sizeBytes); in elementData()
146 size_t eSize = mHal.state.elementSizeBytes; in elementData()
148 if (x >= mHal.state.dimensionX) { in elementData()
154 if (y >= mHal.state.dimensionY) { in elementData()
160 if (cIdx >= mHal.state.type->getElement()->getFieldCount()) { in elementData()
166 const Element * e = mHal.state.type->getElement()->getField(cIdx); in elementData()
167 uint32_t elemArraySize = mHal.state.type->getElement()->getFieldArraySize(cIdx); in elementData()
174 rsc->mHal.funcs.allocation.elementData2D(rsc, this, x, y, data, cIdx, sizeBytes); in elementData()
197 if (mHal.state.type) { in dumpLOGV()
198 mHal.state.type->dumpLOGV(s.string()); in dumpLOGV()
202 prefix, getPtr(), mHal.state.usageFlags, mHal.state.mipmapControl); in dumpLOGV()
206 uint32_t numItems = mHal.state.type->getSizeBytes() / mHal.state.type->getElementSizeBytes(); in getPackedSize()
207 return numItems * mHal.state.type->getElement()->getSizeBytesUnpadded(); in getPackedSize()
269 uint32_t numItems = mHal.state.type->getSizeBytes() / paddedBytes; in packVec3Allocation()
289 mHal.state.type->serialize(stream); in serialize()
291 uint32_t dataSize = mHal.state.type->getSizeBytes(); in serialize()
355 mRSC->mHal.funcs.allocation.markDirty(rsc, this); in sendDirty()
359 mHal.state.type->incRefs(ptr, ct, startOff); in incRefs()
363 if (!mHal.state.hasReferences || !getIsScript()) { in decRefs()
366 mHal.state.type->decRefs(ptr, ct, startOff); in decRefs()
370 decRefs(getPtr(), mHal.state.type->getSizeBytes() / mHal.state.type->getElementSizeBytes(), 0); in freeChildrenUnlocked()
374 if (mHal.state.hasReferences) { in freeChildren()
386 uint32_t oldDimX = mHal.state.dimensionX; in resize1D()
391 ObjectBaseRef<Type> t = mHal.state.type->cloneAndResize1D(rsc, dimX); in resize1D()
395 rsc->mHal.funcs.allocation.resize(rsc, this, t.get(), mHal.state.hasReferences); in resize1D()
405 int32_t id = rsc->mHal.funcs.allocation.initSurfaceTexture(rsc, this); in getSurfaceTextureID()
406 mHal.state.surfaceTextureID = id; in getSurfaceTextureID()
411 if(st != mHal.state.surfaceTexture) { in setSurfaceTexture()
412 if(mHal.state.surfaceTexture != NULL) { in setSurfaceTexture()
413 mHal.state.surfaceTexture->decStrong(NULL); in setSurfaceTexture()
415 mHal.state.surfaceTexture = st; in setSurfaceTexture()
416 if(mHal.state.surfaceTexture != NULL) { in setSurfaceTexture()
417 mHal.state.surfaceTexture->incStrong(NULL); in setSurfaceTexture()
424 ANativeWindow *old = mHal.state.wndSurface; in setSurface()
428 rsc->mHal.funcs.allocation.setSurfaceTexture(rsc, this, nw); in setSurface()
429 mHal.state.wndSurface = nw; in setSurface()
436 rsc->mHal.funcs.allocation.ioSend(rsc, this); in ioSend()
440 rsc->mHal.funcs.allocation.ioReceive(rsc, this); in ioReceive()
682 rsc->mHal.funcs.allocation.allocData2D(rsc, dst, dstXoff, dstYoff, dstMip, in rsi_AllocationCopy2DRange()