Lines Matching refs:pIn

87     const ADDR_COMPUTE_SURFACE_INFO_INPUT*  pIn,    ///< [in] input structure  in DispatchComputeSurfaceInfo()  argument
91 AddrTileMode tileMode = pIn->tileMode; in DispatchComputeSurfaceInfo()
92 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()
99 ADDR_SURFACE_FLAGS flags = pIn->flags; in DispatchComputeSurfaceInfo()
131 if (pIn->pTileInfo != NULL) in DispatchComputeSurfaceInfo()
133 if (pTileInfo != pIn->pTileInfo) in DispatchComputeSurfaceInfo()
135 *pTileInfo = *pIn->pTileInfo; in DispatchComputeSurfaceInfo()
150 pIn->pTileInfo, in DispatchComputeSurfaceInfo()
152 pIn->tileType, in DispatchComputeSurfaceInfo()
173 valid = ComputeSurfaceInfoLinear(pIn, pOut, padDims); in DispatchComputeSurfaceInfo()
178 valid = ComputeSurfaceInfoMicroTiled(pIn, pOut, padDims, tileMode); in DispatchComputeSurfaceInfo()
193 valid = ComputeSurfaceInfoMacroTiled(pIn, pOut, padDims, tileMode); in DispatchComputeSurfaceInfo()
219 const ADDR_COMPUTE_SURFACE_INFO_INPUT* pIn, ///< [in] Input structure in ComputeSurfaceInfoLinear() argument
224 UINT_32 expPitch = pIn->width; in ComputeSurfaceInfoLinear()
225 UINT_32 expHeight = pIn->height; in ComputeSurfaceInfoLinear()
226 UINT_32 expNumSlices = pIn->numSlices; in ComputeSurfaceInfoLinear()
236 ComputeSurfaceAlignmentsLinear(pIn->tileMode, in ComputeSurfaceInfoLinear()
237 pIn->bpp, in ComputeSurfaceInfoLinear()
238 pIn->flags, in ComputeSurfaceInfoLinear()
243 if ((pIn->tileMode == ADDR_TM_LINEAR_GENERAL) && pIn->flags.color && (pIn->height > 1)) in ComputeSurfaceInfoLinear()
249 ADDR_ASSERT((pIn->width % 8) == 0); in ComputeSurfaceInfoLinear()
255 expPitch = HwlPreHandleBaseLvl3xPitch(pIn, expPitch); in ComputeSurfaceInfoLinear()
260 PadDimensions(pIn->tileMode, in ComputeSurfaceInfoLinear()
261 pIn->bpp, in ComputeSurfaceInfoLinear()
262 pIn->flags, in ComputeSurfaceInfoLinear()
266 pIn->mipLevel, in ComputeSurfaceInfoLinear()
271 expPitch = HwlPostHandleBaseLvl3xPitch(pIn, expPitch); in ComputeSurfaceInfoLinear()
279 logicalSliceSize = HwlGetSizeAdjustmentLinear(pIn->tileMode, in ComputeSurfaceInfoLinear()
280 pIn->bpp, in ComputeSurfaceInfoLinear()
288 if ((pIn->pitchAlign != 0) || (pIn->heightAlign != 0)) in ComputeSurfaceInfoLinear()
290 if (pIn->pitchAlign != 0) in ComputeSurfaceInfoLinear()
292 ADDR_ASSERT((pIn->pitchAlign % pOut->pitchAlign) == 0); in ComputeSurfaceInfoLinear()
293 pOut->pitchAlign = pIn->pitchAlign; in ComputeSurfaceInfoLinear()
307 if (pIn->heightAlign != 0) in ComputeSurfaceInfoLinear()
309 ADDR_ASSERT((pIn->heightAlign % pOut->heightAlign) == 0); in ComputeSurfaceInfoLinear()
310 pOut->heightAlign = pIn->heightAlign; in ComputeSurfaceInfoLinear()
324 logicalSliceSize = BITS_TO_BYTES(expPitch * expHeight * pIn->bpp); in ComputeSurfaceInfoLinear()
333 pOut->tileMode = pIn->tileMode; in ComputeSurfaceInfoLinear()
352 const ADDR_COMPUTE_SURFACE_INFO_INPUT* pIn, ///< [in] Input structure in ComputeSurfaceInfoMicroTiled() argument
361 UINT_32 expPitch = pIn->width; in ComputeSurfaceInfoMicroTiled()
362 UINT_32 expHeight = pIn->height; in ComputeSurfaceInfoMicroTiled()
363 UINT_32 expNumSlices = pIn->numSlices; in ComputeSurfaceInfoMicroTiled()
376 if (pIn->mipLevel > 0) in ComputeSurfaceInfoMicroTiled()
397 pIn->bpp, in ComputeSurfaceInfoMicroTiled()
398 pIn->flags, in ComputeSurfaceInfoMicroTiled()
399 pIn->mipLevel, in ComputeSurfaceInfoMicroTiled()
413 pIn->bpp, in ComputeSurfaceInfoMicroTiled()
414 pIn->flags, in ComputeSurfaceInfoMicroTiled()
418 pIn->mipLevel, in ComputeSurfaceInfoMicroTiled()
427 pIn->bpp, in ComputeSurfaceInfoMicroTiled()
428 pIn->flags, in ComputeSurfaceInfoMicroTiled()
462 const ADDR_COMPUTE_SURFACE_INFO_INPUT* pIn, ///< [in] Input structure in ComputeSurfaceInfoMacroTiled() argument
477 UINT_32 expPitch = pIn->width; in ComputeSurfaceInfoMacroTiled()
478 UINT_32 expHeight = pIn->height; in ComputeSurfaceInfoMacroTiled()
479 UINT_32 expNumSlices = pIn->numSlices; in ComputeSurfaceInfoMacroTiled()
488 pIn->bpp, in ComputeSurfaceInfoMacroTiled()
489 pIn->flags, in ComputeSurfaceInfoMacroTiled()
490 pIn->mipLevel, in ComputeSurfaceInfoMacroTiled()
504 if (pIn->mipLevel > 0) in ComputeSurfaceInfoMacroTiled()
510 pIn->bpp, in ComputeSurfaceInfoMacroTiled()
521 return ComputeSurfaceInfoMicroTiled(pIn, pOut, padDims, expTileMode); in ComputeSurfaceInfoMacroTiled()
528 return ComputeSurfaceInfoMacroTiled(pIn, pOut, padDims, expTileMode); in ComputeSurfaceInfoMacroTiled()
541 pIn->bpp, in ComputeSurfaceInfoMacroTiled()
542 pIn->flags, in ComputeSurfaceInfoMacroTiled()
543 pIn->mipLevel, in ComputeSurfaceInfoMacroTiled()
552 pIn->bpp, in ComputeSurfaceInfoMacroTiled()
553 pIn->flags, in ComputeSurfaceInfoMacroTiled()
557 pIn->mipLevel, in ComputeSurfaceInfoMacroTiled()
562 if (pIn->flags.qbStereo && in ComputeSurfaceInfoMacroTiled()
573 if ((pIn->flags.needEquation == TRUE) && in ComputeSurfaceInfoMacroTiled()
575 (pIn->numMipLevels > 1) && in ComputeSurfaceInfoMacroTiled()
576 (pIn->mipLevel == 0)) in ComputeSurfaceInfoMacroTiled()
582 for (UINT_32 i = 1; i < pIn->numMipLevels; i++) in ComputeSurfaceInfoMacroTiled()
585 UINT_32 mipHeight = Max(1u, pIn->height >> i); in ComputeSurfaceInfoMacroTiled()
586 UINT_32 mipSlices = pIn->flags.volume ? in ComputeSurfaceInfoMacroTiled()
587 Max(1u, pIn->numSlices >> i) : pIn->numSlices; in ComputeSurfaceInfoMacroTiled()
589 pIn->bpp, in ComputeSurfaceInfoMacroTiled()
615 return ComputeSurfaceInfoMicroTiled(pIn, pOut, padDims, ADDR_TM_1D_TILED_THIN1); in ComputeSurfaceInfoMacroTiled()
627 HwlCheckLastMacroTiledLvl(pIn, pOut); in ComputeSurfaceInfoMacroTiled()
637 paddedHeight * NextPow2(pIn->bpp) * numSamples); in ComputeSurfaceInfoMacroTiled()
1175 const ADDR_COMPUTE_SURFACE_INFO_INPUT* pIn, ///< [in] create surface info in HwlGetAlignmentInfoMacroTiled() argument
1183 ADDR_ASSERT(IsMacroTiled(pIn->tileMode)); in HwlGetAlignmentInfoMacroTiled()
1185 UINT_32 numSamples = (pIn->numFrags == 0) ? pIn->numSamples : pIn->numFrags; in HwlGetAlignmentInfoMacroTiled()
1187 ADDR_ASSERT(pIn->pTileInfo); in HwlGetAlignmentInfoMacroTiled()
1188 ADDR_TILEINFO tileInfo = *pIn->pTileInfo; in HwlGetAlignmentInfoMacroTiled()
1192 if (UseTileIndex(pIn->tileIndex)) in HwlGetAlignmentInfoMacroTiled()
1194 out.tileIndex = pIn->tileIndex; in HwlGetAlignmentInfoMacroTiled()
1198 HwlSetupTileInfo(pIn->tileMode, in HwlGetAlignmentInfoMacroTiled()
1199 pIn->flags, in HwlGetAlignmentInfoMacroTiled()
1200 pIn->bpp, in HwlGetAlignmentInfoMacroTiled()
1201 pIn->width, in HwlGetAlignmentInfoMacroTiled()
1202 pIn->height, in HwlGetAlignmentInfoMacroTiled()
1206 pIn->tileType, in HwlGetAlignmentInfoMacroTiled()
1209 valid = ComputeSurfaceAlignmentsMacroTiled(pIn->tileMode, in HwlGetAlignmentInfoMacroTiled()
1210 pIn->bpp, in HwlGetAlignmentInfoMacroTiled()
1211 pIn->flags, in HwlGetAlignmentInfoMacroTiled()
1212 pIn->mipLevel, in HwlGetAlignmentInfoMacroTiled()
1311 const ADDR_COMPUTE_SURFACE_ADDRFROMCOORD_INPUT* pIn, ///< [in] input structure in DispatchComputeSurfaceAddrFromCoord() argument
1315 UINT_32 x = pIn->x; in DispatchComputeSurfaceAddrFromCoord()
1316 UINT_32 y = pIn->y; in DispatchComputeSurfaceAddrFromCoord()
1317 UINT_32 slice = pIn->slice; in DispatchComputeSurfaceAddrFromCoord()
1318 UINT_32 sample = pIn->sample; in DispatchComputeSurfaceAddrFromCoord()
1319 UINT_32 bpp = pIn->bpp; in DispatchComputeSurfaceAddrFromCoord()
1320 UINT_32 pitch = pIn->pitch; in DispatchComputeSurfaceAddrFromCoord()
1321 UINT_32 height = pIn->height; in DispatchComputeSurfaceAddrFromCoord()
1322 UINT_32 numSlices = pIn->numSlices; in DispatchComputeSurfaceAddrFromCoord()
1323 UINT_32 numSamples = ((pIn->numSamples == 0) ? 1 : pIn->numSamples); in DispatchComputeSurfaceAddrFromCoord()
1324 UINT_32 numFrags = ((pIn->numFrags == 0) ? numSamples : pIn->numFrags); in DispatchComputeSurfaceAddrFromCoord()
1325 AddrTileMode tileMode = pIn->tileMode; in DispatchComputeSurfaceAddrFromCoord()
1326 AddrTileType microTileType = pIn->tileType; in DispatchComputeSurfaceAddrFromCoord()
1327 BOOL_32 ignoreSE = pIn->ignoreSE; in DispatchComputeSurfaceAddrFromCoord()
1328 BOOL_32 isDepthSampleOrder = pIn->isDepth; in DispatchComputeSurfaceAddrFromCoord()
1329 ADDR_TILEINFO* pTileInfo = pIn->pTileInfo; in DispatchComputeSurfaceAddrFromCoord()
1351 if (IsLinear(pIn->tileMode) == FALSE) in DispatchComputeSurfaceAddrFromCoord()
1406 ExtractBankPipeSwizzle(pIn->tileSwizzle, pIn->pTileInfo, in DispatchComputeSurfaceAddrFromCoord()
1411 pipeSwizzle = pIn->pipeSwizzle; in DispatchComputeSurfaceAddrFromCoord()
1412 bankSwizzle = pIn->bankSwizzle; in DispatchComputeSurfaceAddrFromCoord()
2172 const ADDR_COMPUTE_SURFACE_COORDFROMADDR_INPUT* pIn, ///< [in] input structure in DispatchComputeSurfaceCoordFromAddr() argument
2176 UINT_64 addr = pIn->addr; in DispatchComputeSurfaceCoordFromAddr()
2177 UINT_32 bitPosition = pIn->bitPosition; in DispatchComputeSurfaceCoordFromAddr()
2178 UINT_32 bpp = pIn->bpp; in DispatchComputeSurfaceCoordFromAddr()
2179 UINT_32 pitch = pIn->pitch; in DispatchComputeSurfaceCoordFromAddr()
2180 UINT_32 height = pIn->height; in DispatchComputeSurfaceCoordFromAddr()
2181 UINT_32 numSlices = pIn->numSlices; in DispatchComputeSurfaceCoordFromAddr()
2182 UINT_32 numSamples = ((pIn->numSamples == 0) ? 1 : pIn->numSamples); in DispatchComputeSurfaceCoordFromAddr()
2183 UINT_32 numFrags = ((pIn->numFrags == 0) ? numSamples : pIn->numFrags); in DispatchComputeSurfaceCoordFromAddr()
2184 AddrTileMode tileMode = pIn->tileMode; in DispatchComputeSurfaceCoordFromAddr()
2185 UINT_32 tileBase = pIn->tileBase; in DispatchComputeSurfaceCoordFromAddr()
2186 UINT_32 compBits = pIn->compBits; in DispatchComputeSurfaceCoordFromAddr()
2187 AddrTileType microTileType = pIn->tileType; in DispatchComputeSurfaceCoordFromAddr()
2188 BOOL_32 ignoreSE = pIn->ignoreSE; in DispatchComputeSurfaceCoordFromAddr()
2189 BOOL_32 isDepthSampleOrder = pIn->isDepth; in DispatchComputeSurfaceCoordFromAddr()
2190 ADDR_TILEINFO* pTileInfo = pIn->pTileInfo; in DispatchComputeSurfaceCoordFromAddr()
2212 if (IsLinear(pIn->tileMode) == FALSE) in DispatchComputeSurfaceCoordFromAddr()
2271 ExtractBankPipeSwizzle(pIn->tileSwizzle, pIn->pTileInfo, in DispatchComputeSurfaceCoordFromAddr()
2276 pipeSwizzle = pIn->pipeSwizzle; in DispatchComputeSurfaceCoordFromAddr()
2277 bankSwizzle = pIn->bankSwizzle; in DispatchComputeSurfaceCoordFromAddr()
2660 const ADDR_EXTRACT_BANKPIPE_SWIZZLE_INPUT* pIn, ///< [in] input structure in HwlExtractBankPipeSwizzle() argument
2664 ExtractBankPipeSwizzle(pIn->base256b, in HwlExtractBankPipeSwizzle()
2665 pIn->pTileInfo, in HwlExtractBankPipeSwizzle()
2714 const ADDR_COMPUTE_BASE_SWIZZLE_INPUT* pIn, in HwlComputeBaseSwizzle() argument
2720 ADDR_TILEINFO* pTileInfo = pIn->pTileInfo; in HwlComputeBaseSwizzle()
2722 ADDR_ASSERT(IsMacroTiled(pIn->tileMode)); in HwlComputeBaseSwizzle()
2723 ADDR_ASSERT(pIn->pTileInfo); in HwlComputeBaseSwizzle()
2739 if (pIn->option.reduceBankBit && banks > 2) in HwlComputeBaseSwizzle()
2764 if (pIn->option.genOption == ADDR_SWIZZLE_GEN_LINEAR) in HwlComputeBaseSwizzle()
2766 bankSwizzle = pIn->surfIndex & (banks - 1); in HwlComputeBaseSwizzle()
2770 bankSwizzle = bankRotationArray[hwNumBanks][pIn->surfIndex & (banks - 1)]; in HwlComputeBaseSwizzle()
2773 if (IsMacro3dTiled(pIn->tileMode)) in HwlComputeBaseSwizzle()
2775 pipeSwizzle = pIn->surfIndex & (HwlGetPipes(pTileInfo) - 1); in HwlComputeBaseSwizzle()
3242 const ADDR_COMPUTE_FMASK_INFO_INPUT* pIn, ///< [in] input structure in DispatchComputeFmaskInfo() argument
3251 surfIn.tileMode = pIn->tileMode; in DispatchComputeFmaskInfo()
3252 surfIn.width = pIn->pitch; in DispatchComputeFmaskInfo()
3253 surfIn.height = pIn->height; in DispatchComputeFmaskInfo()
3254 surfIn.numSlices = pIn->numSlices; in DispatchComputeFmaskInfo()
3255 surfIn.pTileInfo = pIn->pTileInfo; in DispatchComputeFmaskInfo()
3263 HwlFmaskPreThunkSurfInfo(pIn, pOut, &surfIn, &surfOut); in DispatchComputeFmaskInfo()
3265 surfIn.bpp = HwlComputeFmaskBits(pIn, &surfIn.numSamples); in DispatchComputeFmaskInfo()
3315 const ADDR_COMPUTE_FMASK_INFO_INPUT* pIn, ///< [in] input structure in HwlComputeFmaskInfo() argument
3329 retCode = DispatchComputeFmaskInfo(pIn, pOut); in HwlComputeFmaskInfo()
3334 HwlPostCheckTileIndex(pOut->pTileInfo, pIn->tileMode, ADDR_NON_DISPLAYABLE, in HwlComputeFmaskInfo()
3357 const ADDR_COMPUTE_FMASK_ADDRFROMCOORD_INPUT* pIn, ///< [in] input structure in HwlComputeFmaskAddrFromCoord() argument
3376 const ADDR_COMPUTE_FMASK_COORDFROMADDR_INPUT* pIn, ///< [in] input structure in HwlComputeFmaskCoordFromAddr() argument
3546 const ADDR_CONVERT_TILEINFOTOHW_INPUT* pIn, ///< [in] input structure in HwlConvertTileInfoToHW() argument
3552 ADDR_TILEINFO *pTileInfoIn = pIn->pTileInfo; in HwlConvertTileInfoToHW()
3557 if (pIn->reverse == FALSE) in HwlConvertTileInfoToHW()
3814 const ADDR_COMPUTE_SURFACE_INFO_INPUT* pIn, ///< [in] input structure in HwlComputeSurfaceInfo() argument
3820 if (pIn->numSamples < pIn->numFrags) in HwlComputeSurfaceInfo()
3835 if (DispatchComputeSurfaceInfo(pIn, pOut) == FALSE) in HwlComputeSurfaceInfo()
3843 if (pIn->flags.skipIndicesOutput == FALSE) in HwlComputeSurfaceInfo()
3854 pIn->flags, in HwlComputeSurfaceInfo()
3855 pIn->bpp, in HwlComputeSurfaceInfo()
3856 pIn->numSamples, in HwlComputeSurfaceInfo()
3872 if (IsTileInfoAllZero(pIn->pTileInfo) == FALSE) in HwlComputeSurfaceInfo()
3876 ADDR_ASSERT(tileInfo.banks == pIn->pTileInfo->banks); in HwlComputeSurfaceInfo()
3877 ADDR_ASSERT(tileInfo.bankWidth == pIn->pTileInfo->bankWidth); in HwlComputeSurfaceInfo()
3878 ADDR_ASSERT(tileInfo.bankHeight == pIn->pTileInfo->bankHeight); in HwlComputeSurfaceInfo()
3879 ADDR_ASSERT(tileInfo.macroAspectRatio == pIn->pTileInfo->macroAspectRatio); in HwlComputeSurfaceInfo()
3880 ADDR_ASSERT(tileInfo.tileSplitBytes == pIn->pTileInfo->tileSplitBytes); in HwlComputeSurfaceInfo()
3901 const ADDR_COMPUTE_SURFACE_ADDRFROMCOORD_INPUT* pIn, ///< [in] input structure in HwlComputeSurfaceAddrFromCoord() argument
3909 (pIn->x > pIn->pitch) || in HwlComputeSurfaceAddrFromCoord()
3910 (pIn->y > pIn->height) || in HwlComputeSurfaceAddrFromCoord()
3912 (pIn->numSamples > m_maxSamples)) in HwlComputeSurfaceAddrFromCoord()
3918 pOut->addr = DispatchComputeSurfaceAddrFromCoord(pIn, pOut); in HwlComputeSurfaceAddrFromCoord()
3934 const ADDR_COMPUTE_SURFACE_COORDFROMADDR_INPUT* pIn, ///< [in] input structure in HwlComputeSurfaceCoordFromAddr() argument
3940 if ((pIn->bitPosition >= 8) || in HwlComputeSurfaceCoordFromAddr()
3941 (pIn->numSamples > m_maxSamples)) in HwlComputeSurfaceCoordFromAddr()
3947 DispatchComputeSurfaceCoordFromAddr(pIn, pOut); in HwlComputeSurfaceCoordFromAddr()
3962 const ADDR_COMPUTE_SLICESWIZZLE_INPUT* pIn, ///< [in] input structure in HwlComputeSliceTileSwizzle() argument
3968 if (pIn->pTileInfo && (pIn->pTileInfo->banks > 0)) in HwlComputeSliceTileSwizzle()
3971 pOut->tileSwizzle = ComputeSliceTileSwizzle(pIn->tileMode, in HwlComputeSliceTileSwizzle()
3972 pIn->baseSwizzle, in HwlComputeSliceTileSwizzle()
3973 pIn->slice, in HwlComputeSliceTileSwizzle()
3974 pIn->baseAddr, in HwlComputeSliceTileSwizzle()
3975 pIn->pTileInfo); in HwlComputeSliceTileSwizzle()