Lines Matching refs:numPartitions

541 …ointModes (deUint32* endpointModesDst, const Block128& blockData, int numPartitions, int extraCemB…  in decodeColorEndpointModes()  argument
543 if (numPartitions == 1) in decodeColorEndpointModes()
552 for (int i = 0; i < numPartitions; i++) in decodeColorEndpointModes()
557 for (int partNdx = 0; partNdx < numPartitions; partNdx++) in decodeColorEndpointModes()
560 const deUint32 lowBit0Ndx = numPartitions + 2*partNdx; in decodeColorEndpointModes()
561 const deUint32 lowBit1Ndx = numPartitions + 2*partNdx + 1; in decodeColorEndpointModes()
571 int computeNumColorEndpointValues (const deUint32* endpointModes, int numPartitions) in computeNumColorEndpointValues() argument
574 for (int i = 0; i < numPartitions; i++) in computeNumColorEndpointValues()
993 …tPair* dst, const deUint32* unquantizedEndpoints, const deUint32* endpointModes, int numPartitions) in decodeColorEndpoints() argument
997 for (int partitionNdx = 0; partitionNdx < numPartitions; partitionNdx++) in decodeColorEndpoints()
1180 …r* dst, const Block128& blockData, const deUint32* endpointModes, int numPartitions, int numColorE… in computeColorEndpoints() argument
1182 const int colorEndpointDataStart = numPartitions == 1 ? 17 : 29; in computeColorEndpoints()
1193 decodeColorEndpoints(dst, &unquantizedEndpoints[0], &endpointModes[0], numPartitions); in computeColorEndpoints()
1318 …ition (deUint32 seedIn, deUint32 xIn, deUint32 yIn, deUint32 zIn, int numPartitions, bool smallBlo… in computeTexelPartition() argument
1324 const deUint32 seed = seedIn + 1024*(numPartitions-1); in computeTexelPartition()
1353 const int shB = numPartitions == 3 ? 6 : 5; in computeTexelPartition()
1373 const int c = numPartitions >= 3 ? 0x3f & (seed5*x + seed6*y + seed9*z + (rnum >> 6)) : 0; in computeTexelPartition()
1374 const int d = numPartitions >= 4 ? 0x3f & (seed7*x + seed8*y + seed10*z + (rnum >> 2)) : 0; in computeTexelPartition()
1383 …int numPartitions, int blockWidth, int blockHeight, bool isSRGB, bool isLDRMode, const deUint32* c… in setTexelColors() argument
1389 for (int i = 0; i < numPartitions; i++) in setTexelColors()
1396 … int colorEndpointNdx = numPartitions == 1 ? 0 : computeTexelPartition(partitionIndexSeed, texe… in setTexelColors()
1397 DE_ASSERT(colorEndpointNdx < numPartitions); in setTexelColors()
1485 const int numPartitions = (int)blockData.getBits(11, 12) + 1; in decompressBlock() local
1494 (numPartitions == 4 && blockMode.isDualPlane)) in decompressBlock()
1502 const bool isSingleUniqueCem = numPartitions == 1 || blockData.getBits(23, 24) == 0; in decompressBlock()
1503 …const int numConfigDataBits = (numPartitions == 1 ? 17 : isSingleUniqueCem ? 29 : 25 + 3*numPart… in decompressBlock()
1507 : numPartitions == 4 ? 7 in decompressBlock()
1508 : numPartitions == 3 ? 4 in decompressBlock()
1509 : numPartitions == 2 ? 1 in decompressBlock()
1514 decodeColorEndpointModes(&colorEndpointModes[0], blockData, numPartitions, extraCemBitsStart); in decompressBlock()
1516 …const int numColorEndpointValues = computeNumColorEndpointValues(colorEndpointModes, numPartitions in decompressBlock()
1529 …computeColorEndpoints(&colorEndpoints[0], blockData, &colorEndpointModes[0], numPartitions, numCol… in decompressBlock()
1540 const deUint32 partitionIndexSeed = numPartitions > 1 ? blockData.getBits(13, 22) : (deUint32)-1; in decompressBlock()
1542 …s(dst, &colorEndpoints[0], &texelWeights[0], ccs, partitionIndexSeed, numPartitions, blockWidth, b… in decompressBlock()
1794 int numPartitions; member
1806 , numPartitions (-1) in NormalBlockParams()
1837 … numConfigDataBits = (params.numPartitions == 1 ? 17 : params.isMultiPartSingleCemMode ? 29 : 25 … in computeNumBitsForColorEndpoints()
1843 static inline int computeNumColorEndpointValues (const deUint32* endpointModes, int numPartitions, … in computeNumColorEndpointValues() argument
1846 return numPartitions * computeNumColorEndpointValues(endpointModes[0]); in computeNumColorEndpointValues()
1850 for (int i = 0; i < numPartitions; i++) in computeNumColorEndpointValues()
1860 …= computeNumColorEndpointValues(&params.colorEndpointModes[0], params.numPartitions, params.isMult… in isValidBlockParams()
1867 !(params.numPartitions == 4 && params.isDualPlane) && in isValidBlockParams()
1996 …onst deUint32* colorEndpointModes, bool isMultiPartSingleCemMode, int numPartitions, int extraCemB… in writeColorEndpointModes() argument
1998 if (numPartitions == 1) in writeColorEndpointModes()
2009 DE_ASSERT(numPartitions > 0); in writeColorEndpointModes()
2010 …deUint32 minCem = *std::min_element(&colorEndpointModes[0], &colorEndpointModes[numPartitions]); in writeColorEndpointModes()
2011 …deUint32 maxCem = *std::max_element(&colorEndpointModes[0], &colorEndpointModes[numPartitions]); in writeColorEndpointModes()
2020 for (int partNdx = 0; partNdx < numPartitions; partNdx++) in writeColorEndpointModes()
2024 const deUint32 lowMBit0Ndx = numPartitions + 2*partNdx; in writeColorEndpointModes()
2025 const deUint32 lowMBit1Ndx = numPartitions + 2*partNdx + 1; in writeColorEndpointModes()
2219 block.setBits(11, 12, blockParams.numPartitions - 1); in generateNormalBlock()
2220 if (blockParams.numPartitions > 1) in generateNormalBlock()
2224 …const int extraCemBitsStart = 127 - numWeightBits - (blockParams.numPartitions == 1 || blockParams… in generateNormalBlock()
2225 : blockParams.numPartitions == 4 ? 7 in generateNormalBlock()
2226 : blockParams.numPartitions == 3 ? 4 in generateNormalBlock()
2227 : blockParams.numPartitions == 2 ? 1 in generateNormalBlock()
2230 …orEndpointModes[0], blockParams.isMultiPartSingleCemMode, blockParams.numPartitions, extraCemBitsS… in generateNormalBlock()
2239 …umColorEndpointValues(&blockParams.colorEndpointModes[0], blockParams.numPartitions, blockParams.i… in generateNormalBlock()
2241 const int colorEndpointDataStartNdx = blockParams.numPartitions == 1 ? 17 : 29; in generateNormalBlock()
2279 …umColorEndpointValues(&blockParams.colorEndpointModes[0], blockParams.numPartitions, blockParams.i… in generateDefaultISEInputs()
2334 blockParams.numPartitions = rnd.getInt(1, 4); in generateRandomBlock()
2336 blockParams.isDualPlane = blockParams.numPartitions != 4 && rnd.getBool(); in generateRandomBlock()
2348 for (int i = 1; i < blockParams.numPartitions; i++) in generateRandomBlock()
2361 …umColorEndpointValues(&blockParams.colorEndpointModes[0], blockParams.numPartitions, blockParams.i… in generateRandomBlock()
2471 blockParams.numPartitions = 1; in generateBlockCaseTestData()
2494 blockParams.numPartitions = 1; in generateBlockCaseTestData()
2555 for (int numPartitions = 1; numPartitions <= (isDualPlane != 0 ? 3 : 4); numPartitions++) in generateBlockCaseTestData() local
2558 if (numPartitions > 1) in generateBlockCaseTestData()
2567 blockParams.numPartitions = numPartitions; in generateBlockCaseTestData()
2586 for (deUint32 cem1 = 0; cem1 < (numPartitions >= 2 ? 16u : 1u); cem1++) in generateBlockCaseTestData()
2587 for (deUint32 cem2 = 0; cem2 < (numPartitions >= 3 ? 16u : 1u); cem2++) in generateBlockCaseTestData()
2588 for (deUint32 cem3 = 0; cem3 < (numPartitions >= 4 ? 16u : 1u); cem3++) in generateBlockCaseTestData()
2595 blockParams.numPartitions = numPartitions; in generateBlockCaseTestData()
2604 …d::min_element(&blockParams.colorEndpointModes[0], &blockParams.colorEndpointModes[numPartitions]); in generateBlockCaseTestData()
2605 …d::max_element(&blockParams.colorEndpointModes[0], &blockParams.colorEndpointModes[numPartitions]); in generateBlockCaseTestData()
2631 for (int numPartitions = 2; numPartitions <= 4; numPartitions++) in generateBlockCaseTestData() local
2639 blockParams.numPartitions = numPartitions; in generateBlockCaseTestData()
2676 blockParams.numPartitions = 1; in generateBlockCaseTestData()
2718 …for (int numPartitions = 1; !validCaseGenerated && numPartitions <= 4; numPartition… in generateBlockCaseTestData() local
2730 blockParams.numPartitions = numPartitions; in generateBlockCaseTestData()
2738 … computeNumColorEndpointValues(&blockParams.colorEndpointModes[0], numPartitions, true)); in generateBlockCaseTestData()
2744 … = computeNumColorEndpointValues(&blockParams.colorEndpointModes[0], numPartitions, blockParams.i… in generateBlockCaseTestData()
2798 for (int numPartitions = 1; numPartitions <= 3; numPartitions++) in generateBlockCaseTestData() local
2807 blockParams.numPartitions = numPartitions; in generateBlockCaseTestData()
2889 blockParams.numPartitions = 1; in generateDummyNormalBlocks()