Lines Matching refs:mHal
28 memset(&mHal, 0, sizeof(mHal)); in Allocation()
29 mHal.state.mipmapControl = RS_ALLOCATION_MIPMAP_NONE; in Allocation()
30 mHal.state.usageFlags = usages; in Allocation()
31 mHal.state.mipmapControl = mc; in Allocation()
33 mHal.state.type.set(type); in Allocation()
41 if (!rsc->mHal.funcs.allocation.init(rsc, a, type->getElement()->getHasReferences())) { in createAllocation()
50 const Type *type = mHal.state.type.get(); in updateCache()
51 mHal.state.dimensionX = type->getDimX(); in updateCache()
52 mHal.state.dimensionY = type->getDimY(); in updateCache()
53 mHal.state.dimensionZ = type->getDimZ(); in updateCache()
54 mHal.state.hasFaces = type->getDimFaces(); in updateCache()
55 mHal.state.hasMipmaps = type->getDimLOD(); in updateCache()
56 mHal.state.elementSizeBytes = type->getElementSizeBytes(); in updateCache()
57 mHal.state.hasReferences = mHal.state.type->getElement()->getHasReferences(); in updateCache()
62 mRSC->mHal.funcs.allocation.destroy(mRSC, this); in ~Allocation()
66 rsc->mHal.funcs.allocation.syncAll(rsc, this, src); in syncAll()
70 memcpy(data, getPtr(), mHal.state.type->getSizeBytes()); in read()
75 const uint32_t eSize = mHal.state.type->getElementSizeBytes(); in data()
80 mHal.state.type->dumpLOGV("type info"); in data()
84 rsc->mHal.funcs.allocation.data1D(rsc, this, xoff, lod, count, data, sizeBytes); in data()
90 const uint32_t eSize = mHal.state.elementSizeBytes; in data()
101 rsc->mHal.funcs.allocation.data2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes); in data()
112 uint32_t eSize = mHal.state.elementSizeBytes; in elementData()
114 if (cIdx >= mHal.state.type->getElement()->getFieldCount()) { in elementData()
120 if (x >= mHal.state.dimensionX) { in elementData()
126 const Element * e = mHal.state.type->getElement()->getField(cIdx); in elementData()
133 rsc->mHal.funcs.allocation.elementData1D(rsc, this, x, data, cIdx, sizeBytes); in elementData()
139 uint32_t eSize = mHal.state.elementSizeBytes; in elementData()
141 if (x >= mHal.state.dimensionX) { in elementData()
147 if (y >= mHal.state.dimensionY) { in elementData()
153 if (cIdx >= mHal.state.type->getElement()->getFieldCount()) { in elementData()
159 const Element * e = mHal.state.type->getElement()->getField(cIdx); in elementData()
167 rsc->mHal.funcs.allocation.elementData2D(rsc, this, x, y, data, cIdx, sizeBytes); in elementData()
190 if (mHal.state.type.get()) { in dumpLOGV()
191 mHal.state.type->dumpLOGV(s.string()); in dumpLOGV()
195 prefix, getPtr(), mHal.state.usageFlags, mHal.state.mipmapControl); in dumpLOGV()
207 mHal.state.type->serialize(stream); in serialize()
209 uint32_t dataSize = mHal.state.type->getSizeBytes(); in serialize()
258 mRSC->mHal.funcs.allocation.markDirty(rsc, this); in sendDirty()
263 const Element *e = mHal.state.type->getElement(); in incRefs()
275 if (!mHal.state.hasReferences || !getIsScript()) { in decRefs()
279 const Element *e = mHal.state.type->getElement(); in decRefs()
291 decRefs(getPtr(), mHal.state.type->getSizeBytes() / mHal.state.type->getElementSizeBytes(), 0); in freeChildrenUnlocked()
295 if (mHal.state.hasReferences) { in freeChildren()
307 uint32_t oldDimX = mHal.state.dimensionX; in resize1D()
312 ObjectBaseRef<Type> t = mHal.state.type->cloneAndResize1D(rsc, dimX); in resize1D()
316 rsc->mHal.funcs.allocation.resize(rsc, this, t.get(), mHal.state.hasReferences); in resize1D()
317 mHal.state.type.set(t.get()); in resize1D()
563 rsc->mHal.funcs.allocation.allocData2D(rsc, dst, dstXoff, dstYoff, dstMip, in rsi_AllocationCopy2DRange()