/third_party/mesa3d/src/amd/addrlib/src/core/ |
D | addrlib2.h | 143 UINT_64 value; 172 const UINT_64 X0 = InitBit(0, 0); 173 const UINT_64 X1 = InitBit(0, 1); 174 const UINT_64 X2 = InitBit(0, 2); 175 const UINT_64 X3 = InitBit(0, 3); 176 const UINT_64 X4 = InitBit(0, 4); 177 const UINT_64 X5 = InitBit(0, 5); 178 const UINT_64 X6 = InitBit(0, 6); 179 const UINT_64 X7 = InitBit(0, 7); 180 const UINT_64 X8 = InitBit(0, 8); [all …]
|
D | addrlib1.h | 228 UINT_64 baseAddr, UINT_32* pTileSwizzle) const = 0; 244 virtual UINT_64 HwlComputeHtileBytes( 246 BOOL_32 isLinear, UINT_32 numSlices, UINT_64* pSliceBytes, UINT_32 baseAlign) const = 0; 320 UINT_32* pPitchOut, UINT_32* pHeightOut, UINT_64* pHtileBytes, 322 UINT_64* pSliceSize = NULL, UINT_32* pBaseAlign = NULL) const; 328 ADDR_TILEINFO* pTileInfo, UINT_32* pPitchOut, UINT_32* pHeightOut, UINT_64* pCmaskBytes, 329 UINT_32* pMacroWidth, UINT_32* pMacroHeight, UINT_64* pSliceSize = NULL, 337 virtual UINT_64 HwlComputeXmaskAddrFromCoord( 344 UINT_64 addr, UINT_32 bitPosition, UINT_32 pitch, UINT_32 height, UINT_32 numSlices, 391 UINT_64 ComputeSurfaceAddrFromCoordLinear( [all …]
|
D | addrlib1.cpp | 1838 UINT_64* pHtileBytes, ///< [out] bytes per 2D slice in ComputeHtileInfo() 1841 UINT_64* pSliceSize, ///< [out] slice size in bytes in ComputeHtileInfo() 1849 UINT_64 surfBytes; in ComputeHtileInfo() 1850 UINT_64 sliceBytes; in ComputeHtileInfo() 1943 UINT_64 Lib::ComputeCmaskBytes( in ComputeCmaskBytes() 1949 return BITS_TO_BYTES(static_cast<UINT_64>(pitch) * height * numSlices * CmaskElemBits) / in ComputeCmaskBytes() 1974 UINT_64* pCmaskBytes, ///< [out] bytes per 2D slice in ComputeCmaskInfo() 1977 UINT_64* pSliceSize, ///< [out] slice size in bytes in ComputeCmaskInfo() 1985 UINT_64 surfBytes; in ComputeCmaskInfo() 1986 UINT_64 sliceBytes; in ComputeCmaskInfo() [all …]
|
D | addrcommon.h | 345 static inline UINT_64 IsPow2( in IsPow2() 346 UINT_64 dim) ///< [in] dimension of miplevel in IsPow2() 379 static inline UINT_64 PowTwoAlign( in PowTwoAlign() 380 UINT_64 x, in PowTwoAlign() 381 UINT_64 align) in PowTwoAlign() 474 static inline UINT_64 RoundUpQuotient( in RoundUpQuotient() 475 UINT_64 numerator, in RoundUpQuotient() 476 UINT_64 denominator) in RoundUpQuotient() 617 UINT_64* pLVal, ///< [in] Pointer to left val in SafeAssign() 618 UINT_64 rVal) ///< [in] Right value in SafeAssign()
|
D | addrlib.cpp | 39 UINT_32 div64_32(UINT_64 n, UINT_32 base) in div64_32() 41 UINT_64 rem = n; in div64_32() 42 UINT_64 b = base; in div64_32() 43 UINT_64 res, d = 1; in div64_32() 50 res = (UINT_64) high << 32; in div64_32() 51 rem -= (UINT_64) (high * base) << 32; in div64_32() 76 UINT_32 __umoddi3(UINT_64 n, UINT_32 base) in __umoddi3()
|
D | coord.cpp | 360 UINT_64 CoordEq::solve(const UINT_32 *coords) const in solve() 362 UINT_64 out = 0; in solve() 365 out |= static_cast<UINT_64>(m_eq[i].getxor(coords)) << i; in solve() 371 UINT_64 addr, UINT_32 sliceInM, in solveAddr() 449 addr ^= static_cast<UINT_64>(v); in solveAddr()
|
D | coord.h | 119 virtual UINT_64 solve(const UINT_32 *coords) const; 120 virtual VOID solveAddr(UINT_64 addr, UINT_32 sliceInM,
|
D | addrelemlib.cpp | 208 UINT_64 truncated, rounded; in Flt32sToInt32s() 213 UINT_64 temp = mant24 - (mant24>>bits) - in Flt32sToInt32s() 217 UINT_64 final; in Flt32sToInt32s() 225 final = ((temp<<8) + (static_cast<UINT_64>(round)<<shift)) >> (shift+8); in Flt32sToInt32s()
|
D | addrlib2.cpp | 2075 UINT_64 minSize, in BlockTypeWithinMemoryBudget() 2076 UINT_64 newBlockTypeSize, in BlockTypeWithinMemoryBudget() 2178 const UINT_64 rightEyeOffsetFromBase = addrOut.addr; in ValidateStereoInfo() 2187 const UINT_64 rightEyeOffsetRelative = addrOut.addr; in ValidateStereoInfo()
|
/third_party/mesa3d/src/amd/addrlib/src/r800/ |
D | egbaddrlib.h | 111 UINT_64 baseAddr, UINT_32* pTileSwizzle) const; 170 virtual UINT_64 HwlGetSizeAdjustmentLinear( 178 virtual UINT_64 HwlGetSizeAdjustmentMicroTiled( 253 UINT_64 baseAddr, ADDR_TILEINFO* pTileInfo) const; 256 AddrTileMode tileMode, UINT_32 baseSwizzle, UINT_32 slice, UINT_64 baseAddr, 273 UINT_64 addr, UINT_32 numBanks, UINT_32 numPipes) const; 290 UINT_64 ComputeHtileBytes( 292 BOOL_32 isLinear, UINT_32 numSlices, UINT_64* sliceBytes, UINT_32 baseAlign) const; 343 UINT_64 DispatchComputeSurfaceAddrFromCoord( 351 UINT_64 ComputeSurfaceAddrFromCoordMicroTiled( [all …]
|
D | ciaddrlib.cpp | 74 static UINT_64 Mask( in Mask() 77 UINT_64 ret; in Mask() 79 if (width >= sizeof(UINT_64)*8) in Mask() 81 ret = ~((UINT_64) 0); in Mask() 85 return (((UINT_64) 1) << width) - 1; in Mask() 100 static UINT_64 GetBits( in GetBits() 101 UINT_64 bits, ///< Source bits in GetBits() 105 UINT_64 ret = 0; in GetBits() 124 static UINT_64 RemoveBits( in RemoveBits() 125 UINT_64 bits, ///< Source bits in RemoveBits() [all …]
|
D | egbaddrlib.cpp | 277 UINT_64 logicalSliceSize; in ComputeSurfaceInfoLinear() 426 UINT_64 logicalSliceSize = HwlGetSizeAdjustmentMicroTiled(microTileThickness, in ComputeSurfaceInfoMicroTiled() 475 UINT_64 bytesPerSlice; in ComputeSurfaceInfoMacroTiled() 636 bytesPerSlice = BITS_TO_BYTES(static_cast<UINT_64>(paddedPitch) * in ComputeSurfaceInfoMacroTiled() 1091 UINT_64 bytesPerSlice; in ComputeSurfaceMipLevelTileMode() 1101 bytesPerSlice = BITS_TO_BYTES(static_cast<UINT_64>(pitch) * height * bpp * numSamples); in ComputeSurfaceMipLevelTileMode() 1307 UINT_64 EgBasedLib::DispatchComputeSurfaceAddrFromCoord( in DispatchComputeSurfaceAddrFromCoord() 1329 UINT_64 addr; in DispatchComputeSurfaceAddrFromCoord() 1580 UINT_64 EgBasedLib::ComputeSurfaceAddrFromCoordMacroTiled( in ComputeSurfaceAddrFromCoordMacroTiled() 1600 UINT_64 addr; in ComputeSurfaceAddrFromCoordMacroTiled() [all …]
|
D | siaddrlib.h | 121 virtual UINT_64 HwlComputeXmaskAddrFromCoord( 127 UINT_64 addr, UINT_32 bitPosition, UINT_32 pitch, UINT_32 height, UINT_32 numSlices, 152 virtual UINT_64 HwlComputeHtileBytes( 154 BOOL_32 isLinear, UINT_32 numSlices, UINT_64* pSliceBytes, UINT_32 baseAlign) const; 192 virtual UINT_64 HwlGetSizeAdjustmentMicroTiled( 223 virtual UINT_64 HwlGetSizeAdjustmentLinear(
|
D | siaddrlib.cpp | 1265 UINT_64 SiLib::HwlComputeHtileBytes( in HwlComputeHtileBytes() 1271 UINT_64* pSliceBytes, ///< [out] bytes per slice in HwlComputeHtileBytes() 1288 UINT_64 SiLib::HwlComputeXmaskAddrFromCoord( in HwlComputeXmaskAddrFromCoord() 1307 UINT_64 totalBytes; in HwlComputeXmaskAddrFromCoord() 1310 UINT_64 pSliceBytes; in HwlComputeXmaskAddrFromCoord() 1360 UINT_64 macroOffset; // Per pipe starting offset of the macro tile in which this tile lies. in HwlComputeXmaskAddrFromCoord() 1361 UINT_64 microNumber; // Per pipe starting offset of the macro tile in which this tile lies. in HwlComputeXmaskAddrFromCoord() 1364 UINT_64 microOffset; in HwlComputeXmaskAddrFromCoord() 1366 UINT_64 totalOffset; in HwlComputeXmaskAddrFromCoord() 1379 microNumber = static_cast<UINT_64>(microX + microY * (pitchInTile / 4)) << microShift; in HwlComputeXmaskAddrFromCoord() [all …]
|
D | ciaddrlib.h | 166 UINT_64 HwlComputeMetadataNibbleAddress( 167 UINT_64 uncompressedDataByteAddress, 168 UINT_64 dataBaseByteAddress, 169 UINT_64 metadataBaseByteAddress,
|
/third_party/mesa3d/src/amd/addrlib/inc/ |
D | addrinterface.h | 597 UINT_64 surfSize; ///< Surface size in bytes 607 UINT_64 sliceSize; ///< Size of slice specified by input's slice 732 UINT_64 addr; ///< Byte address 765 UINT_64 addr; ///< Address in bytes 908 UINT_64 htileBytes; ///< Size of HTILE buffer, in bytes 913 UINT_64 sliceSize; ///< Slice size, in bytes. 980 UINT_64 addr; ///< Address in bytes 1012 UINT_64 addr; ///< Address 1127 UINT_64 cmaskBytes; ///< Size in bytes of CMask buffer 1132 UINT_64 sliceSize; ///< Slice size, in bytes. [all …]
|
D | addrtypes.h | 690 #define UINT_64 unsigned long long macro 694 #define UINT_64 unsigned __int64 macro 714 #define UINT_64 unsigned long long OR unsigned __int64 macro
|
/third_party/mesa3d/src/amd/addrlib/src/gfx11/ |
D | gfx11addrlib.cpp | 480 pOut->addr = (static_cast<UINT_64>(output.sliceSize) * pIn->slice) + in HwlComputeHtileAddrFromCoord() 602 pOut->addr = (static_cast<UINT_64>(pIn->dccRamSliceSize) * pIn->slice) + in HwlComputeDccAddrFromCoord() 1863 … ComputeOffsetFromSwizzlePattern(reinterpret_cast<const UINT_64*>(fullSwizzlePattern), in HwlComputeSlicePipeBankXor() 2628 UINT_64 padSize[AddrBlockMaxTiledType] = {}; in HwlGetPreferredSurfaceSetting() 2632 … const UINT_64 sizeAlignInElement = Max(NextPow2(pIn->minSizeAlign) / (bpp >> 3), 1u); in HwlGetPreferredSurfaceSetting() 2634 UINT_64 minSize = 0; in HwlGetPreferredSurfaceSetting() 3067 UINT_64 mipSliceSize = 0; in ComputeSurfaceInfoMicroTiled() 3096 pOut->sliceSize = static_cast<UINT_64>(pOut->pitch) * pOut->height * (pIn->bpp >> 3); in ComputeSurfaceInfoMicroTiled() 3179 UINT_64 mipChainSliceSize = 0; in ComputeSurfaceInfoMacroTiled() 3180 UINT_64 mipSize[MaxMipLevels]; in ComputeSurfaceInfoMacroTiled() [all …]
|
D | gfx11addrlib.h | 333 const UINT_64* pPattern,
|
D | gfx11SwizzlePattern.h | 1780 const UINT_64 GFX11_SW_PATTERN_NIBBLE01[][8] = 1809 const UINT_64 GFX11_SW_PATTERN_NIBBLE2[][4] = 2160 const UINT_64 GFX11_SW_PATTERN_NIBBLE3[][4] = 2573 const UINT_64 GFX11_SW_PATTERN_NIBBLE4[][4] = 2953 const UINT_64 GFX11_DCC_R_X_SW_PATTERN[][17] = 3032 const UINT_64 GFX11_HTILE_SW_PATTERN[][18] =
|
/third_party/mesa3d/src/amd/addrlib/src/gfx10/ |
D | gfx10addrlib.cpp | 695 pOut->addr = (static_cast<UINT_64>(output.sliceSize) * pIn->slice) + in HwlComputeHtileAddrFromCoord() 834 pOut->addr = (static_cast<UINT_64>(pIn->dccRamSliceSize) * pIn->slice) + in HwlComputeDccAddrFromCoord() 2263 … ComputeOffsetFromSwizzlePattern(reinterpret_cast<const UINT_64*>(fullSwizzlePattern), in HwlComputeSlicePipeBankXor() 2817 … const UINT_64 sizeAlignInElement = Max(NextPow2(pIn->minSizeAlign) / (fmaskBpp >> 3), 1u); in HwlGetPreferredSurfaceSetting() 2822 UINT_64 padSize[maxFmaskSwizzleModeType] = {}; in HwlGetPreferredSurfaceSetting() 3121 UINT_64 padSize[AddrBlockMaxTiledType] = {}; in HwlGetPreferredSurfaceSetting() 3125 … const UINT_64 sizeAlignInElement = Max(NextPow2(pIn->minSizeAlign) / (bpp >> 3), 1u); in HwlGetPreferredSurfaceSetting() 3127 … UINT_64 minSize = 0; // Tracks the minimum acceptable block type in HwlGetPreferredSurfaceSetting() 3584 UINT_64 mipSliceSize = 0; in ComputeSurfaceInfoMicroTiled() 3613 pOut->sliceSize = static_cast<UINT_64>(pOut->pitch) * pOut->height * (pIn->bpp >> 3); in ComputeSurfaceInfoMicroTiled() [all …]
|
D | gfx10addrlib.h | 358 const UINT_64* pPattern,
|
D | gfx10SwizzlePattern.h | 3742 const UINT_64 GFX10_SW_PATTERN_NIBBLE01[][8] = 3786 const UINT_64 GFX10_SW_PATTERN_NIBBLE2[][4] = 4302 const UINT_64 GFX10_SW_PATTERN_NIBBLE3[][4] = 5148 const UINT_64 GFX10_SW_PATTERN_NIBBLE4[][4] = 5853 const UINT_64 GFX10_DCC_64K_R_X_SW_PATTERN[][17] = 5965 const UINT_64 GFX10_HTILE_SW_PATTERN[][18] = 5999 const UINT_64 GFX10_CMASK_SW_PATTERN[][17] =
|
/third_party/mesa3d/src/amd/addrlib/src/gfx9/ |
D | gfx9addrlib.cpp | 893 UINT_64 address = pMetaEq->solve(coords); in HwlComputeCmaskAddrFromCoord() 902 UINT_64 pipeXor = static_cast<UINT_64>(pIn->pipeXor & ((1 << numPipeBits) - 1)); in HwlComputeCmaskAddrFromCoord() 970 UINT_64 address = pMetaEq->solve(coords); in HwlComputeHtileAddrFromCoord() 977 UINT_64 pipeXor = static_cast<UINT_64>(pIn->pipeXor & ((1 << numPipeBits) - 1)); in HwlComputeHtileAddrFromCoord() 1039 UINT_64 pipeXor = static_cast<UINT_64>(pIn->pipeXor & ((1 << numPipeBits) - 1)); in HwlComputeHtileCoordFromAddr() 1041 UINT_64 nibbleAddress = (pIn->addr ^ (pipeXor << m_pipeInterleaveLog2)) << 1; in HwlComputeHtileCoordFromAddr() 1134 UINT_64 address = pMetaEq->solve(coords); in HwlComputeDccAddrFromCoord() 1141 UINT_64 pipeXor = static_cast<UINT_64>(pIn->pipeXor & ((1 << numPipeBits) - 1)); in HwlComputeDccAddrFromCoord() 3189 static_cast<UINT_64>(pipeBankXor); in HwlComputeSubResourceOffsetForSwizzlePattern() 3764 UINT_64 padSize[AddrBlockMaxTiledType] = {}; in HwlGetPreferredSurfaceSetting() [all …]
|