Lines Matching refs:alloc
42 Allocation::Allocation(Context *rsc, const Allocation *alloc, const Type *type) in Allocation() argument
46 mHal.state.baseAlloc = alloc; in Allocation()
47 mHal.state.usageFlags = alloc->mHal.state.usageFlags; in Allocation()
106 Allocation * Allocation::createAdapter(Context *rsc, const Allocation *alloc, const Type *type) { in createAdapter() argument
115 Allocation *a = new (allocMem) Allocation(rsc, alloc, type); in createAdapter()
483 Allocation *alloc = Allocation::createAllocation(rsc, type, RS_ALLOCATION_USAGE_SCRIPT); in createFromStream() local
489 uint32_t packedSize = alloc->getPackedSize(); in createFromStream()
494 ObjectBase::checkDelete(alloc); in createFromStream()
499 alloc->assignName(name); in createFromStream()
503 alloc->data(rsc, 0, 0, count, stream->getPtr() + stream->getPos(), dataSize); in createFromStream()
505 alloc->unpackVec3Allocation(rsc, stream->getPtr() + stream->getPos(), dataSize); in createFromStream()
509 return alloc; in createFromStream()
607 void Allocation::shareBufferQueue(const Context *rsc, const Allocation *alloc) { in shareBufferQueue() argument
609 mGrallocConsumer = alloc->mGrallocConsumer; in shareBufferQueue()
672 Allocation *alloc = static_cast<Allocation *>(va); in rsi_AllocationGenerateMipmaps() local
673 rsc->mHal.funcs.allocation.generateMipmaps(rsc, alloc); in rsi_AllocationGenerateMipmaps()
742 …Allocation * alloc = Allocation::createAllocation(rsc, static_cast<Type *>(vtype), usages, mipmaps… in rsi_AllocationCreateTyped() local
743 if (!alloc) { in rsi_AllocationCreateTyped()
746 alloc->incUserRef(); in rsi_AllocationCreateTyped()
747 return alloc; in rsi_AllocationCreateTyped()
754 …Allocation * alloc = Allocation::createAllocationStrided(rsc, static_cast<Type *>(vtype), usages, … in rsi_AllocationCreateStrided() local
756 if (!alloc) { in rsi_AllocationCreateStrided()
759 alloc->incUserRef(); in rsi_AllocationCreateStrided()
760 return alloc; in rsi_AllocationCreateStrided()
856 Allocation *alloc = static_cast<Allocation *>(valloc); in rsi_AllocationSetupBufferQueue() local
857 alloc->setupGrallocConsumer(rsc, numAlloc); in rsi_AllocationSetupBufferQueue()
861 Allocation *alloc = static_cast<Allocation *>(valloc); in rsi_AllocationGetSurface() local
862 void *s = alloc->getSurface(rsc); in rsi_AllocationGetSurface()
873 Allocation *alloc = static_cast<Allocation *>(valloc); in rsi_AllocationSetSurface() local
874 alloc->setSurface(rsc, sur); in rsi_AllocationSetSurface()
878 Allocation *alloc = static_cast<Allocation *>(valloc); in rsi_AllocationIoSend() local
879 alloc->ioSend(rsc); in rsi_AllocationIoSend()
883 Allocation *alloc = static_cast<Allocation *>(valloc); in rsi_AllocationIoReceive() local
884 alloc->ioReceive(rsc); in rsi_AllocationIoReceive()
885 return alloc->getTimeStamp(); in rsi_AllocationIoReceive()
891 Allocation *alloc = static_cast<Allocation *>(valloc); in rsi_AllocationGetPointer() local
894 return alloc->getPointer(rsc, lod, face, z, array, stride); in rsi_AllocationGetPointer()
927 Allocation * alloc = Allocation::createAdapter(rsc, in rsi_AllocationAdapterCreate() local
929 if (!alloc) { in rsi_AllocationAdapterCreate()
932 alloc->incUserRef(); in rsi_AllocationAdapterCreate()
933 return alloc; in rsi_AllocationAdapterCreate()