Home | History | Annotate | Download | only in rs

Lines Matching refs:mHal

34     memset(&mHal, 0, sizeof(mHal));
35 mHal.state.mipmapControl = RS_ALLOCATION_MIPMAP_NONE;
36 mHal.state.usageFlags = usages;
37 mHal.state.mipmapControl = mc;
38 mHal.state.userProvidedPtr = ptr;
47 a->getContext()->mHal.funcs.freeRuntimeMem(ptr);
54 void* allocMem = rsc->mHal.funcs.allocRuntimeMem(sizeof(Allocation), 0);
63 if (!rsc->mHal.funcs.allocation.init(rsc, a, type->getElement()->getHasReferences())) {
73 const Type *type = mHal.state.type;
74 mHal.state.yuv = type->getDimYuv();
75 mHal.state.hasFaces = type->getDimFaces();
76 mHal.state.hasMipmaps = type->getDimLOD();
77 mHal.state.elementSizeBytes = type->getElementSizeBytes();
78 mHal.state.hasReferences = mHal.state.type->getElement()->getHasReferences();
90 mRSC->mHal.funcs.allocation.destroy(mRSC, this);
94 rsc->mHal.funcs.allocation.syncAll(rsc, this, src);
99 const size_t eSize = mHal.state.type->getElementSizeBytes();
104 mHal.state.type->dumpLOGV("type info");
108 rsc->mHal.funcs.allocation.data1D(rsc, this, xoff, lod, count, data, sizeBytes);
114 rsc->mHal.funcs.allocation.data2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes, stride);
121 rsc->mHal.funcs.allocation.data3D(rsc, this, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stride);
127 const size_t eSize = mHal.state.type->getElementSizeBytes();
132 mHal.state.type->dumpLOGV("type info");
136 rsc->mHal.funcs.allocation.read1D(rsc, this, xoff, lod, count, data, sizeBytes);
141 const size_t eSize = mHal.state.elementSizeBytes;
153 rsc->mHal.funcs.allocation.read2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes, stride);
158 const size_t eSize = mHal.state.elementSizeBytes;
164 rsc->mHal.funcs.allocation.read3D(rsc, this, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stride);
170 size_t eSize = mHal.state.elementSizeBytes;
172 if (cIdx >= mHal.state.type->getElement()->getFieldCount()) {
178 if (x >= mHal.drvState.lod[0].dimX) {
184 const Element * e = mHal.state.type->getElement()->getField(cIdx);
185 uint32_t elemArraySize = mHal.state.type->getElement()->getFieldArraySize(cIdx);
192 rsc->mHal.funcs.allocation.elementData1D(rsc, this, x, data, cIdx, sizeBytes);
198 size_t eSize = mHal.state.elementSizeBytes;
200 if (x >= mHal.drvState.lod[0].dimX) {
206 if (y >= mHal.drvState.lod[0].dimY) {
212 if (cIdx >= mHal.state.type->getElement()->getFieldCount()) {
218 const Element * e = mHal.state.type->getElement()->getField(cIdx);
219 uint32_t elemArraySize = mHal.state.type->getElement()->getFieldArraySize(cIdx);
226 rsc->mHal.funcs.allocation.elementData2D(rsc, this, x, y, data, cIdx, sizeBytes);
250 if (mHal.state.type) {
251 mHal.state.type->dumpLOGV(buf);
255 prefix, mHal.drvState.lod[0].mallocPtr, mHal.state.usageFlags, mHal.state.mipmapControl);
259 uint32_t numItems = mHal.state.type->getCellCount();
260 return numItems * mHal.state.type->getElement()->getSizeBytesUnpadded();
314 uint8_t *dst = (uint8_t *)rsc->mHal.funcs.allocation.lock1D(rsc, this);
317 rsc->mHal.funcs.allocation.unlock1D(rsc, this);
323 uint32_t numItems = mHal.state.type->getCellCount();
325 const uint8_t *src = (const uint8_t*)rsc->mHal.funcs.allocation.lock1D(rsc, this);
332 rsc->mHal.funcs.allocation.unlock1D(rsc, this);
342 mHal.state.type->serialize(rsc, stream);
344 uint32_t dataSize = mHal.state.type->getPackedSizeBytes();
351 stream->addByteArray(rsc->mHal.funcs.allocation.lock1D(rsc, this), dataSize);
352 rsc->mHal.funcs.allocation.unlock1D(rsc, this);
409 mRSC->mHal.funcs.allocation.markDirty(rsc, this);
413 mHal.state.type->incRefs(ptr, ct, startOff);
417 if (!mHal.state.hasReferences || !getIsScript()) {
420 mHal.state.type->decRefs(ptr, ct, startOff);
424 void *ptr = mRSC->mHal.funcs.allocation.lock1D(mRSC, this);
425 decRefs(ptr, mHal.state.type->getCellCount(), 0);
426 mRSC->mHal.funcs.allocation.unlock1D(mRSC, this);
430 if (mHal.state.hasReferences) {
442 uint32_t oldDimX = mHal.drvState.lod[0].dimX;
447 ObjectBaseRef<Type> t = mHal.state.type->cloneAndResize1D(rsc, dimX);
449 decRefs(rsc->mHal.funcs.allocation.lock1D(rsc, this), oldDimX - dimX, dimX);
450 rsc->mHal.funcs.allocation.unlock1D(rsc, this);
452 rsc->mHal.funcs.allocation.resize(rsc, this, t.get(), mHal
485 //return rsc->mHal.funcs.allocation.getSurface(rsc, this);
490 rsc->mHal.funcs.allocation.setSurface(rsc, this, nw);
494 rsc->mHal.funcs.allocation.ioSend(rsc, this);
501 if (mHal.state.usageFlags & RS_ALLOCATION_USAGE_SCRIPT) {
505 rsc->mHal.funcs.allocation.ioReceive(rsc, this);
531 rsc->mHal.funcs.allocation.generateMipmaps(rsc, alloc);
620 rsc->mHal.funcs.allocation.generateMipmaps(rsc, texAlloc);
658 rsc->mHal.funcs.allocation.generateMipmaps(rsc, texAlloc);
675 rsc->mHal.funcs.allocation.allocData2D(rsc, dst, dstXoff, dstYoff, dstMip,
692 rsc->mHal.funcs.allocation.allocData3D(rsc, dst, dstXoff, dstYoff, dstZoff, dstMip,
722 rsc->mHal.funcs.allocation.read1D(rsc, a, xoff, lod, count, data, sizeBytes);