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::getPointer(const Context *rsc, uint32_t lod, RsAllocationCubemapFace face,
115 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t lod,
121 sprintf(buf, "Allocation::subData called with mismatched size expected %zu, got %zu",
132 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
138 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff,
145 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t lod,
151 sprintf(buf, "Allocation::read called with mismatched size expected %zu, got %zu",
161 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
170 sprintf(buf, "Allocation size mismatch, expected %zu, got %zu", (lineSize * h), sizeBytes);
179 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
191 void Allocation::elementData(Context *rsc, uint32_t x, const void *data,
216 void Allocation::elementData(Context *rsc, uint32_t x, uint32_t y,
246 void Allocation::addProgramToDirty(const Program *p) {
250 void Allocation::removeProgramToDirty(const Program *p) {
260 void Allocation::dumpLOGV(const char *prefix) const {
274 uint32_t Allocation::getPackedSize() const {
279 void Allocation::writePackedData(Context *rsc, const Type *type,
328 void Allocation::unpackVec3Allocation(Context *rsc, const void *data, size_t dataSize) {
336 void Allocation::packVec3Allocation(Context *rsc, OStream *stream) const {
351 void Allocation::serialize(Context *rsc, OStream *stream) const {
375 Allocation *Allocation::createFromStream(Context *rsc, IStream *stream) {
392 Allocation *alloc = Allocation::createAllocation(rsc, type, RS_ALLOCATION_USAGE_SCRIPT);
421 void Allocation::sendDirty(const Context *rsc) const {
430 void Allocation::incRefs(const void *ptr, size_t ct, size_t startOff) const {
434 void Allocation::decRefs(const void *ptr, size_t ct, size_t startOff) const {
441 void Allocation::callUpdateCacheObject(const Context *rsc, void *dstObj) const {
450 void Allocation::freeChildrenUnlocked () {
456 bool Allocation::freeChildren() {
465 void Allocation::copyRange1D(Context *rsc, const Allocation *src, int32_t srcOff, int32_t destOff, int32_t len) {
468 void Allocation::resize1D(Context *rsc, uint32_t dimX) {
484 void Allocation::resize2D(Context *rsc, uint32_t dimX, uint32_t dimY) {
489 void Allocation::NewBufferListener::onFrameAvailable(const BufferItem& /* item */) {
495 void * Allocation::getSurface(const Context *rsc) {
516 void Allocation::setSurface(const Context *rsc, RsNativeWindow sur) {
521 void Allocation::ioSend(const Context *rsc) {
525 void Allocation::ioReceive(const Context *rsc) {
544 bool Allocation::hasSameDims(const Allocation *other) const {
565 Allocation *a = static_cast<Allocation *>(va);
571 Allocation *alloc = static_cast<Allocation *>(va);
576 Allocation *a = static_cast<Allocation *>(va);
584 Allocation *a = static_cast<Allocation *>(va);
590 Allocation *a = static_cast<Allocation *>(va);
596 Allocation *a = static_cast<Allocation *>(va);
602 Allocation *a = static_cast<Allocation *>(va);
608 Allocation *a = static_cast<Allocation *>(va);
614 Allocation *a = static_cast<Allocation *>(va);
626 Allocation *a = static_cast<Allocation *>(va);
631 Allocation *a = static_cast<Allocation *>(va);
638 Allocation * alloc = Allocation::createAllocation(rsc, static_cast<Type *>(vtype), usages, mipmaps, (void*)ptr);
652 Allocation *texAlloc = static_cast<Allocation *>(vTexAlloc);
677 Allocation *texAlloc = static_cast<Allocation *>(vTexAlloc);
714 Allocation *dst = static_cast<Allocation *>(dstAlloc);
715 Allocation *src= static_cast<Allocation *>(srcAlloc);
731 Allocation *dst = static_cast<Allocation *>(dstAlloc);
732 Allocation *src= static_cast<Allocation *>(srcAlloc);
740 Allocation *alloc = static_cast<Allocation *>(valloc);
746 Allocation *alloc = static_cast<Allocation *>(valloc);
751 Allocation *alloc = static_cast<Allocation *>(valloc);
756 Allocation *alloc = static_cast<Allocation *>(valloc);
763 Allocation *alloc = static_cast<Allocation *>(valloc);
771 Allocation *a = static_cast<Allocation *>(va);
778 Allocation *a = static_cast<Allocation *>(va);
786 Allocation *a = static_cast<Allocation *>(va);