Lines Matching refs:requiredAlignment
299 … const Type *type, uint8_t *ptr, size_t requiredAlignment) { in AllocationBuildPointerTable() argument
306 alloc->mHal.drvState.lod[0].stride = rsRound(stride, requiredAlignment); in AllocationBuildPointerTable()
330 rsRound(tx * type->getElementSizeBytes(), requiredAlignment); in AllocationBuildPointerTable()
359 static uint8_t* allocAlignedMemory(size_t allocSize, bool forceZero, size_t requiredAlignment) { in allocAlignedMemory() argument
361 uint8_t* ptr = (uint8_t *)memalign(requiredAlignment, allocSize); in allocAlignedMemory()
371 …ationInitStrided(const Context *rsc, Allocation *alloc, bool forceZero, size_t requiredAlignment) { in rsdAllocationInitStrided() argument
379 …if ((requiredAlignment & (requiredAlignment-1)) != 0 || requiredAlignment < Allocation::kMinimumRS… in rsdAllocationInitStrided()
384 … allocSize = AllocationBuildPointerTable(rsc, alloc, alloc->getType(), nullptr, requiredAlignment); in rsdAllocationInitStrided()
421 …getType()->getDimX() * alloc->getType()->getElement()->getSizeBytes()) % requiredAlignment) != 0) { in rsdAllocationInitStrided()
425 ptr = allocAlignedMemory(allocSize, forceZero, requiredAlignment); in rsdAllocationInitStrided()
437 ptr = allocAlignedMemory(allocSize, forceZero, requiredAlignment); in rsdAllocationInitStrided()
445 …e_t verifySize = AllocationBuildPointerTable(rsc, alloc, alloc->getType(), ptr, requiredAlignment); in rsdAllocationInitStrided()