Home
last modified time | relevance | path

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

/external/mesa3d/src/amd/addrlib/
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.h623 #ifndef UINT_32
624 #define UINT_32 unsigned int macro
725 UINT_32 u;
Daddrinterface.cpp562 UINT_32 ADDR_API AddrGetVersion(ADDR_HANDLE hLib) in AddrGetVersion()
564 UINT_32 version = 0; in AddrGetVersion()
1689 UINT_32 bpp, in Addr2IsValidDisplaySwizzleMode()
/external/mesa3d/src/amd/addrlib/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.cpp92 UINT_32 bpp = pIn->bpp; in DispatchComputeSurfaceInfo()
93 UINT_32 numSamples = pIn->numSamples; in DispatchComputeSurfaceInfo()
94 UINT_32 numFrags = ((pIn->numFrags == 0) ? numSamples : pIn->numFrags); in DispatchComputeSurfaceInfo()
95 UINT_32 pitch = pIn->width; in DispatchComputeSurfaceInfo()
96 UINT_32 height = pIn->height; in DispatchComputeSurfaceInfo()
97 UINT_32 numSlices = pIn->numSlices; in DispatchComputeSurfaceInfo()
98 UINT_32 mipLevel = pIn->mipLevel; in DispatchComputeSurfaceInfo()
104 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.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;
143 AddrTileMode tileMode, UINT_32 bpp, ADDR_SURFACE_FLAGS flags,
144 UINT_32 numSamples, ADDR_TILEINFO* pTileInfo, UINT_32 mipLevel,
145 UINT_32* pPitch, UINT_32 *PitchAlign, UINT_32 height, UINT_32 heightAlign) const;
[all …]
Dsiaddrlib.cpp141 UINT_32 SiLib::HwlGetPipes( in HwlGetPipes()
145 UINT_32 numPipes; in HwlGetPipes()
169 UINT_32 SiLib::GetPipePerSurf( in GetPipePerSurf()
173 UINT_32 numPipes = 0; in GetPipePerSurf()
218 UINT_32 log2BytesPP, ///< [in] log2 of bytes per pixel in ComputeBankEquation()
219 UINT_32 threshX, ///< [in] threshold for x channel in ComputeBankEquation()
220 UINT_32 threshY, ///< [in] threshold for y channel in ComputeBankEquation()
227 UINT_32 pipes = HwlGetPipes(pTileInfo); in ComputeBankEquation()
228 UINT_32 bankXStart = 3 + Log2(pipes) + Log2(pTileInfo->bankWidth); in ComputeBankEquation()
229 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()
221 UINT_32 tileSizePerSample = BITS_TO_BYTES(pIn->bpp * MicroTileWidth * MicroTileHeight); in HwlComputeDccInfo()
222 UINT_32 samplesPerSplit = pIn->tileInfo.tileSplitBytes / tileSizePerSample; in HwlComputeDccInfo()
226 UINT_32 numSplits = pIn->numSamples / samplesPerSplit; in HwlComputeDccInfo()
[all …]
/external/mesa3d/src/amd/addrlib/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.h167 static const UINT_32 MicroTileWidth = 8; ///< Micro tile width, for 1D and 2D tiling
168 static const UINT_32 MicroTileHeight = 8; ///< Micro tile height, for 1D and 2D tiling
169 static const UINT_32 ThickTileThickness = 4; ///< Micro tile thickness, for THICK modes
170 static const UINT_32 XThickTileThickness = 8; ///< Extra thick tiling thickness
171 static const UINT_32 PowerSaveTileBytes = 64; ///< Nuber of bytes per tile for power save 64
172 static const UINT_32 CmaskCacheBits = 1024; ///< Number of bits for CMASK cache
173 static const UINT_32 CmaskElemBits = 4; ///< Number of bits for CMASK element
174 static const UINT_32 HtileCacheBits = 16384; ///< Number of bits for HTILE cache 512*32
176 static const UINT_32 MicroTilePixels = MicroTileWidth * MicroTileHeight;
189 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 …]
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()
473 UINT_32 numSamples = GetNumFragments(pIn->numSamples, pIn->numFrags); in ComputeSurfaceAddrFromCoord()
506 pOut->prtBlockIndex = static_cast<UINT_32>(pOut->addr / (64 * 1024)); in ComputeSurfaceAddrFromCoord()
553 UINT_32 numSamples = GetNumFragments(pIn->numSamples, pIn->numFrags); in ComputeSurfaceCoordFromAddr()
1223 UINT_32 Lib::Thickness( in Thickness()
1286 const UINT_32 sliceSize = pIn->pitch * pIn->height * 4 / (8 * 8); in ComputeHtileInfo()
1287 …const UINT_32 align = HwlGetPipes(pIn->pTileInfo) * pIn->pTileInfo->banks * m_pipeInterleaveBy… in ComputeHtileInfo()
1291 const UINT_32 surfBytes = (sliceSize * pIn->numSlices); in ComputeHtileInfo()
[all …]
Daddrlib.h264 UINT_32 GetVersion() in GetVersion()
301 virtual ChipFamily HwlConvertChipFamily(UINT_32 uChipFamily, UINT_32 uChipRevision) = 0;
304 virtual UINT_32 HwlGetEquationTableInfo(const ADDR_EQUATION** ppEquationTable) const in HwlGetEquationTableInfo()
314 static UINT_32 Bits2Number(UINT_32 bitNum, ...);
316 static UINT_32 GetNumFragments(UINT_32 numSamples, UINT_32 numFrags) in GetNumFragments()
328 UINT_32 GetFillSizeFieldsFlags() const in GetFillSizeFieldsFlags()
340 VOID SetChipFamily(UINT_32 uChipFamily, UINT_32 uChipRevision);
342 VOID SetMinPitchAlignPixels(UINT_32 minPitchAlignPixels);
349 UINT_32 m_chipRevision; ///< Revision id from xxx_id.h
351 UINT_32 m_version; ///< Current version
[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.cpp165 UINT_32 expandX = 1; in ComputeSurfaceInfo()
166 UINT_32 expandY = 1; in ComputeSurfaceInfo()
192 UINT_32 basePitch = 0; in ComputeSurfaceInfo()
248 UINT_32 pixelBits = pOut->pixelBits; in ComputeSurfaceInfo()
266 for (UINT_32 i = 0; i < localIn.numMipLevels; i++) in ComputeSurfaceInfo()
361 pOut->prtBlockIndex = static_cast<UINT_32>(pOut->addr / (64 * 1024)); in ComputeSurfaceAddrFromCoord()
684 pOut->fmaskBytes = static_cast<UINT_32>(localOut.surfSize); in ComputeFmaskInfo()
685 pOut->sliceSize = static_cast<UINT_32>(localOut.sliceSize); in ComputeFmaskInfo()
918 UINT_32 pipeBankXor, in ExtractPipeBankXor()
919 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()
311 UINT_32 uChipFamily, ///< [in] chip family defined in atiih.h in SetChipFamily()
312 UINT_32 uChipRevision) ///< [in] chip revision defined in "asic_family"_id.h in SetChipFamily()
334 UINT_32 minPitchAlignPixels) ///< [in] minmum pitch alignment in pixels in SetMinPitchAlignPixels()
400 UINT_32 Lib::Bits2Number( in Bits2Number()
401 UINT_32 bitNum, ///< [in] how many bits in Bits2Number()
404 UINT_32 number = 0; in Bits2Number()
405 UINT_32 i; in Bits2Number()
[all …]
Daddrobject.cpp101 allocInput.sizeInBytes = static_cast<UINT_32>(objSize); in ClientAlloc()
/external/mesa3d/src/amd/addrlib/gfx9/
Dgfx9addrlib.h55 UINT_32 isArcticIsland : 1;
56 UINT_32 isVega10 : 1;
57 UINT_32 isRaven : 1;
58 UINT_32 reserved0 : 29;
61 UINT_32 isDce12 : 1;
62 UINT_32 isDcn1 : 1;
63 UINT_32 reserved1 : 29;
66 UINT_32 metaBaseAlignFix : 1;
67 UINT_32 depthPipeXorDisable : 1;
68 UINT_32 htileAlignFix : 1;
[all …]
Dcoord.h39 UINT_32 ison(UINT_32 x, UINT_32 y, UINT_32 z = 0, UINT_32 s = 0, UINT_32 m = 0) const;
66 UINT_32 getsize();
67 UINT_32 getxor(UINT_32 x, UINT_32 y, UINT_32 z = 0, UINT_32 s = 0, UINT_32 m = 0) const;
70 UINT_32 Filter(INT_8 f, Coordinate& co, UINT_32 start = 0, INT_8 axis = '\0');
71 Coordinate& operator[](UINT_32 i);
74 BOOL_32 exceedRange(UINT_32 xRange, UINT_32 yRange = 0, UINT_32 zRange = 0, UINT_32 sRange = 0);
77 static const UINT_32 MaxCoords = 8;
78 UINT_32 num_coords;
88 VOID resize(UINT_32 n);
89 UINT_32 getsize();
[all …]
Dcoord.cpp48 UINT_32 Coordinate::ison(UINT_32 x, UINT_32 y, UINT_32 z, UINT_32 s, UINT_32 m) const in ison()
50 UINT_32 bit = static_cast<UINT_32>(1ull << static_cast<UINT_32>(ord)); in ison()
51 UINT_32 out = 0; in ison()
155 UINT_32 i; in add()
165 for (UINT_32 j = num_coords; j > i; j--) in add()
184 for (UINT_32 i = 0; i < cl.num_coords; i++) in add()
193 for (UINT_32 i = 0; i < num_coords; i++) in remove()
212 for (UINT_32 i = 0; i < num_coords; i++) in Exists()
226 for (UINT_32 i = 0; i < num_coords; i++) in copyto()
232 UINT_32 CoordTerm::getsize() in getsize()
[all …]
Dgfx9addrlib.cpp113 const UINT_32 Gfx9Lib::MipTailOffset256B[] = {2048, 1024, 512, 256, 128, 64, 32, 16,
167 UINT_32 numPipeTotal = GetPipeNumForMetaAddressing(pIn->hTileFlags.pipeAligned, in HwlComputeHtileInfo()
170 UINT_32 numRbTotal = pIn->hTileFlags.rbAligned ? m_se * m_rbPerSe : 1; in HwlComputeHtileInfo()
172 UINT_32 numCompressBlkPerMetaBlk, numCompressBlkPerMetaBlkLog2; in HwlComputeHtileInfo()
193 UINT_32 totalAmpBits = numCompressBlkPerMetaBlkLog2; in HwlComputeHtileInfo()
194 UINT_32 widthAmp = (pIn->numMipLevels > 1) ? (totalAmpBits >> 1) : RoundHalf(totalAmpBits); in HwlComputeHtileInfo()
195 UINT_32 heightAmp = totalAmpBits - widthAmp; in HwlComputeHtileInfo()
201 for (UINT_32 index = 0; index < numCompressBlkPerMetaBlkLog2; index++) in HwlComputeHtileInfo()
216 UINT_32 numMetaBlkX; in HwlComputeHtileInfo()
217 UINT_32 numMetaBlkY; in HwlComputeHtileInfo()
[all …]