Lines Matching refs:blockParams
1899 static void writeBlockMode (AssignBlock128& dst, const NormalBlockParams& blockParams) in writeBlockMode() argument
1901 const deUint32 d = blockParams.isDualPlane != 0; in writeBlockMode()
1911 switch (computeISERangeMax(blockParams.weightISEParams)) in writeBlockMode()
1973 if (de::inRange(blockParams.weightGridWidth, widthMin, widthMax) && in writeBlockMode()
1974 de::inRange(blockParams.weightGridHeight, heightMin, heightMax)) in writeBlockMode()
1980 widthVariable = blockParams.weightGridWidth - layout.gridWidthConstantTerm; in writeBlockMode()
1981 heightVariable = blockParams.weightGridHeight - layout.gridHeightConstantTerm; in writeBlockMode()
2233 static AssignBlock128 generateNormalBlock (const NormalBlockParams& blockParams, int blockWidth, in… in generateNormalBlock() argument
2235 DE_ASSERT(isValidBlockParams(blockParams, blockWidth, blockHeight)); in generateNormalBlock()
2240 const int numWeights = computeNumWeights(blockParams); in generateNormalBlock()
2241 const int numWeightBits = computeNumRequiredBits(blockParams.weightISEParams, numWeights); in generateNormalBlock()
2243 writeBlockMode(block, blockParams); in generateNormalBlock()
2245 block.setBits(11, 12, blockParams.numPartitions - 1); in generateNormalBlock()
2246 if (blockParams.numPartitions > 1) in generateNormalBlock()
2247 block.setBits(13, 22, blockParams.partitionSeed); in generateNormalBlock()
2250 …const int extraCemBitsStart = 127 - numWeightBits - (blockParams.numPartitions == 1 || blockParams… in generateNormalBlock()
2251 : blockParams.numPartitions == 4 ? 7 in generateNormalBlock()
2252 : blockParams.numPartitions == 3 ? 4 in generateNormalBlock()
2253 : blockParams.numPartitions == 2 ? 1 in generateNormalBlock()
2256 …writeColorEndpointModes(block, &blockParams.colorEndpointModes[0], blockParams.isMultiPartSingleCe… in generateNormalBlock()
2258 if (blockParams.isDualPlane) in generateNormalBlock()
2259 block.setBits(extraCemBitsStart-2, extraCemBitsStart-1, blockParams.ccs); in generateNormalBlock()
2262 writeWeightData(block, blockParams.weightISEParams, iseInputs.weight, numWeights); in generateNormalBlock()
2265 …alues = computeNumColorEndpointValues(&blockParams.colorEndpointModes[0], blockParams.numPartitio… in generateNormalBlock()
2266 const int numBitsForColorEndpoints = computeNumBitsForColorEndpoints(blockParams); in generateNormalBlock()
2267 const int colorEndpointDataStartNdx = blockParams.numPartitions == 1 ? 17 : 29; in generateNormalBlock()
2277 static NormalBlockISEInputs generateDefaultISEInputs (const NormalBlockParams& blockParams) in generateDefaultISEInputs() argument
2284 const int numWeights = computeNumWeights(blockParams); in generateDefaultISEInputs()
2285 const int weightRangeMax = computeISERangeMax(blockParams.weightISEParams); in generateDefaultISEInputs()
2287 if (blockParams.isDualPlane) in generateDefaultISEInputs()
2305 …alues = computeNumColorEndpointValues(&blockParams.colorEndpointModes[0], blockParams.numPartitio… in generateDefaultISEInputs()
2306 const int numBitsForColorEndpoints = computeNumBitsForColorEndpoints(blockParams); in generateDefaultISEInputs()
2353 NormalBlockParams blockParams; in generateRandomBlock() local
2357 blockParams.weightGridWidth = rnd.getInt(2, blockSize.x()); in generateRandomBlock()
2358 blockParams.weightGridHeight = rnd.getInt(2, blockSize.y()); in generateRandomBlock()
2359 …blockParams.weightISEParams = s_weightISEParamsCandidates[rnd.getInt(0, DE_LENGTH_OF_ARRAY(s_we… in generateRandomBlock()
2360 blockParams.numPartitions = rnd.getInt(1, 4); in generateRandomBlock()
2361 blockParams.isMultiPartSingleCemMode = rnd.getFloat() < 0.25f; in generateRandomBlock()
2362 blockParams.isDualPlane = blockParams.numPartitions != 4 && rnd.getBool(); in generateRandomBlock()
2363 blockParams.ccs = rnd.getInt(0, 3); in generateRandomBlock()
2364 blockParams.partitionSeed = rnd.getInt(0, 1023); in generateRandomBlock()
2366 blockParams.colorEndpointModes[0] = rnd.getInt(0, 15); in generateRandomBlock()
2369 const int cemDiff = blockParams.isMultiPartSingleCemMode ? 0 in generateRandomBlock()
2370 : blockParams.colorEndpointModes[0] == 0 ? 1 in generateRandomBlock()
2371 : blockParams.colorEndpointModes[0] == 15 ? -1 in generateRandomBlock()
2374 for (int i = 1; i < blockParams.numPartitions; i++) in generateRandomBlock()
2375 …blockParams.colorEndpointModes[i] = blockParams.colorEndpointModes[0] + (cemDiff == -1 ? rnd.getIn… in generateRandomBlock()
2377 } while (!isValidBlockParams(blockParams, blockSize.x(), blockSize.y())); in generateRandomBlock()
2386 const int numValues = setWeights ? computeNumWeights(blockParams) : in generateRandomBlock()
2387 …computeNumColorEndpointValues(&blockParams.colorEndpointModes[0], blockParams.numPartitions, block… in generateRandomBlock()
2388 …iseParams = setWeights ? blockParams.weightISEParams : computeMaximumRangeISEParams(computeNumBits… in generateRandomBlock()
2417 generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), iseInputs).assignToMemory(dst); in generateRandomBlock()
2489 NormalBlockParams blockParams; in generateBlockCaseTestData() local
2492 blockParams.weightGridWidth = weightGridWidth; in generateBlockCaseTestData()
2493 blockParams.weightGridHeight = weightGridHeight; in generateBlockCaseTestData()
2494 blockParams.isDualPlane = isDualPlane != 0; in generateBlockCaseTestData()
2495 blockParams.weightISEParams = s_weightISEParamsCandidates[iseParamsNdx]; in generateBlockCaseTestData()
2496 blockParams.ccs = 0; in generateBlockCaseTestData()
2497 blockParams.numPartitions = 1; in generateBlockCaseTestData()
2498 blockParams.colorEndpointModes[0] = 0; in generateBlockCaseTestData()
2500 if (isValidBlockParams(blockParams, blockSize.x(), blockSize.y())) in generateBlockCaseTestData()
2501 …generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), generateDefaultISEInputs(blockParam… in generateBlockCaseTestData()
2515 NormalBlockParams blockParams; in generateBlockCaseTestData() local
2517 blockParams.weightGridWidth = 4; in generateBlockCaseTestData()
2518 blockParams.weightGridHeight = 4; in generateBlockCaseTestData()
2519 blockParams.weightISEParams = iseParams; in generateBlockCaseTestData()
2520 blockParams.numPartitions = 1; in generateBlockCaseTestData()
2521 …blockParams.isDualPlane = blockParams.weightGridWidth * blockParams.weightGridHeight < 24 ? tru… in generateBlockCaseTestData()
2522 blockParams.ccs = 0; in generateBlockCaseTestData()
2523 blockParams.colorEndpointModes[0] = 0; in generateBlockCaseTestData()
2525 while (!isValidBlockParams(blockParams, blockSize.x(), blockSize.y())) in generateBlockCaseTestData()
2527 blockParams.weightGridWidth--; in generateBlockCaseTestData()
2528 blockParams.weightGridHeight--; in generateBlockCaseTestData()
2532 const int numWeights = computeNumWeights(blockParams); in generateBlockCaseTestData()
2537 NormalBlockISEInputs iseInputs = generateDefaultISEInputs(blockParams); in generateBlockCaseTestData()
2546 … generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), iseInputs).pushBytesToVector(dst); in generateBlockCaseTestData()
2552 NormalBlockISEInputs iseInputs = generateDefaultISEInputs(blockParams); in generateBlockCaseTestData()
2569 … generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), iseInputs).pushBytesToVector(dst); in generateBlockCaseTestData()
2588 NormalBlockParams blockParams; in generateBlockCaseTestData() local
2589 blockParams.weightGridWidth = 4; in generateBlockCaseTestData()
2590 blockParams.weightGridHeight = 4; in generateBlockCaseTestData()
2591 blockParams.isDualPlane = isDualPlane != 0; in generateBlockCaseTestData()
2592 blockParams.ccs = 0; in generateBlockCaseTestData()
2593 blockParams.numPartitions = numPartitions; in generateBlockCaseTestData()
2594 blockParams.isMultiPartSingleCemMode = true; in generateBlockCaseTestData()
2595 blockParams.colorEndpointModes[0] = singleCem; in generateBlockCaseTestData()
2596 blockParams.partitionSeed = 634; in generateBlockCaseTestData()
2600 blockParams.weightISEParams = s_weightISEParamsCandidates[iseParamsNdx]; in generateBlockCaseTestData()
2601 if (isValidBlockParams(blockParams, blockSize.x(), blockSize.y())) in generateBlockCaseTestData()
2603 …generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), generateDefaultISEInputs(blockParam… in generateBlockCaseTestData()
2616 NormalBlockParams blockParams; in generateBlockCaseTestData() local
2617 blockParams.weightGridWidth = 4; in generateBlockCaseTestData()
2618 blockParams.weightGridHeight = 4; in generateBlockCaseTestData()
2619 blockParams.isDualPlane = isDualPlane != 0; in generateBlockCaseTestData()
2620 blockParams.ccs = 0; in generateBlockCaseTestData()
2621 blockParams.numPartitions = numPartitions; in generateBlockCaseTestData()
2622 blockParams.isMultiPartSingleCemMode = false; in generateBlockCaseTestData()
2623 blockParams.colorEndpointModes[0] = cem0; in generateBlockCaseTestData()
2624 blockParams.colorEndpointModes[1] = cem1; in generateBlockCaseTestData()
2625 blockParams.colorEndpointModes[2] = cem2; in generateBlockCaseTestData()
2626 blockParams.colorEndpointModes[3] = cem3; in generateBlockCaseTestData()
2627 blockParams.partitionSeed = 634; in generateBlockCaseTestData()
2630 …const deUint32 minCem = *std::min_element(&blockParams.colorEndpointModes[0], &blockParams.colorE… in generateBlockCaseTestData()
2631 …const deUint32 maxCem = *std::max_element(&blockParams.colorEndpointModes[0], &blockParams.colorE… in generateBlockCaseTestData()
2641 blockParams.weightISEParams = s_weightISEParamsCandidates[iseParamsNdx]; in generateBlockCaseTestData()
2642 if (isValidBlockParams(blockParams, blockSize.x(), blockSize.y())) in generateBlockCaseTestData()
2644 …generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), generateDefaultISEInputs(blockParam… in generateBlockCaseTestData()
2660 NormalBlockParams blockParams; in generateBlockCaseTestData() local
2661 blockParams.weightGridWidth = 4; in generateBlockCaseTestData()
2662 blockParams.weightGridHeight = 4; in generateBlockCaseTestData()
2663 blockParams.weightISEParams = ISEParams(ISEMODE_PLAIN_BIT, 2); in generateBlockCaseTestData()
2664 blockParams.isDualPlane = false; in generateBlockCaseTestData()
2665 blockParams.numPartitions = numPartitions; in generateBlockCaseTestData()
2666 blockParams.isMultiPartSingleCemMode = true; in generateBlockCaseTestData()
2667 blockParams.colorEndpointModes[0] = 0; in generateBlockCaseTestData()
2668 blockParams.partitionSeed = partitionSeed; in generateBlockCaseTestData()
2670 …generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), generateDefaultISEInputs(blockParam… in generateBlockCaseTestData()
2697 NormalBlockParams blockParams; in generateBlockCaseTestData() local
2698 blockParams.weightGridWidth = 3; in generateBlockCaseTestData()
2699 blockParams.weightGridHeight = 4; in generateBlockCaseTestData()
2700 blockParams.weightISEParams = ISEParams(ISEMODE_PLAIN_BIT, 2); in generateBlockCaseTestData()
2701 blockParams.isDualPlane = false; in generateBlockCaseTestData()
2702 blockParams.numPartitions = 1; in generateBlockCaseTestData()
2703 blockParams.colorEndpointModes[0] = cem; in generateBlockCaseTestData()
2706 const int numBitsForEndpoints = computeNumBitsForColorEndpoints(blockParams); in generateBlockCaseTestData()
2714 NormalBlockISEInputs iseInputs = generateDefaultISEInputs(blockParams); in generateBlockCaseTestData()
2726 … generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), iseInputs).pushBytesToVector(dst); in generateBlockCaseTestData()
2750 NormalBlockParams blockParams; in generateBlockCaseTestData() local
2751 blockParams.weightGridWidth = weightGridWidth; in generateBlockCaseTestData()
2752 blockParams.weightGridHeight = weightGridHeight; in generateBlockCaseTestData()
2753 blockParams.weightISEParams = s_weightISEParamsCandidates[weightISEParamsNdx]; in generateBlockCaseTestData()
2754 blockParams.isDualPlane = isDual != 0; in generateBlockCaseTestData()
2755 blockParams.ccs = 0; in generateBlockCaseTestData()
2756 blockParams.numPartitions = numPartitions; in generateBlockCaseTestData()
2757 blockParams.isMultiPartSingleCemMode = true; in generateBlockCaseTestData()
2758 blockParams.colorEndpointModes[0] = 12; in generateBlockCaseTestData()
2759 blockParams.partitionSeed = 634; in generateBlockCaseTestData()
2761 if (isValidBlockParams(blockParams, blockSize.x(), blockSize.y())) in generateBlockCaseTestData()
2763 …rams endpointISEParams = computeMaximumRangeISEParams(computeNumBitsForColorEndpoints(blockParams), in generateBlockCaseTestData()
2764 … computeNumColorEndpointValues(&blockParams.colorEndpointModes[0], numPartitions, true)); in generateBlockCaseTestData()
2770 …orEndpoints = computeNumColorEndpointValues(&blockParams.colorEndpointModes[0], numPartitions, bl… in generateBlockCaseTestData()
2776 NormalBlockISEInputs iseInputs = generateDefaultISEInputs(blockParams); in generateBlockCaseTestData()
2785 … generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), iseInputs).pushBytesToVector(dst); in generateBlockCaseTestData()
2791 NormalBlockISEInputs iseInputs = generateDefaultISEInputs(blockParams); in generateBlockCaseTestData()
2808 … generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), iseInputs).pushBytesToVector(dst); in generateBlockCaseTestData()
2827 NormalBlockParams blockParams; in generateBlockCaseTestData() local
2828 blockParams.weightGridWidth = 3; in generateBlockCaseTestData()
2829 blockParams.weightGridHeight = 3; in generateBlockCaseTestData()
2830 blockParams.weightISEParams = ISEParams(ISEMODE_PLAIN_BIT, 2); in generateBlockCaseTestData()
2831 blockParams.isDualPlane = true; in generateBlockCaseTestData()
2832 blockParams.ccs = ccs; in generateBlockCaseTestData()
2833 blockParams.numPartitions = numPartitions; in generateBlockCaseTestData()
2834 blockParams.isMultiPartSingleCemMode = true; in generateBlockCaseTestData()
2835 blockParams.colorEndpointModes[0] = 8; in generateBlockCaseTestData()
2836 blockParams.partitionSeed = 634; in generateBlockCaseTestData()
2838 …generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), generateDefaultISEInputs(blockParam… in generateBlockCaseTestData()
2909 NormalBlockParams blockParams; in generateDummyNormalBlocks() local
2911 blockParams.weightGridWidth = 3; in generateDummyNormalBlocks()
2912 blockParams.weightGridHeight = 3; in generateDummyNormalBlocks()
2913 blockParams.weightISEParams = ISEParams(ISEMODE_PLAIN_BIT, 5); in generateDummyNormalBlocks()
2914 blockParams.isDualPlane = false; in generateDummyNormalBlocks()
2915 blockParams.numPartitions = 1; in generateDummyNormalBlocks()
2916 blockParams.colorEndpointModes[0] = 8; in generateDummyNormalBlocks()
2918 NormalBlockISEInputs iseInputs = generateDefaultISEInputs(blockParams); in generateDummyNormalBlocks()
2921 const int numWeights = computeNumWeights(blockParams); in generateDummyNormalBlocks()
2922 const int weightRangeMax = computeISERangeMax(blockParams.weightISEParams); in generateDummyNormalBlocks()
2929 …generateNormalBlock(blockParams, blockWidth, blockHeight, iseInputs).assignToMemory(dst + blockNdx… in generateDummyNormalBlocks()