Lines Matching defs:Allocation

30 Allocation::Allocation(Context *rsc, const Type *type, uint32_t usages,
44 void Allocation::operator delete(void* ptr) {
46 Allocation *a = (Allocation*) ptr;
51 Allocation * Allocation::createAllocation(Context *rsc, const Type *type, uint32_t usages,
53 // Allocation objects must use allocator specified by the driver
54 void* allocMem = rsc->mHal.funcs.allocRuntimeMem(sizeof(Allocation), 0);
57 rsc->setError(RS_ERROR_FATAL_DRIVER, "Couldn't allocate memory for Allocation");
61 Allocation *a = new (allocMem) Allocation(rsc, type, usages, mc, ptr);
64 rsc->setError(RS_ERROR_FATAL_DRIVER, "Allocation::Allocation, alloc failure");
72 void Allocation::updateCache() {
81 Allocation::~Allocation() {
93 void Allocation::syncAll(Context *rsc, RsAllocationUsageType src) {
97 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t lod,
102 ALOGE("Allocation::subData called with mismatched size expected %zu, got %zu",
112 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
118 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff,
125 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t lod,
130 ALOGE("Allocation::read called with mismatched size expected %zu, got %zu",
139 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
147 ALOGE("Allocation size mismatch, expected %zu, got %zu", (lineSize * h), sizeBytes);
148 rsAssert(!"Allocation::read called with mismatched size");
156 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
168 void Allocation::elementData(Context *rsc, uint32_t x, const void *data,
173 ALOGE("Error Allocation::subElementData component %i out of range.", cIdx);
179 ALOGE("Error Allocation::subElementData X offset %i out of range.", x);
187 ALOGE("Error Allocation::subElementData data size %zu does not match field size %zu.", sizeBytes, e->getSizeBytes());
196 void Allocation::elementData(Context *rsc, uint32_t x, uint32_t y,
201 ALOGE("Error Allocation::subElementData X offset %i out of range.", x);
207 ALOGE("Error Allocation::subElementData X offset %i out of range.", x);
213 ALOGE("Error Allocation::subElementData component %i out of range.", cIdx);
221 ALOGE("Error Allocation::subElementData data size %zu does not match field size %zu.", sizeBytes, e->getSizeBytes());
230 void Allocation::addProgramToDirty(const Program *p) {
234 void Allocation::removeProgramToDirty(const Program *p) {
244 void Allocation::dumpLOGV(const char *prefix) const {
258 uint32_t Allocation::getPackedSize() const {
263 void Allocation::writePackedData(Context *rsc, const Type *type,
312 void Allocation::unpackVec3Allocation(Context *rsc, const void *data, size_t dataSize) {
320 void Allocation::packVec3Allocation(Context *rsc, OStream *stream) const {
335 void Allocation::serialize(Context *rsc, OStream *stream) const {
359 Allocation *Allocation::createFromStream(Context *rsc, IStream *stream) {
375 Allocation *alloc = Allocation::createAllocation(rsc, type, RS_ALLOCATION_USAGE_SCRIPT);
403 void Allocation::sendDirty(const Context *rsc) const {
412 void Allocation::incRefs(const void *ptr, size_t ct, size_t startOff) const {
416 void Allocation::decRefs(const void *ptr, size_t ct, size_t startOff) const {
423 void Allocation::freeChildrenUnlocked () {
429 bool Allocation::freeChildren() {
438 void Allocation::copyRange1D(Context *rsc, const Allocation *src, int32_t srcOff, int32_t destOff, int32_t len) {
441 void Allocation::resize1D(Context *rsc, uint32_t dimX) {
457 void Allocation::resize2D(Context *rsc, uint32_t dimX, uint32_t dimY) {
462 void Allocation::NewBufferListener::onFrameAvailable() {
468 void * Allocation::getSurface(const Context *rsc) {
488 void Allocation::setSurface(const Context *rsc, RsNativeWindow sur) {
493 void Allocation::ioSend(const Context *rsc) {
497 void Allocation::ioReceive(const Context *rsc) {
524 Allocation *a = static_cast<Allocation *>(va);
530 Allocation *alloc = static_cast<Allocation *>(va);
535 Allocation *a = static_cast<Allocation *>(va);
543 Allocation *a = static_cast<Allocation *>(va);
549 Allocation *a = static_cast<Allocation *>(va);
555 Allocation *a = static_cast<Allocation *>(va);
561 Allocation *a = static_cast<Allocation *>(va);
567 Allocation *a = static_cast<Allocation *>(va);
573 Allocation *a = static_cast<Allocation *>(va);
585 Allocation *a = static_cast<Allocation *>(va);
590 Allocation *a = static_cast<Allocation *>(va);
597 Allocation * alloc = Allocation::createAllocation(rsc, static_cast<Type *>(vtype), usages, mips, (void*)ptr);
611 Allocation *texAlloc = static_cast<Allocation *>(vTexAlloc);
636 Allocation *texAlloc = static_cast<Allocation *>(vTexAlloc);
673 Allocation *dst = static_cast<Allocation *>(dstAlloc);
674 Allocation *src= static_cast<Allocation *>(srcAlloc);
690 Allocation *dst = static_cast<Allocation *>(dstAlloc);
691 Allocation *src= static_cast<Allocation *>(srcAlloc);
699 Allocation *alloc = static_cast<Allocation *>(valloc);
705 Allocation *alloc = static_cast<Allocation *>(valloc);
710 Allocation *alloc = static_cast<Allocation *>(valloc);
715 Allocation *alloc = static_cast<Allocation *>(valloc);
721 Allocation *a = static_cast<Allocation *>(va);
728 Allocation *a = static_cast<Allocation *>(va);
736 Allocation *a = static_cast<Allocation *>(va);