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/
Dsiaddrlib.cpp891 sliceBits = PowTwoAlign(sliceBits, BITS_TO_BYTES(HtileCacheBits) * numPipes / elemBits); in HwlComputeXmaskAddrFromCoord()
1163 pitchAlign = Max(64u, m_pipeInterleaveBytes / BITS_TO_BYTES(bpp)); in HwlGetPitchAlignmentLinear()
1168 pitchAlign = Max(8u, 64 / BITS_TO_BYTES(bpp)); in HwlGetPitchAlignmentLinear()
1199 sliceSize = BITS_TO_BYTES(static_cast<UINT_64>(*pPitch) * (*pHeight) * bpp * numSamples); in HwlGetSizeAdjustmentLinear()
1206 UINT_32 pixelsPerPipeInterleave = m_pipeInterleaveBytes / BITS_TO_BYTES(bpp); in HwlGetSizeAdjustmentLinear()
1229 sliceSize = BITS_TO_BYTES(pixelPerSlice * bpp); in HwlGetSizeAdjustmentLinear()
1357 logicalSliceSize = BITS_TO_BYTES(static_cast<UINT_64>(pitch) * height * bpp * numSamples); in HwlGetSizeAdjustmentMicroTiled()
1368 logicalSliceSize = BITS_TO_BYTES(static_cast<UINT_64>(pitch) * height * bpp * numSamples); in HwlGetSizeAdjustmentMicroTiled()
1397 logicalSliceSize = logicalSiceSizeStencil * BITS_TO_BYTES(bpp); in HwlGetSizeAdjustmentMicroTiled()
Dciaddrlib.cpp224 UINT_32 tileSizePerSample = BITS_TO_BYTES(pIn->bpp * MicroTileWidth * MicroTileHeight); in HwlComputeDccInfo()
1476 UINT_32 tileBytes1x = BITS_TO_BYTES(bpp * MicroTilePixels * thickness); in HwlComputeMacroModeIndex()
1781 UINT_32 tileSizePerSample = BITS_TO_BYTES(bpp * MicroTileWidth * MicroTileHeight); in HwlPadDimensions()
1787 UINT_32 bytesPerSplit = BITS_TO_BYTES((*pPitch) * (*pHeight) * bpp * samplesPerSplit); in HwlPadDimensions()
1794 BITS_TO_BYTES(bpp) / in HwlPadDimensions()
Degbaddrlib.cpp551 bytesPerSlice = BITS_TO_BYTES(static_cast<UINT_64>(paddedPitch) * in ComputeSurfaceInfoMacroTiled()
677 …*pPitchAlign = PowTwoAlign(*pPitchAlign, 512 / (BITS_TO_BYTES(bpp))); //(8 lines * pitch * bytes p… in ComputeSurfaceAlignmentsMicroTiled()
833 BITS_TO_BYTES(64 * thickness * bpp * numSamples)); in ComputeSurfaceAlignmentsMacroTiled()
1046 bytesPerTile = BITS_TO_BYTES(MicroTilePixels * microTileThickness * NextPow2(bpp) * numSamples); in ComputeSurfaceMipLevelTileMode()
1728 microTileBytes = BITS_TO_BYTES(MicroTilePixels * microTileThickness * bpp * numSamples); in ComputeSurfaceAddrFromCoordMicroTiled()
1734 BITS_TO_BYTES(static_cast<UINT_64>(pitch) * height * microTileThickness * bpp * numSamples); in ComputeSurfaceAddrFromCoordMicroTiled()
2208 UINT_32 microTileBytes = BITS_TO_BYTES(microTileBits); in ComputeSurfaceCoordFromAddrMacroTiled()
3042 const UINT_64 HtileCacheLineSize = BITS_TO_BYTES(HtileCacheBits); in ComputeHtileBytes()
3044 *sliceBytes = BITS_TO_BYTES(static_cast<UINT_64>(pitch) * height * bpp / 64); in ComputeHtileBytes()
4565 logicalSliceSize = BITS_TO_BYTES(static_cast<UINT_64>(pitch) * height * bpp * numSamples); in HwlGetSizeAdjustmentMicroTiled()
/external/mesa3d/src/amd/addrlib/core/
Daddrcommon.h71 #define BITS_TO_BYTES(x) ( ((x) + (BITS_PER_BYTE-1)) / BITS_PER_BYTE ) macro
Daddrlib.cpp2076 return BITS_TO_BYTES(static_cast<UINT_64>(pitch) * height * numSlices * CmaskElemBits) / in ComputeCmaskBytes()
2611 macroTileBytes = BITS_TO_BYTES((macroTileWidth * macroTileHeight * elemBits) / MicroTilePixels); in HwlComputeXmaskAddrFromCoord()
2623 pixelBytesPerRow = BITS_TO_BYTES(macroTileWidth * elemBits) / MicroTileWidth; in HwlComputeXmaskAddrFromCoord()
2635 pixelOffsetX = (x % (macroTileWidth)) / MicroTileWidth * BITS_TO_BYTES(elemBits); in HwlComputeXmaskAddrFromCoord()