Home
last modified time | relevance | path

Searched refs:UINT_32 (Results 1 – 25 of 27) sorted by relevance

12

/third_party/mesa3d/src/amd/addrlib/inc/
Daddrinterface.h145 UINT_32 log2ElementBytes : 3; ///< Log2 of Bytes per pixel
146 UINT_32 tileMode : 5; ///< Tile mode
147 UINT_32 microTileType : 3; ///< Micro tile type
148 UINT_32 pipeConfig : 5; ///< pipe config
149 UINT_32 numBanksLog2 : 3; ///< Number of banks log2
150 UINT_32 bankWidth : 4; ///< Bank width
151 UINT_32 bankHeight : 4; ///< Bank height
152 UINT_32 macroAspectRatio : 3; ///< Macro tile aspect ratio
153 UINT_32 prt : 1; ///< SI only, indicate whether this equation is for prt
154 UINT_32 reserved : 1; ///< Reserved bit
[all …]
Daddrtypes.h653 #ifndef UINT_32
654 #define UINT_32 unsigned int macro
755 UINT_32 u;
/third_party/mesa3d/src/amd/addrlib/src/r800/
Degbaddrlib.h45 UINT_32 xBits : 3;
46 UINT_32 yBits : 4;
48 UINT_32 xBit3 : 1;
49 UINT_32 xBit4 : 1;
50 UINT_32 xBit5 : 1;
51 UINT_32 yBit3 : 1;
52 UINT_32 yBit4 : 1;
53 UINT_32 yBit5 : 1;
54 UINT_32 yBit6 : 1;
110 UINT_32 bankSwizzle, UINT_32 pipeSwizzle, ADDR_TILEINFO* pTileInfo,
[all …]
Dsiaddrlib.h63 UINT_32 isSouthernIsland : 1;
64 UINT_32 isTahiti : 1;
65 UINT_32 isPitCairn : 1;
66 UINT_32 isCapeVerde : 1;
68 UINT_32 isOland : 1;
69 UINT_32 isHainan : 1;
72 UINT_32 isSeaIsland : 1;
73 UINT_32 isBonaire : 1;
74 UINT_32 isKaveri : 1;
75 UINT_32 isSpectre : 1;
[all …]
Degbaddrlib.cpp90 UINT_32 bpp = pIn->bpp; in DispatchComputeSurfaceInfo()
91 UINT_32 numSamples = pIn->numSamples; in DispatchComputeSurfaceInfo()
92 UINT_32 numFrags = ((pIn->numFrags == 0) ? numSamples : pIn->numFrags); in DispatchComputeSurfaceInfo()
93 UINT_32 pitch = pIn->width; in DispatchComputeSurfaceInfo()
94 UINT_32 height = pIn->height; in DispatchComputeSurfaceInfo()
95 UINT_32 numSlices = pIn->numSlices; in DispatchComputeSurfaceInfo()
96 UINT_32 mipLevel = pIn->mipLevel; in DispatchComputeSurfaceInfo()
101 UINT_32 padDims = 0; in DispatchComputeSurfaceInfo()
221 UINT_32 padDims ///< [in] Dimensions to padd in ComputeSurfaceInfoLinear()
224 UINT_32 expPitch = pIn->width; in ComputeSurfaceInfoLinear()
[all …]
Dciaddrlib.h76 UINT_32 uChipFamily, UINT_32 uChipRevision);
82 UINT_32 bpp, INT_32 index, INT_32 macroModeIndex, ADDR_TILEINFO* pInfo,
86 UINT_32* pMacroWidth, UINT_32* pMacroHeight,
87 UINT_32 bpp, ADDR_TILEINFO* pTileInfo) const;
90 INT_32 tileIndex, ADDR_SURFACE_FLAGS flags, UINT_32 bpp, UINT_32 numSamples,
97 UINT_32 bpp, UINT_32 pitch, UINT_32 height, UINT_32 numSamples,
116 AddrTileMode baseTileMode, UINT_32 numSlices, UINT_32* pBytesPerTile) const;
139 virtual UINT_32 HwlComputeMaxBaseAlignments() const;
141 virtual UINT_32 HwlComputeMaxMetaBaseAlignments() const;
144 AddrTileMode tileMode, UINT_32 bpp, ADDR_SURFACE_FLAGS flags,
[all …]
Dsiaddrlib.cpp139 UINT_32 SiLib::HwlGetPipes( in HwlGetPipes()
143 UINT_32 numPipes; in HwlGetPipes()
167 UINT_32 SiLib::GetPipePerSurf( in GetPipePerSurf()
171 UINT_32 numPipes = 0; in GetPipePerSurf()
216 UINT_32 log2BytesPP, ///< [in] log2 of bytes per pixel in ComputeBankEquation()
217 UINT_32 threshX, ///< [in] threshold for x channel in ComputeBankEquation()
218 UINT_32 threshY, ///< [in] threshold for y channel in ComputeBankEquation()
225 UINT_32 pipes = HwlGetPipes(pTileInfo); in ComputeBankEquation()
226 UINT_32 bankXStart = 3 + Log2(pipes) + Log2(pTileInfo->bankWidth); in ComputeBankEquation()
227 UINT_32 bankYStart = 3 + Log2(pTileInfo->bankHeight); in ComputeBankEquation()
[all …]
Dciaddrlib.cpp75 UINT_32 width) ///< Width of bits in Mask()
102 UINT_32 msb, ///< Most signicant bit in GetBits()
103 UINT_32 lsb) ///< Least signicant bit in GetBits()
126 UINT_32 msb, ///< Most signicant bit in RemoveBits()
127 UINT_32 lsb) ///< Least signicant bit in RemoveBits()
152 UINT_32 msb, ///< Most signicant bit in InsertBits()
153 UINT_32 lsb) ///< Least signicant bit in InsertBits()
219 UINT_32 tileSizePerSample = BITS_TO_BYTES(pIn->bpp * MicroTileWidth * MicroTileHeight); in HwlComputeDccInfo()
220 UINT_32 samplesPerSplit = pIn->tileInfo.tileSplitBytes / tileSizePerSample; in HwlComputeDccInfo()
224 UINT_32 numSplits = pIn->numSamples / samplesPerSplit; in HwlComputeDccInfo()
[all …]
/third_party/mesa3d/src/amd/addrlib/src/core/
Daddrlib1.h64 UINT_32 thickness : 4;
65 UINT_32 isLinear : 1;
66 UINT_32 isMicro : 1;
67 UINT_32 isMacro : 1;
68 UINT_32 isMacro3d : 1;
69 UINT_32 isPrt : 1;
70 UINT_32 isPrtNoRotation : 1;
71 UINT_32 isBankSwapped : 1;
74 static const UINT_32 Block64K = 0x10000;
75 static const UINT_32 PrtTileSize = Block64K;
[all …]
Daddrcommon.h202 static const UINT_32 MicroTileWidth = 8; ///< Micro tile width, for 1D and 2D tiling
203 static const UINT_32 MicroTileHeight = 8; ///< Micro tile height, for 1D and 2D tiling
204 static const UINT_32 ThickTileThickness = 4; ///< Micro tile thickness, for THICK modes
205 static const UINT_32 XThickTileThickness = 8; ///< Extra thick tiling thickness
206 static const UINT_32 PowerSaveTileBytes = 64; ///< Nuber of bytes per tile for power save 64
207 static const UINT_32 CmaskCacheBits = 1024; ///< Number of bits for CMASK cache
208 static const UINT_32 CmaskElemBits = 4; ///< Number of bits for CMASK element
209 static const UINT_32 HtileCacheBits = 16384; ///< Number of bits for HTILE cache 512*32
211 static const UINT_32 MicroTilePixels = MicroTileWidth * MicroTileHeight;
224 static const UINT_32 MaxSurfaceHeight = 16384;
[all …]
Daddrlib2.h54 UINT_32 isLinear : 1; // Linear
57 UINT_32 is256b : 1; // Block size is 256B
58 UINT_32 is4kb : 1; // Block size is 4KB
59 UINT_32 is64kb : 1; // Block size is 64KB
60 UINT_32 isVar : 1; // Block size is variable
62 UINT_32 isZ : 1; // Z order swizzle mode
63 UINT_32 isStd : 1; // Standard swizzle mode
64 UINT_32 isDisp : 1; // Display swizzle mode
65 UINT_32 isRot : 1; // Rotate swizzle mode
68 UINT_32 isXor : 1; // XOR after swizzle if set
[all …]
Daddrelemlib.h51 UINT_32 byteAligned : 1; ///< all components are byte aligned
52 UINT_32 exportNorm : 1; ///< components support R6xx NORM compression
53 UINT_32 floatComp : 1; ///< there is at least one floating point component
56 UINT_32 value;
164 UINT_32 compBit[4];
166 UINT_32 compStart[4];
168 UINT_32 comps; ///< Number of components
205 ADDR_FLT_32 value, UINT_32 bits, NumberType numberType, UINT_32* pResult);
208 UINT_32 numComps, UINT_32* pComps, UINT_32* pCompBits, UINT_32* pCompStart,
209 ComponentFlags properties, UINT_32 resultBits, UINT_8* pPixel);
[all …]
Daddrlib1.cpp228 UINT_32 expandX = 1; in ComputeSurfaceInfo()
229 UINT_32 expandY = 1; in ComputeSurfaceInfo()
301 UINT_32 numSamples = GetNumFragments(localIn.numSamples, localIn.numFrags); in ComputeSurfaceInfo()
474 UINT_32 numSamples = GetNumFragments(pIn->numSamples, pIn->numFrags); in ComputeSurfaceAddrFromCoord()
507 pOut->prtBlockIndex = static_cast<UINT_32>(pOut->addr / (64 * 1024)); in ComputeSurfaceAddrFromCoord()
554 UINT_32 numSamples = GetNumFragments(pIn->numSamples, pIn->numFrags); in ComputeSurfaceCoordFromAddr()
1226 UINT_32 Lib::Thickness( in Thickness()
1289 const UINT_32 sliceSize = pIn->pitch * pIn->height * 4 / (8 * 8); in ComputeHtileInfo()
1290 …const UINT_32 align = HwlGetPipes(pIn->pTileInfo) * pIn->pTileInfo->banks * m_pipeInterleaveBy… in ComputeHtileInfo()
1294 const UINT_32 surfBytes = (sliceSize * pIn->numSlices); in ComputeHtileInfo()
[all …]
Dcoord.cpp53 UINT_32 Coordinate::ison(const UINT_32 *coords) const in ison()
55 UINT_32 bit = static_cast<UINT_32>(1ull << static_cast<UINT_32>(ord)); in ison()
151 UINT_32 i; in add()
161 for (UINT_32 j = num_coords; j > i; j--) in add()
180 for (UINT_32 i = 0; i < cl.num_coords; i++) in add()
189 for (UINT_32 i = 0; i < num_coords; i++) in remove()
208 for (UINT_32 i = 0; i < num_coords; i++) in Exists()
222 for (UINT_32 i = 0; i < num_coords; i++) in copyto()
228 UINT_32 CoordTerm::getsize() in getsize()
233 UINT_32 CoordTerm::getxor(const UINT_32 *coords) const in getxor()
[all …]
Dcoord.h68 UINT_32 ison(const UINT_32 *coords) const;
95 UINT_32 getsize();
96 UINT_32 getxor(const UINT_32 *coords) const;
99 UINT_32 Filter(INT_8 f, Coordinate& co, UINT_32 start = 0, enum Dim axis = NUM_DIMS);
100 Coordinate& operator[](UINT_32 i);
103 BOOL_32 exceedRange(const UINT_32 *ranges);
106 static const UINT_32 MaxCoords = 8;
107 UINT_32 num_coords;
117 VOID resize(UINT_32 n);
118 UINT_32 getsize();
[all …]
Daddrlib.h263 UINT_32 GetVersion() in GetVersion()
288 UINT_32 GetBpe(AddrFormat format) const;
295 virtual UINT_32 HwlComputeMaxBaseAlignments() const = 0;
298 virtual UINT_32 HwlComputeMaxMetaBaseAlignments() const in HwlComputeMaxMetaBaseAlignments()
305 VOID ValidBaseAlignments(UINT_32 alignment) const in ValidBaseAlignments()
312 VOID ValidMetaBaseAlignments(UINT_32 metaAlignment) const in ValidMetaBaseAlignments()
326 virtual ChipFamily HwlConvertChipFamily(UINT_32 uChipFamily, UINT_32 uChipRevision) = 0;
329 virtual UINT_32 HwlGetEquationTableInfo(const ADDR_EQUATION** ppEquationTable) const in HwlGetEquationTableInfo()
339 static UINT_32 Bits2Number(UINT_32 bitNum, ...);
341 static UINT_32 GetNumFragments(UINT_32 numSamples, UINT_32 numFrags) in GetNumFragments()
[all …]
Daddrelemlib.cpp135 UINT_32 bits, ///< [in] nubmer of bits in value in Flt32sToInt32s()
137 UINT_32* pResult) ///< [out] Int32 value in Flt32sToInt32s()
140 UINT_32 uscale; in Flt32sToInt32s()
141 UINT_32 sign; in Flt32sToInt32s()
209 UINT_32 altShift; in Flt32sToInt32s()
210 UINT_32 mask = (1 << bits) - 1; in Flt32sToInt32s()
211 UINT_32 half = 1 << (bits - 1); in Flt32sToInt32s()
212 UINT_32 mant24 = (value.i & 0x7FFFFF) + 0x800000; in Flt32sToInt32s()
215 UINT_32 exp8 = value.i >> 23; in Flt32sToInt32s()
216 UINT_32 shift = 126 - exp8 + 24 - bits; in Flt32sToInt32s()
[all …]
Daddrlib2.cpp187 UINT_32 expandX = 1; in ComputeSurfaceInfo()
188 UINT_32 expandY = 1; in ComputeSurfaceInfo()
214 UINT_32 basePitch = 0; in ComputeSurfaceInfo()
270 UINT_32 pixelBits = pOut->pixelBits; in ComputeSurfaceInfo()
288 for (UINT_32 i = 0; i < localIn.numMipLevels; i++) in ComputeSurfaceInfo()
388 pOut->prtBlockIndex = static_cast<UINT_32>(pOut->addr / (64 * 1024)); in ComputeSurfaceAddrFromCoord()
715 pOut->fmaskBytes = static_cast<UINT_32>(localOut.surfSize); in ComputeFmaskInfo()
716 pOut->sliceSize = static_cast<UINT_32>(localOut.sliceSize); in ComputeFmaskInfo()
994 UINT_32 pipeBankXor, in ExtractPipeBankXor()
995 UINT_32 bankBits, in ExtractPipeBankXor()
[all …]
Daddrlib.cpp39 UINT_32 div64_32(UINT_64 n, UINT_32 base) in div64_32()
44 UINT_32 high = rem >> 32; in div64_32()
76 UINT_32 __umoddi3(UINT_64 n, UINT_32 base) in __umoddi3()
328 UINT_32 uChipFamily, ///< [in] chip family defined in atiih.h in SetChipFamily()
329 UINT_32 uChipRevision) ///< [in] chip revision defined in "asic_family"_id.h in SetChipFamily()
351 UINT_32 minPitchAlignPixels) ///< [in] minmum pitch alignment in pixels in SetMinPitchAlignPixels()
481 UINT_32 Lib::Bits2Number( in Bits2Number()
482 UINT_32 bitNum, ///< [in] how many bits in Bits2Number()
485 UINT_32 number = 0; in Bits2Number()
486 UINT_32 i; in Bits2Number()
[all …]
/third_party/mesa3d/src/amd/addrlib/src/gfx9/
Dgfx9addrlib.h54 UINT_32 isArcticIsland : 1;
55 UINT_32 isVega10 : 1;
56 UINT_32 isRaven : 1;
57 UINT_32 isVega12 : 1;
58 UINT_32 isVega20 : 1;
59 UINT_32 reserved0 : 27;
62 UINT_32 isDce12 : 1;
63 UINT_32 isDcn1 : 1;
64 UINT_32 isDcn2 : 1;
65 UINT_32 reserved1 : 29;
[all …]
Dgfx9addrlib.cpp112 const UINT_32 Gfx9Lib::MipTailOffset256B[] = {2048, 1024, 512, 256, 128, 64, 32, 16, 8, 6, 5, 4, 3,…
165 UINT_32 numPipeTotal = GetPipeNumForMetaAddressing(pIn->hTileFlags.pipeAligned, in HwlComputeHtileInfo()
168 UINT_32 numRbTotal = pIn->hTileFlags.rbAligned ? m_se * m_rbPerSe : 1; in HwlComputeHtileInfo()
170 UINT_32 numCompressBlkPerMetaBlk, numCompressBlkPerMetaBlkLog2; in HwlComputeHtileInfo()
191 UINT_32 totalAmpBits = numCompressBlkPerMetaBlkLog2; in HwlComputeHtileInfo()
192 UINT_32 widthAmp = (pIn->numMipLevels > 1) ? (totalAmpBits >> 1) : RoundHalf(totalAmpBits); in HwlComputeHtileInfo()
193 UINT_32 heightAmp = totalAmpBits - widthAmp; in HwlComputeHtileInfo()
199 for (UINT_32 index = 0; index < numCompressBlkPerMetaBlkLog2; index++) in HwlComputeHtileInfo()
214 UINT_32 numMetaBlkX; in HwlComputeHtileInfo()
215 UINT_32 numMetaBlkY; in HwlComputeHtileInfo()
[all …]
/third_party/mesa3d/src/amd/addrlib/src/gfx10/
Dgfx10addrlib.h54 UINT_32 reserved1 : 32;
57 UINT_32 isDcn20 : 1; // If using DCN2.0
58 UINT_32 supportRbPlus : 1;
59 UINT_32 dsMipmapHtileFix : 1;
60 UINT_32 dccUnsup3DSwDis : 1;
61 UINT_32 : 3;
62 UINT_32 reserved2 : 25;
78 const UINT_32 Gfx10LinearSwModeMask = (1u << ADDR_SW_LINEAR);
80 const UINT_32 Gfx10Blk256BSwModeMask = (1u << ADDR_SW_256B_S) |
83 const UINT_32 Gfx10Blk4KBSwModeMask = (1u << ADDR_SW_4KB_S) |
[all …]
Dgfx10addrlib.cpp176 const UINT_32 metaBlkSize = GetMetaBlkSize(Gfx10DataDepthStencil, in HwlComputeHtileInfo()
194 UINT_32 offset = (pIn->firstMipIdInTail == pIn->numMipLevels) ? 0 : metaBlkSize; in HwlComputeHtileInfo()
198 UINT_32 mipWidth, mipHeight; in HwlComputeHtileInfo()
205 const UINT_32 pitchInM = mipWidth / metaBlk.w; in HwlComputeHtileInfo()
206 const UINT_32 heightInM = mipHeight / metaBlk.h; in HwlComputeHtileInfo()
207 const UINT_32 mipSliceSize = pitchInM * heightInM * metaBlkSize; in HwlComputeHtileInfo()
225 for (UINT_32 i = pIn->firstMipIdInTail; i < pIn->numMipLevels; i++) in HwlComputeHtileInfo()
240 const UINT_32 pitchInM = pOut->pitch / metaBlk.w; in HwlComputeHtileInfo()
241 const UINT_32 heightInM = pOut->height / metaBlk.h; in HwlComputeHtileInfo()
257 const UINT_32 index = m_xmaskBaseIndex; in HwlComputeHtileInfo()
[all …]
/third_party/mesa3d/src/amd/addrlib/src/gfx11/
Dgfx11addrlib.h54 UINT_32 reserved1 : 32;
57 UINT_32 reserved2 : 32;
72 const UINT_32 Gfx11LinearSwModeMask = (1u << ADDR_SW_LINEAR);
74 const UINT_32 Gfx11Blk256BSwModeMask = (1u << ADDR_SW_256B_D);
76 const UINT_32 Gfx11Blk4KBSwModeMask = (1u << ADDR_SW_4KB_S) |
81 const UINT_32 Gfx11Blk64KBSwModeMask = (1u << ADDR_SW_64KB_S) |
90 const UINT_32 Gfx11Blk256KBSwModeMask = (1u << ADDR_SW_256KB_Z_X) |
95 const UINT_32 Gfx11ZSwModeMask = (1u << ADDR_SW_64KB_Z_X) |
98 const UINT_32 Gfx11StandardSwModeMask = (1u << ADDR_SW_4KB_S) |
105 const UINT_32 Gfx11DisplaySwModeMask = (1u << ADDR_SW_256B_D) |
[all …]
Dgfx11addrlib.cpp177 const UINT_32 metaBlkSize = GetMetaBlkSize(Gfx11DataDepthStencil, in HwlComputeHtileInfo()
195 UINT_32 offset = (pIn->firstMipIdInTail == pIn->numMipLevels) ? 0 : metaBlkSize; in HwlComputeHtileInfo()
199 UINT_32 mipWidth, mipHeight; in HwlComputeHtileInfo()
206 const UINT_32 pitchInM = mipWidth / metaBlk.w; in HwlComputeHtileInfo()
207 const UINT_32 heightInM = mipHeight / metaBlk.h; in HwlComputeHtileInfo()
208 const UINT_32 mipSliceSize = pitchInM * heightInM * metaBlkSize; in HwlComputeHtileInfo()
226 for (UINT_32 i = pIn->firstMipIdInTail; i < pIn->numMipLevels; i++) in HwlComputeHtileInfo()
241 const UINT_32 pitchInM = pOut->pitch / metaBlk.w; in HwlComputeHtileInfo()
242 const UINT_32 heightInM = pOut->height / metaBlk.h; in HwlComputeHtileInfo()
258 const UINT_32 index = m_htileBaseIndex; in HwlComputeHtileInfo()
[all …]

12