Home
last modified time | relevance | path

Searched refs:requiredAlignment (Results 1 – 6 of 6) sorted by relevance

/frameworks/rs/driver/
DrsdAllocation.cpp300 … const Type *type, uint8_t *ptr, size_t requiredAlignment) { in AllocationBuildPointerTable() argument
307 alloc->mHal.drvState.lod[0].stride = rsRound(stride, requiredAlignment); in AllocationBuildPointerTable()
331 rsRound(tx * type->getElementSizeBytes(), requiredAlignment); in AllocationBuildPointerTable()
360 static uint8_t* allocAlignedMemory(size_t allocSize, bool forceZero, size_t requiredAlignment) { in allocAlignedMemory() argument
362 uint8_t* ptr = (uint8_t *)memalign(requiredAlignment, allocSize); in allocAlignedMemory()
372 …ationInitStrided(const Context *rsc, Allocation *alloc, bool forceZero, size_t requiredAlignment) { in rsdAllocationInitStrided() argument
380 …if ((requiredAlignment & (requiredAlignment-1)) != 0 || requiredAlignment < Allocation::kMinimumRS… in rsdAllocationInitStrided()
385 … allocSize = AllocationBuildPointerTable(rsc, alloc, alloc->getType(), nullptr, requiredAlignment); in rsdAllocationInitStrided()
422 …getType()->getDimX() * alloc->getType()->getElement()->getSizeBytes()) % requiredAlignment) != 0) { in rsdAllocationInitStrided()
426 ptr = allocAlignedMemory(allocSize, forceZero, requiredAlignment); in rsdAllocationInitStrided()
[all …]
DrsdAllocation.h88 bool forceZero, size_t requiredAlignment);
/frameworks/rs/
Drs_compat.spec7 param size_t requiredAlignment
DrsAllocation.cpp63 size_t requiredAlignment) { in createAllocationStrided() argument
85 …al.funcs.allocation.initStrided(rsc, a, type->getElement()->getHasReferences(), requiredAlignment); in createAllocationStrided()
753 size_t requiredAlignment) { in rsi_AllocationCreateStrided() argument
755 (void*)ptr, requiredAlignment); in rsi_AllocationCreateStrided()
Drs_hal.h312 …ol (*initStrided)(const Context *rsc, Allocation *alloc, bool forceZero, size_t requiredAlignment);
/frameworks/rs/support/jni/
Dandroid_renderscript_RenderScript.cpp2227 size_t requiredAlignment = 16; in nIncAllocationCreateTyped() local
2229 while (requiredAlignment <= minRequiredAlignment) { in nIncAllocationCreateTyped()
2230 requiredAlignment <<= 1; in nIncAllocationCreateTyped()
2235 (uintptr_t)pIn, requiredAlignment); in nIncAllocationCreateTyped()