Home | History | Annotate | Download | only in rs

Lines Matching refs:mHal

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