Home
last modified time | relevance | path

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

/external/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.h639 #ifndef UINT_32
640 #define UINT_32 unsigned int macro
741 UINT_32 u;
/external/mesa3d/src/amd/addrlib/src/r800/
Degbaddrlib.h46 UINT_32 xBits : 3;
47 UINT_32 yBits : 4;
49 UINT_32 xBit3 : 1;
50 UINT_32 xBit4 : 1;
51 UINT_32 xBit5 : 1;
52 UINT_32 yBit3 : 1;
53 UINT_32 yBit4 : 1;
54 UINT_32 yBit5 : 1;
55 UINT_32 yBit6 : 1;
111 UINT_32 bankSwizzle, UINT_32 pipeSwizzle, ADDR_TILEINFO* pTileInfo,
[all …]
Dsiaddrlib.h64 UINT_32 isSouthernIsland : 1;
65 UINT_32 isTahiti : 1;
66 UINT_32 isPitCairn : 1;
67 UINT_32 isCapeVerde : 1;
69 UINT_32 isOland : 1;
70 UINT_32 isHainan : 1;
73 UINT_32 isSeaIsland : 1;
74 UINT_32 isBonaire : 1;
75 UINT_32 isKaveri : 1;
76 UINT_32 isSpectre : 1;
[all …]
Degbaddrlib.cpp91 UINT_32 bpp = pIn->bpp; in DispatchComputeSurfaceInfo()
92 UINT_32 numSamples = pIn->numSamples; in DispatchComputeSurfaceInfo()
93 UINT_32 numFrags = ((pIn->numFrags == 0) ? numSamples : pIn->numFrags); in DispatchComputeSurfaceInfo()
94 UINT_32 pitch = pIn->width; in DispatchComputeSurfaceInfo()
95 UINT_32 height = pIn->height; in DispatchComputeSurfaceInfo()
96 UINT_32 numSlices = pIn->numSlices; in DispatchComputeSurfaceInfo()
97 UINT_32 mipLevel = pIn->mipLevel; in DispatchComputeSurfaceInfo()
102 UINT_32 padDims = 0; in DispatchComputeSurfaceInfo()
222 UINT_32 padDims ///< [in] Dimensions to padd in ComputeSurfaceInfoLinear()
225 UINT_32 expPitch = pIn->width; in ComputeSurfaceInfoLinear()
[all …]
Dciaddrlib.h77 UINT_32 uChipFamily, UINT_32 uChipRevision);
83 UINT_32 bpp, INT_32 index, INT_32 macroModeIndex, ADDR_TILEINFO* pInfo,
87 UINT_32* pMacroWidth, UINT_32* pMacroHeight,
88 UINT_32 bpp, ADDR_TILEINFO* pTileInfo) const;
91 INT_32 tileIndex, ADDR_SURFACE_FLAGS flags, UINT_32 bpp, UINT_32 numSamples,
98 UINT_32 bpp, UINT_32 pitch, UINT_32 height, UINT_32 numSamples,
117 AddrTileMode baseTileMode, UINT_32 numSlices, UINT_32* pBytesPerTile) const;
140 virtual UINT_32 HwlComputeMaxBaseAlignments() const;
142 virtual UINT_32 HwlComputeMaxMetaBaseAlignments() const;
145 AddrTileMode tileMode, UINT_32 bpp, ADDR_SURFACE_FLAGS flags,
[all …]
Dsiaddrlib.cpp140 UINT_32 SiLib::HwlGetPipes( in HwlGetPipes()
144 UINT_32 numPipes; in HwlGetPipes()
168 UINT_32 SiLib::GetPipePerSurf( in GetPipePerSurf()
172 UINT_32 numPipes = 0; in GetPipePerSurf()
217 UINT_32 log2BytesPP, ///< [in] log2 of bytes per pixel in ComputeBankEquation()
218 UINT_32 threshX, ///< [in] threshold for x channel in ComputeBankEquation()
219 UINT_32 threshY, ///< [in] threshold for y channel in ComputeBankEquation()
226 UINT_32 pipes = HwlGetPipes(pTileInfo); in ComputeBankEquation()
227 UINT_32 bankXStart = 3 + Log2(pipes) + Log2(pTileInfo->bankWidth); in ComputeBankEquation()
228 UINT_32 bankYStart = 3 + Log2(pTileInfo->bankHeight); in ComputeBankEquation()
[all …]
Dciaddrlib.cpp76 UINT_32 width) ///< Width of bits in Mask()
103 UINT_32 msb, ///< Most signicant bit in GetBits()
104 UINT_32 lsb) ///< Least signicant bit in GetBits()
127 UINT_32 msb, ///< Most signicant bit in RemoveBits()
128 UINT_32 lsb) ///< Least signicant bit in RemoveBits()
153 UINT_32 msb, ///< Most signicant bit in InsertBits()
154 UINT_32 lsb) ///< Least signicant bit in InsertBits()
220 UINT_32 tileSizePerSample = BITS_TO_BYTES(pIn->bpp * MicroTileWidth * MicroTileHeight); in HwlComputeDccInfo()
221 UINT_32 samplesPerSplit = pIn->tileInfo.tileSplitBytes / tileSizePerSample; in HwlComputeDccInfo()
225 UINT_32 numSplits = pIn->numSamples / samplesPerSplit; in HwlComputeDccInfo()
[all …]
/external/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.h206 static const UINT_32 MicroTileWidth = 8; ///< Micro tile width, for 1D and 2D tiling
207 static const UINT_32 MicroTileHeight = 8; ///< Micro tile height, for 1D and 2D tiling
208 static const UINT_32 ThickTileThickness = 4; ///< Micro tile thickness, for THICK modes
209 static const UINT_32 XThickTileThickness = 8; ///< Extra thick tiling thickness
210 static const UINT_32 PowerSaveTileBytes = 64; ///< Nuber of bytes per tile for power save 64
211 static const UINT_32 CmaskCacheBits = 1024; ///< Number of bits for CMASK cache
212 static const UINT_32 CmaskElemBits = 4; ///< Number of bits for CMASK element
213 static const UINT_32 HtileCacheBits = 16384; ///< Number of bits for HTILE cache 512*32
215 static const UINT_32 MicroTilePixels = MicroTileWidth * MicroTileHeight;
228 static const UINT_32 MaxSurfaceHeight = 16384;
[all …]
Daddrlib2.h52 UINT_32 isLinear : 1; // Linear
55 UINT_32 is256b : 1; // Block size is 256B
56 UINT_32 is4kb : 1; // Block size is 4KB
57 UINT_32 is64kb : 1; // Block size is 64KB
58 UINT_32 isVar : 1; // Block size is variable
60 UINT_32 isZ : 1; // Z order swizzle mode
61 UINT_32 isStd : 1; // Standard swizzle mode
62 UINT_32 isDisp : 1; // Display swizzle mode
63 UINT_32 isRot : 1; // Rotate swizzle mode
66 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 …]
Dcoord.h54 UINT_32 ison(const UINT_32 *coords) const;
81 UINT_32 getsize();
82 UINT_32 getxor(const UINT_32 *coords) const;
85 UINT_32 Filter(INT_8 f, Coordinate& co, UINT_32 start = 0, enum Dim axis = NUM_DIMS);
86 Coordinate& operator[](UINT_32 i);
89 BOOL_32 exceedRange(const UINT_32 *ranges);
92 static const UINT_32 MaxCoords = 8;
93 UINT_32 num_coords;
103 VOID resize(UINT_32 n);
104 UINT_32 getsize();
[all …]
Daddrlib1.cpp229 UINT_32 expandX = 1; in ComputeSurfaceInfo()
230 UINT_32 expandY = 1; in ComputeSurfaceInfo()
302 UINT_32 numSamples = GetNumFragments(localIn.numSamples, localIn.numFrags); in ComputeSurfaceInfo()
475 UINT_32 numSamples = GetNumFragments(pIn->numSamples, pIn->numFrags); in ComputeSurfaceAddrFromCoord()
508 pOut->prtBlockIndex = static_cast<UINT_32>(pOut->addr / (64 * 1024)); in ComputeSurfaceAddrFromCoord()
555 UINT_32 numSamples = GetNumFragments(pIn->numSamples, pIn->numFrags); in ComputeSurfaceCoordFromAddr()
1227 UINT_32 Lib::Thickness( in Thickness()
1290 const UINT_32 sliceSize = pIn->pitch * pIn->height * 4 / (8 * 8); in ComputeHtileInfo()
1291 …const UINT_32 align = HwlGetPipes(pIn->pTileInfo) * pIn->pTileInfo->banks * m_pipeInterleaveBy… in ComputeHtileInfo()
1295 const UINT_32 surfBytes = (sliceSize * pIn->numSlices); in ComputeHtileInfo()
[all …]
Dcoord.cpp54 UINT_32 Coordinate::ison(const UINT_32 *coords) const in ison()
56 UINT_32 bit = static_cast<UINT_32>(1ull << static_cast<UINT_32>(ord)); in ison()
152 UINT_32 i; in add()
162 for (UINT_32 j = num_coords; j > i; j--) in add()
181 for (UINT_32 i = 0; i < cl.num_coords; i++) in add()
190 for (UINT_32 i = 0; i < num_coords; i++) in remove()
209 for (UINT_32 i = 0; i < num_coords; i++) in Exists()
223 for (UINT_32 i = 0; i < num_coords; i++) in copyto()
229 UINT_32 CoordTerm::getsize() in getsize()
234 UINT_32 CoordTerm::getxor(const UINT_32 *coords) const in getxor()
[all …]
Daddrlib.h264 UINT_32 GetVersion() in GetVersion()
289 UINT_32 GetBpe(AddrFormat format) const;
296 virtual UINT_32 HwlComputeMaxBaseAlignments() const = 0;
299 virtual UINT_32 HwlComputeMaxMetaBaseAlignments() const in HwlComputeMaxMetaBaseAlignments()
306 VOID ValidBaseAlignments(UINT_32 alignment) const in ValidBaseAlignments()
313 VOID ValidMetaBaseAlignments(UINT_32 metaAlignment) const in ValidMetaBaseAlignments()
327 virtual ChipFamily HwlConvertChipFamily(UINT_32 uChipFamily, UINT_32 uChipRevision) = 0;
330 virtual UINT_32 HwlGetEquationTableInfo(const ADDR_EQUATION** ppEquationTable) const in HwlGetEquationTableInfo()
340 static UINT_32 Bits2Number(UINT_32 bitNum, ...);
342 static UINT_32 GetNumFragments(UINT_32 numSamples, UINT_32 numFrags) in GetNumFragments()
[all …]
Daddrelemlib.cpp136 UINT_32 bits, ///< [in] nubmer of bits in value in Flt32sToInt32s()
138 UINT_32* pResult) ///< [out] Int32 value in Flt32sToInt32s()
141 UINT_32 uscale; in Flt32sToInt32s()
142 UINT_32 sign; in Flt32sToInt32s()
210 UINT_32 altShift; in Flt32sToInt32s()
211 UINT_32 mask = (1 << bits) - 1; in Flt32sToInt32s()
212 UINT_32 half = 1 << (bits - 1); in Flt32sToInt32s()
213 UINT_32 mant24 = (value.i & 0x7FFFFF) + 0x800000; in Flt32sToInt32s()
216 UINT_32 exp8 = value.i >> 23; in Flt32sToInt32s()
217 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()
385 pOut->prtBlockIndex = static_cast<UINT_32>(pOut->addr / (64 * 1024)); in ComputeSurfaceAddrFromCoord()
712 pOut->fmaskBytes = static_cast<UINT_32>(localOut.surfSize); in ComputeFmaskInfo()
713 pOut->sliceSize = static_cast<UINT_32>(localOut.sliceSize); in ComputeFmaskInfo()
955 UINT_32 pipeBankXor, in ExtractPipeBankXor()
956 UINT_32 bankBits, in ExtractPipeBankXor()
[all …]
Daddrlib.cpp40 UINT_32 div64_32(UINT_64 n, UINT_32 base) in div64_32()
45 UINT_32 high = rem >> 32; in div64_32()
77 UINT_32 __umoddi3(UINT_64 n, UINT_32 base) in __umoddi3()
318 UINT_32 uChipFamily, ///< [in] chip family defined in atiih.h in SetChipFamily()
319 UINT_32 uChipRevision) ///< [in] chip revision defined in "asic_family"_id.h in SetChipFamily()
341 UINT_32 minPitchAlignPixels) ///< [in] minmum pitch alignment in pixels in SetMinPitchAlignPixels()
471 UINT_32 Lib::Bits2Number( in Bits2Number()
472 UINT_32 bitNum, ///< [in] how many bits in Bits2Number()
475 UINT_32 number = 0; in Bits2Number()
476 UINT_32 i; in Bits2Number()
[all …]
Daddrobject.cpp101 allocInput.sizeInBytes = static_cast<UINT_32>(objSize); in ClientAlloc()
/external/mesa3d/src/amd/addrlib/src/gfx9/
Dgfx9addrlib.h55 UINT_32 isArcticIsland : 1;
56 UINT_32 isVega10 : 1;
57 UINT_32 isRaven : 1;
58 UINT_32 isVega12 : 1;
59 UINT_32 isVega20 : 1;
60 UINT_32 reserved0 : 27;
63 UINT_32 isDce12 : 1;
64 UINT_32 isDcn1 : 1;
65 UINT_32 isDcn2 : 1;
66 UINT_32 reserved1 : 29;
[all …]
Dgfx9addrlib.cpp113 const UINT_32 Gfx9Lib::MipTailOffset256B[] = {2048, 1024, 512, 256, 128, 64, 32, 16, 8, 6, 5, 4, 3,…
166 UINT_32 numPipeTotal = GetPipeNumForMetaAddressing(pIn->hTileFlags.pipeAligned, in HwlComputeHtileInfo()
169 UINT_32 numRbTotal = pIn->hTileFlags.rbAligned ? m_se * m_rbPerSe : 1; in HwlComputeHtileInfo()
171 UINT_32 numCompressBlkPerMetaBlk, numCompressBlkPerMetaBlkLog2; in HwlComputeHtileInfo()
192 UINT_32 totalAmpBits = numCompressBlkPerMetaBlkLog2; in HwlComputeHtileInfo()
193 UINT_32 widthAmp = (pIn->numMipLevels > 1) ? (totalAmpBits >> 1) : RoundHalf(totalAmpBits); in HwlComputeHtileInfo()
194 UINT_32 heightAmp = totalAmpBits - widthAmp; in HwlComputeHtileInfo()
200 for (UINT_32 index = 0; index < numCompressBlkPerMetaBlkLog2; index++) in HwlComputeHtileInfo()
215 UINT_32 numMetaBlkX; in HwlComputeHtileInfo()
216 UINT_32 numMetaBlkY; in HwlComputeHtileInfo()
[all …]
/external/mesa3d/src/amd/addrlib/src/gfx10/
Dgfx10addrlib.h55 UINT_32 reserved1 : 32;
58 UINT_32 isDcn20 : 1;
59 UINT_32 supportRbPlus : 1;
60 UINT_32 dsMipmapHtileFix : 1;
61 UINT_32 dccUnsup3DSwDis : 1;
62 UINT_32 : 2;
63 UINT_32 reserved2 : 26;
79 const UINT_32 Gfx10LinearSwModeMask = (1u << ADDR_SW_LINEAR);
81 const UINT_32 Gfx10Blk256BSwModeMask = (1u << ADDR_SW_256B_S) |
84 const UINT_32 Gfx10Blk4KBSwModeMask = (1u << ADDR_SW_4KB_S) |
[all …]
Dgfx10addrlib.cpp177 const UINT_32 metaBlkSize = GetMetaBlkSize(Gfx10DataDepthStencil, 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()
288 const UINT_32 metaBlkSize = GetMetaBlkSize(Gfx10DataFmask, in HwlComputeCmaskInfo()
[all …]
/external/mesa3d/src/amd/addrlib/src/
Daddrinterface.cpp563 UINT_32 ADDR_API AddrGetVersion(ADDR_HANDLE hLib) in AddrGetVersion()
565 UINT_32 version = 0; in AddrGetVersion()
864 UINT_32 ADDR_API ElemSize( in ElemSize()
868 UINT_32 bpe = 0; in ElemSize()
1748 UINT_32 bpp, in Addr2IsValidDisplaySwizzleMode()