Lines Matching defs:Allocation

25 Allocation::Allocation(Context *rsc, const Type *type, uint32_t usages,
38 Allocation * Allocation::createAllocation(Context *rsc, const Type *type, uint32_t usages,
40 Allocation *a = new Allocation(rsc, type, usages, mc, ptr);
43 rsc->setError(RS_ERROR_FATAL_DRIVER, "Allocation::Allocation, alloc failure");
51 void Allocation::updateCache() {
62 Allocation::~Allocation() {
67 void Allocation::syncAll(Context *rsc, RsAllocationUsageType src) {
71 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t lod,
76 ALOGE("Allocation::subData called with mismatched size expected %zu, got %zu",
86 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
94 ALOGE("Allocation size mismatch, expected %zu, got %zu", (lineSize * h), sizeBytes);
95 rsAssert(!"Allocation::subData called with mismatched size");
103 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff,
108 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t lod,
113 ALOGE("Allocation::read called with mismatched size expected %zu, got %zu",
122 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
128 ALOGE("Allocation size mismatch, expected %zu, got %zu", (lineSize * h), sizeBytes);
129 rsAssert(!"Allocation::read called with mismatched size");
136 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff,
141 void Allocation::elementData(Context *rsc, uint32_t x, const void *data,
146 ALOGE("Error Allocation::subElementData component %i out of range.", cIdx);
152 ALOGE("Error Allocation::subElementData X offset %i out of range.", x);
160 ALOGE("Error Allocation::subElementData data size %zu does not match field size %zu.", sizeBytes, e->getSizeBytes());
169 void Allocation::elementData(Context *rsc, uint32_t x, uint32_t y,
174 ALOGE("Error Allocation::subElementData X offset %i out of range.", x);
180 ALOGE("Error Allocation::subElementData X offset %i out of range.", x);
186 ALOGE("Error Allocation::subElementData component %i out of range.", cIdx);
194 ALOGE("Error Allocation::subElementData data size %zu does not match field size %zu.", sizeBytes, e->getSizeBytes());
203 void Allocation::dumpLOGV(const char *prefix) const {
216 uint32_t Allocation::getPackedSize() const {
221 void Allocation::writePackedData(Context *rsc, const Type *type,
270 void Allocation::unpackVec3Allocation(Context *rsc, const void *data, size_t dataSize) {
278 void Allocation::packVec3Allocation(Context *rsc, OStream *stream) const {
293 void Allocation::serialize(Context *rsc, OStream *stream) const {
319 Allocation *Allocation::createFromStream(Context *rsc, IStream *stream) {
336 Allocation *alloc = Allocation::createAllocation(rsc, type, RS_ALLOCATION_USAGE_SCRIPT);
365 void Allocation::sendDirty(const Context *rsc) const {
369 void Allocation::incRefs(const void *ptr, size_t ct, size_t startOff) const {
373 void Allocation::decRefs(const void *ptr, size_t ct, size_t startOff) const {
380 void Allocation::freeChildrenUnlocked () {
386 bool Allocation::freeChildren() {
395 void Allocation::copyRange1D(Context *rsc, const Allocation *src, int32_t srcOff, int32_t destOff, int32_t len) {
398 void Allocation::resize1D(Context *rsc, uint32_t dimX) {
414 void Allocation::resize2D(Context *rsc, uint32_t dimX, uint32_t dimY) {
425 Allocation *a = static_cast<Allocation *>(va);
431 Allocation *alloc = static_cast<Allocation *>(va);
436 Allocation *a = static_cast<Allocation *>(va);
444 Allocation *a = static_cast<Allocation *>(va);
450 Allocation *a = static_cast<Allocation *>(va);
456 Allocation *a = static_cast<Allocation *>(va);
462 Allocation *a = static_cast<Allocation *>(va);
467 Allocation *a = static_cast<Allocation *>(va);
479 Allocation *a = static_cast<Allocation *>(va);
484 Allocation *a = static_cast<Allocation *>(va);
491 Allocation * alloc = Allocation::createAllocation(rsc, static_cast<Type *>(vtype), usages, mips, (void *)ptr);
505 Allocation *texAlloc = static_cast<Allocation *>(vTexAlloc);
530 Allocation *texAlloc = static_cast<Allocation *>(vTexAlloc);
567 Allocation *dst = static_cast<Allocation *>(dstAlloc);
568 Allocation *src= static_cast<Allocation *>(srcAlloc);
580 Allocation *a = static_cast<Allocation *>(va);