Home
last modified time | relevance | path

Searched refs:BITS_TO_BYTES (Results 1 – 5 of 5) sorted by relevance

/external/mesa3d/src/amd/addrlib/r800/
Dciaddrlib.cpp221 UINT_32 tileSizePerSample = BITS_TO_BYTES(pIn->bpp * MicroTileWidth * MicroTileHeight); in HwlComputeDccInfo()
643 UINT_32 tileBytes1x = BITS_TO_BYTES(bpp * MicroTilePixels * thickness); in HwlSetupTileCfg()
1815 UINT_32 tileBytes1x = BITS_TO_BYTES(bpp * MicroTilePixels * thickness); in HwlComputeMacroModeIndex()
2104 UINT_32 tileSizePerSample = BITS_TO_BYTES(bpp * MicroTileWidth * MicroTileHeight); in HwlPadDimensions()
2110 UINT_32 bytesPerSplit = BITS_TO_BYTES((*pPitch) * height * bpp * samplesPerSplit); in HwlPadDimensions()
2117 BITS_TO_BYTES(bpp) / in HwlPadDimensions()
2298 UINT_32 tileBytes1x = BITS_TO_BYTES(bpp * MicroTilePixels * thickness); in CheckTcCompatibility()
Degbaddrlib.cpp324 logicalSliceSize = BITS_TO_BYTES(expPitch * expHeight * pIn->bpp); in ComputeSurfaceInfoLinear()
636 bytesPerSlice = BITS_TO_BYTES(static_cast<UINT_64>(paddedPitch) * in ComputeSurfaceInfoMacroTiled()
747 …*pPitchAlign = PowTwoAlign(*pPitchAlign, 512 / (BITS_TO_BYTES(bpp))); //(8 lines * pitch * bytes … in ComputeSurfaceAlignmentsMicroTiled()
902 BITS_TO_BYTES(64 * thickness * bpp * numSamples)); in ComputeSurfaceAlignmentsMacroTiled()
1104 bytesPerSlice = BITS_TO_BYTES(static_cast<UINT_64>(pitch) * height * bpp * numSamples); in ComputeSurfaceMipLevelTileMode()
1105 bytesPerTile = BITS_TO_BYTES(MicroTilePixels * microTileThickness * NextPow2(bpp) * numSamples); in ComputeSurfaceMipLevelTileMode()
1892 microTileBytes = BITS_TO_BYTES(MicroTilePixels * microTileThickness * bpp * numSamples); in ComputeSurfaceAddrFromCoordMicroTiled()
1898 BITS_TO_BYTES(static_cast<UINT_64>(pitch) * height * microTileThickness * bpp * numSamples); in ComputeSurfaceAddrFromCoordMicroTiled()
2372 UINT_32 microTileBytes = BITS_TO_BYTES(microTileBits); in ComputeSurfaceCoordFromAddrMacroTiled()
3208 const UINT_64 HtileCacheLineSize = BITS_TO_BYTES(HtileCacheBits); in ComputeHtileBytes()
[all …]
Dsiaddrlib.cpp1355 sliceBits = PowTwoAlign(sliceBits, BITS_TO_BYTES(HtileCacheBits) * numPipes / elemBits); in HwlComputeXmaskAddrFromCoord()
1627 pitchAlign = Max(64u, m_pipeInterleaveBytes / BITS_TO_BYTES(bpp)); in HwlGetPitchAlignmentLinear()
1632 pitchAlign = Max(8u, 64 / BITS_TO_BYTES(bpp)); in HwlGetPitchAlignmentLinear()
1663 sliceSize = BITS_TO_BYTES(static_cast<UINT_64>(*pPitch) * (*pHeight) * bpp * numSamples); in HwlGetSizeAdjustmentLinear()
1670 UINT_32 pixelsPerPipeInterleave = m_pipeInterleaveBytes / BITS_TO_BYTES(bpp); in HwlGetSizeAdjustmentLinear()
1693 sliceSize = BITS_TO_BYTES(pixelPerSlice * bpp); in HwlGetSizeAdjustmentLinear()
1821 logicalSliceSize = BITS_TO_BYTES(static_cast<UINT_64>(pitch) * height * bpp * numSamples); in HwlGetSizeAdjustmentMicroTiled()
1832 logicalSliceSize = BITS_TO_BYTES(static_cast<UINT_64>(pitch) * height * bpp * numSamples); in HwlGetSizeAdjustmentMicroTiled()
1861 logicalSliceSize = logicalSiceSizeStencil * BITS_TO_BYTES(bpp); in HwlGetSizeAdjustmentMicroTiled()
/external/mesa3d/src/amd/addrlib/core/
Daddrcommon.h197 #define BITS_TO_BYTES(x) ( ((x) + (BITS_PER_BYTE-1)) / BITS_PER_BYTE ) macro
Daddrlib1.cpp1940 return BITS_TO_BYTES(static_cast<UINT_64>(pitch) * height * numSlices * CmaskElemBits) / in ComputeCmaskBytes()
2478 macroTileBytes = BITS_TO_BYTES((macroTileWidth * macroTileHeight * elemBits) / MicroTilePixels); in HwlComputeXmaskAddrFromCoord()
2490 pixelBytesPerRow = BITS_TO_BYTES(macroTileWidth * elemBits) / MicroTileWidth; in HwlComputeXmaskAddrFromCoord()
2502 pixelOffsetX = (x % (macroTileWidth)) / MicroTileWidth * BITS_TO_BYTES(elemBits); in HwlComputeXmaskAddrFromCoord()