Lines Matching refs:index
499 * Map a tile setting to index if curIndex is invalid, otherwise check if curIndex matches
500 * tile mode/type/info and change the index if needed
502 * Tile index.
509 INT curIndex ///< [in] Current index assigned in HwlSetupTileInfo
512 INT_32 index = curIndex;
516 index = TileIndexLinearGeneral;
522 // We need to find a new index if either of them is true
526 if ((index == TileIndexInvalid) ||
527 (mode != m_tileTable[index].mode) ||
528 (macroTiled && pInfo->pipeConfig != m_tileTable[index].info.pipeConfig))
530 for (index = 0; index < static_cast<INT_32>(m_noOfEntries); index++)
535 if ((pInfo->pipeConfig == m_tileTable[index].info.pipeConfig) &&
536 (mode == m_tileTable[index].mode) &&
537 (type == m_tileTable[index].type))
542 if (Min(m_tileTable[index].info.tileSplitBytes,
557 if (mode == m_tileTable[index].mode)
565 if (mode == m_tileTable[index].mode &&
566 type == m_tileTable[index].type)
575 ADDR_ASSERT(index < static_cast<INT_32>(m_noOfEntries));
577 if (index >= static_cast<INT_32>(m_noOfEntries))
579 index = TileIndexInvalid;
582 return index;
590 * Map tile index to tile setting.
597 INT_32 index, ///< Tile index
607 if (UseTileIndex(index))
609 if (index == TileIndexLinearGeneral)
618 else if (static_cast<UINT_32>(index) >= m_noOfEntries)
624 const TileConfig* pCfgTable = GetTileSetting(index);
648 UINT_32 sampleSplit = m_tileTable[index].info.tileSplitBytes;
954 // First prt thick tile index in the tile mode table
1262 INT index = TileIndexInvalid;
1329 index = 0;
1332 index = 1;
1335 index = 2;
1338 index = 3;
1341 index = 4;
1347 // Depth and stencil need to use the same index, thus the pre-defined tile_split
1348 // can meet the requirement to choose the same macro mode index
1353 index = 0;
1357 index = 1;
1360 index = 2;
1374 index = 5;
1377 index = 6;
1390 index = 9;
1393 index = 10;
1396 index = 11;
1409 index = 13;
1412 index = 14;
1415 index = 15;
1418 index = 16;
1432 index = ((inTileType == ADDR_THICK) || m_settings.isBonaire) ? 19 : 18;
1436 index = ((inTileType == ADDR_THICK) || m_settings.isBonaire) ? 20 : 24;
1439 index = 21;
1442 index = 22;
1445 index = 25;
1448 index = 26;
1461 index = 27;
1464 index = 28;
1467 index = 29;
1470 index = 30;
1479 ADDR_ASSERT((index + 1) < static_cast<INT_32>(m_noOfEntries));
1482 (m_tileTable[index + 1].mode == tileMode))
1487 HwlComputeMacroModeIndex(index, flags, bpp, numSamples, &tileInfo);
1496 index += 1;
1498 tileInfo.pipeConfig = m_tileTable[index].info.pipeConfig;
1515 index = pOut->tileIndex;
1518 // pass tile type back for post tile index compute
1541 // We only need to set up tile info if there is a valid index but macroModeIndex is invalid
1542 if ((index != TileIndexInvalid) && (macroModeIndex == TileIndexInvalid))
1544 macroModeIndex = HwlComputeMacroModeIndex(index, flags, bpp, numSamples, pTileInfo);
1547 pOut->tileIndex = index;
1548 pOut->tileType = m_tileTable[index].type; // Or inTileType, the samea
1805 * Computes macro tile mode index
1811 INT_32 tileIndex, ///< [in] Tile mode index
2240 * Try to find a tile index for stencil which makes its tile config parameters matches to depth
2242 * TRUE if such tile index for stencil can be found