Home
last modified time | relevance | path

Searched refs:PowTwoAlign (Results 1 – 10 of 10) sorted by relevance

/external/mesa3d/src/amd/addrlib/src/gfx10/
Dgfx10addrlib.cpp185 pOut->pitch = PowTwoAlign(pIn->unalignedWidth, metaBlk.w); in HwlComputeHtileInfo()
186 pOut->height = PowTwoAlign(pIn->unalignedHeight, metaBlk.h); in HwlComputeHtileInfo()
203 mipWidth = PowTwoAlign(mipWidth, metaBlk.w); in HwlComputeHtileInfo()
204 mipHeight = PowTwoAlign(mipHeight, metaBlk.h); in HwlComputeHtileInfo()
296 pOut->pitch = PowTwoAlign(pIn->unalignedWidth, metaBlk.w); in HwlComputeCmaskInfo()
297 pOut->height = PowTwoAlign(pIn->unalignedHeight, metaBlk.h); in HwlComputeCmaskInfo()
314 mipWidth = PowTwoAlign(mipWidth, metaBlk.w); in HwlComputeCmaskInfo()
315 mipHeight = PowTwoAlign(mipHeight, metaBlk.h); in HwlComputeCmaskInfo()
430 pOut->pitch = PowTwoAlign(pIn->unalignedWidth, metaBlk.w); in HwlComputeDccInfo()
431 pOut->height = PowTwoAlign(pIn->unalignedHeight, metaBlk.h); in HwlComputeDccInfo()
[all …]
/external/mesa3d/src/amd/addrlib/src/core/
Daddrlib1.cpp1299 surfBytes : PowTwoAlign(surfBytes, align); in ComputeHtileInfo()
1305 sliceSize : PowTwoAlign(sliceSize, align); in ComputeHtileInfo()
1874 *pPitchOut = PowTwoAlign(pitchIn, macroWidth); in ComputeHtileInfo()
1875 *pHeightOut = PowTwoAlign(heightIn, macroHeight); in ComputeHtileInfo()
3239 *pPitchAlign = PowTwoAlign(*pPitchAlign, 32); in AdjustPitchAlignment()
3308 *pPitch = PowTwoAlign((*pPitch), pitchAlign); in PadDimensions()
3321 *pHeight = PowTwoAlign((*pHeight), heightAlign); in PadDimensions()
3343 *pSlices = PowTwoAlign((*pSlices), sliceAlign); in PadDimensions()
3548 pIn->width = PowTwoAlign(pIn->width, 4); in ComputeMipLevel()
3549 pIn->height = PowTwoAlign(pIn->height, 4); in ComputeMipLevel()
[all …]
Daddrcommon.h364 static inline UINT_32 PowTwoAlign( in PowTwoAlign() function
383 static inline UINT_64 PowTwoAlign( in PowTwoAlign() function
Daddrlib2.h777 pPadDim->w = PowTwoAlign(width ,pBlkDim->w); in ComputePadSize()
778 pPadDim->h = PowTwoAlign(height ,pBlkDim->h); in ComputePadSize()
779 pPadDim->d = PowTwoAlign(numSlices, pBlkDim->d); in ComputePadSize()
Daddrelemlib.cpp1227 if ((*pWidth > PowTwoAlign(width, 8) * expandX) || in AdjustSurfaceInfo()
1228 (*pHeight > PowTwoAlign(height, 8) * expandY)) // 8 is 1D tiling alignment in AdjustSurfaceInfo()
Daddrlib2.cpp1263 UINT_32 currentMipHeight = (PowTwoAlign(localIn.height, (1 << mipId))) >> mipId; in ComputeSurfaceCoordFromAddrLinear()
/external/mesa3d/src/amd/addrlib/src/gfx9/
Dgfx9addrlib.cpp258 pOut->htileBytes = PowTwoAlign(pOut->sliceSize * numMetaBlkZ, align); in HwlComputeHtileInfo()
345 pOut->cmaskBytes = PowTwoAlign(pOut->sliceSize * numMetaBlkZ, sizeAlign); in HwlComputeCmaskInfo()
467 mipWidth = PowTwoAlign(mipWidth, pMetaBlkDim->w); in GetMetaMipInfo()
468 mipHeight = PowTwoAlign(mipHeight, pMetaBlkDim->h); in GetMetaMipInfo()
469 mipDepth = PowTwoAlign(mipDepth, pMetaBlkDim->d); in GetMetaMipInfo()
567 pOut->dccRamSize = PowTwoAlign((pIn->dataSurfaceSize / 256), pOut->dccRamBaseAlign); in HwlComputeDccInfo()
649 pOut->dccRamSize = PowTwoAlign(pOut->dccRamSize, sizeAlign); in HwlComputeDccInfo()
3662 blkDim[i].w = PowTwoAlign(blkDim[i].w, 32); in HwlGetPreferredSurfaceSetting()
3666 padSize[i] = PowTwoAlign(padSize[i] * numFrags, sizeAlignInElement); in HwlGetPreferredSurfaceSetting()
3876 if ((PowTwoAlign(pIn->height, *pHeightAlign) % (*pHeightAlign * 2)) != 0) in ComputeStereoInfo()
[all …]
/external/mesa3d/src/amd/addrlib/src/r800/
Degbaddrlib.cpp298 expPitch = PowTwoAlign(expPitch, pOut->pitchAlign); in ComputeSurfaceInfoLinear()
315 expHeight = PowTwoAlign(expHeight, pOut->heightAlign); in ComputeSurfaceInfoLinear()
570 paddedHeight = PowTwoAlign(paddedHeight, stereoHeightAlign); in ComputeSurfaceInfoMacroTiled()
601 if (PowTwoAlign(mipPitch, pOut->blockWidth) != in ComputeSurfaceInfoMacroTiled()
602 PowTwoAlign(mipPitch, pOut->pitchAlign)) in ComputeSurfaceInfoMacroTiled()
745 … *pBaseAlign = PowTwoAlign(*pBaseAlign, 4096); //Base address MOD 4096 = 0 in ComputeSurfaceAlignmentsMicroTiled()
746 …*pPitchAlign = PowTwoAlign(*pPitchAlign, 512 / (BITS_TO_BYTES(bpp))); //(8 lines * pitch * bytes … in ComputeSurfaceAlignmentsMicroTiled()
815 pTileInfo->macroAspectRatio = PowTwoAlign(pTileInfo->macroAspectRatio, in HwlReduceBankWidthHeight()
910 pTileInfo->bankHeight = PowTwoAlign(pTileInfo->bankHeight, bankHeightAlign); in ComputeSurfaceAlignmentsMacroTiled()
921 … pTileInfo->macroAspectRatio = PowTwoAlign(pTileInfo->macroAspectRatio, macroAspectAlign); in ComputeSurfaceAlignmentsMacroTiled()
[all …]
Dciaddrlib.cpp260 pOut->dccFastClearSize = PowTwoAlign(pOut->dccRamSize, dccRamSizeAlign); in HwlComputeDccInfo()
266 pOut->dccRamSize = PowTwoAlign(pOut->dccRamSize, dccRamSizeAlign); in HwlComputeDccInfo()
2089 pOut->pitchAlign = PowTwoAlign(pOut->pitchAlign, 256); in HwlComputeSurfaceAlignmentsMacroTiled()
2161 *pPitch = PowTwoAlign((*pPitch), dccFastClearPitchAlignInPixels); in HwlPadDimensions()
Dsiaddrlib.cpp1387 sliceBits = PowTwoAlign(sliceBits, BITS_TO_BYTES(HtileCacheBits) * numPipes / elemBits); in HwlComputeXmaskAddrFromCoord()
1548 sliceSizeInTile = PowTwoAlign(sliceSizeInTile, static_cast<UINT_32>(sliceBytes) / 64); in HwlComputeXmaskCoordFromAddr()