• Home
  • Raw
  • Download

Lines Matching refs:blockParams

1873 static void writeBlockMode (AssignBlock128& dst, const NormalBlockParams& blockParams)  in writeBlockMode()  argument
1875 const deUint32 d = blockParams.isDualPlane != 0; in writeBlockMode()
1885 switch (computeISERangeMax(blockParams.weightISEParams)) in writeBlockMode()
1947 if (de::inRange(blockParams.weightGridWidth, widthMin, widthMax) && in writeBlockMode()
1948 de::inRange(blockParams.weightGridHeight, heightMin, heightMax)) in writeBlockMode()
1954 widthVariable = blockParams.weightGridWidth - layout.gridWidthConstantTerm; in writeBlockMode()
1955 heightVariable = blockParams.weightGridHeight - layout.gridHeightConstantTerm; in writeBlockMode()
2207 static AssignBlock128 generateNormalBlock (const NormalBlockParams& blockParams, int blockWidth, in… in generateNormalBlock() argument
2209 DE_ASSERT(isValidBlockParams(blockParams, blockWidth, blockHeight)); in generateNormalBlock()
2214 const int numWeights = computeNumWeights(blockParams); in generateNormalBlock()
2215 const int numWeightBits = computeNumRequiredBits(blockParams.weightISEParams, numWeights); in generateNormalBlock()
2217 writeBlockMode(block, blockParams); in generateNormalBlock()
2219 block.setBits(11, 12, blockParams.numPartitions - 1); in generateNormalBlock()
2220 if (blockParams.numPartitions > 1) in generateNormalBlock()
2221 block.setBits(13, 22, blockParams.partitionSeed); 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 …writeColorEndpointModes(block, &blockParams.colorEndpointModes[0], blockParams.isMultiPartSingleCe… in generateNormalBlock()
2232 if (blockParams.isDualPlane) in generateNormalBlock()
2233 block.setBits(extraCemBitsStart-2, extraCemBitsStart-1, blockParams.ccs); in generateNormalBlock()
2236 writeWeightData(block, blockParams.weightISEParams, iseInputs.weight, numWeights); in generateNormalBlock()
2239 …alues = computeNumColorEndpointValues(&blockParams.colorEndpointModes[0], blockParams.numPartitio… in generateNormalBlock()
2240 const int numBitsForColorEndpoints = computeNumBitsForColorEndpoints(blockParams); in generateNormalBlock()
2241 const int colorEndpointDataStartNdx = blockParams.numPartitions == 1 ? 17 : 29; in generateNormalBlock()
2251 static NormalBlockISEInputs generateDefaultISEInputs (const NormalBlockParams& blockParams) in generateDefaultISEInputs() argument
2258 const int numWeights = computeNumWeights(blockParams); in generateDefaultISEInputs()
2259 const int weightRangeMax = computeISERangeMax(blockParams.weightISEParams); in generateDefaultISEInputs()
2261 if (blockParams.isDualPlane) in generateDefaultISEInputs()
2279 …alues = computeNumColorEndpointValues(&blockParams.colorEndpointModes[0], blockParams.numPartitio… in generateDefaultISEInputs()
2280 const int numBitsForColorEndpoints = computeNumBitsForColorEndpoints(blockParams); in generateDefaultISEInputs()
2327 NormalBlockParams blockParams; in generateRandomBlock() local
2331 blockParams.weightGridWidth = rnd.getInt(2, blockSize.x()); in generateRandomBlock()
2332 blockParams.weightGridHeight = rnd.getInt(2, blockSize.y()); in generateRandomBlock()
2333blockParams.weightISEParams = s_weightISEParamsCandidates[rnd.getInt(0, DE_LENGTH_OF_ARRAY(s_we… in generateRandomBlock()
2334 blockParams.numPartitions = rnd.getInt(1, 4); in generateRandomBlock()
2335 blockParams.isMultiPartSingleCemMode = rnd.getFloat() < 0.25f; in generateRandomBlock()
2336 blockParams.isDualPlane = blockParams.numPartitions != 4 && rnd.getBool(); in generateRandomBlock()
2337 blockParams.ccs = rnd.getInt(0, 3); in generateRandomBlock()
2338 blockParams.partitionSeed = rnd.getInt(0, 1023); in generateRandomBlock()
2340 blockParams.colorEndpointModes[0] = rnd.getInt(0, 15); in generateRandomBlock()
2343 const int cemDiff = blockParams.isMultiPartSingleCemMode ? 0 in generateRandomBlock()
2344 : blockParams.colorEndpointModes[0] == 0 ? 1 in generateRandomBlock()
2345 : blockParams.colorEndpointModes[0] == 15 ? -1 in generateRandomBlock()
2348 for (int i = 1; i < blockParams.numPartitions; i++) in generateRandomBlock()
2349blockParams.colorEndpointModes[i] = blockParams.colorEndpointModes[0] + (cemDiff == -1 ? rnd.getIn… in generateRandomBlock()
2351 } while (!isValidBlockParams(blockParams, blockSize.x(), blockSize.y())); in generateRandomBlock()
2360 const int numValues = setWeights ? computeNumWeights(blockParams) : in generateRandomBlock()
2361 …computeNumColorEndpointValues(&blockParams.colorEndpointModes[0], blockParams.numPartitions, block… in generateRandomBlock()
2362 …iseParams = setWeights ? blockParams.weightISEParams : computeMaximumRangeISEParams(computeNumBits… in generateRandomBlock()
2391 generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), iseInputs).assignToMemory(dst); in generateRandomBlock()
2463 NormalBlockParams blockParams; in generateBlockCaseTestData() local
2466 blockParams.weightGridWidth = weightGridWidth; in generateBlockCaseTestData()
2467 blockParams.weightGridHeight = weightGridHeight; in generateBlockCaseTestData()
2468 blockParams.isDualPlane = isDualPlane != 0; in generateBlockCaseTestData()
2469 blockParams.weightISEParams = s_weightISEParamsCandidates[iseParamsNdx]; in generateBlockCaseTestData()
2470 blockParams.ccs = 0; in generateBlockCaseTestData()
2471 blockParams.numPartitions = 1; in generateBlockCaseTestData()
2472 blockParams.colorEndpointModes[0] = 0; in generateBlockCaseTestData()
2474 if (isValidBlockParams(blockParams, blockSize.x(), blockSize.y())) in generateBlockCaseTestData()
2475 …generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), generateDefaultISEInputs(blockParam… in generateBlockCaseTestData()
2489 NormalBlockParams blockParams; in generateBlockCaseTestData() local
2491 blockParams.weightGridWidth = 4; in generateBlockCaseTestData()
2492 blockParams.weightGridHeight = 4; in generateBlockCaseTestData()
2493 blockParams.weightISEParams = iseParams; in generateBlockCaseTestData()
2494 blockParams.numPartitions = 1; in generateBlockCaseTestData()
2495blockParams.isDualPlane = blockParams.weightGridWidth * blockParams.weightGridHeight < 24 ? tru… in generateBlockCaseTestData()
2496 blockParams.ccs = 0; in generateBlockCaseTestData()
2497 blockParams.colorEndpointModes[0] = 0; in generateBlockCaseTestData()
2499 while (!isValidBlockParams(blockParams, blockSize.x(), blockSize.y())) in generateBlockCaseTestData()
2501 blockParams.weightGridWidth--; in generateBlockCaseTestData()
2502 blockParams.weightGridHeight--; in generateBlockCaseTestData()
2506 const int numWeights = computeNumWeights(blockParams); in generateBlockCaseTestData()
2511 NormalBlockISEInputs iseInputs = generateDefaultISEInputs(blockParams); in generateBlockCaseTestData()
2520 … generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), iseInputs).pushBytesToVector(dst); in generateBlockCaseTestData()
2526 NormalBlockISEInputs iseInputs = generateDefaultISEInputs(blockParams); in generateBlockCaseTestData()
2543 … generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), iseInputs).pushBytesToVector(dst); in generateBlockCaseTestData()
2562 NormalBlockParams blockParams; in generateBlockCaseTestData() local
2563 blockParams.weightGridWidth = 4; in generateBlockCaseTestData()
2564 blockParams.weightGridHeight = 4; in generateBlockCaseTestData()
2565 blockParams.isDualPlane = isDualPlane != 0; in generateBlockCaseTestData()
2566 blockParams.ccs = 0; in generateBlockCaseTestData()
2567 blockParams.numPartitions = numPartitions; in generateBlockCaseTestData()
2568 blockParams.isMultiPartSingleCemMode = true; in generateBlockCaseTestData()
2569 blockParams.colorEndpointModes[0] = singleCem; in generateBlockCaseTestData()
2570 blockParams.partitionSeed = 634; in generateBlockCaseTestData()
2574 blockParams.weightISEParams = s_weightISEParamsCandidates[iseParamsNdx]; in generateBlockCaseTestData()
2575 if (isValidBlockParams(blockParams, blockSize.x(), blockSize.y())) in generateBlockCaseTestData()
2577 …generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), generateDefaultISEInputs(blockParam… in generateBlockCaseTestData()
2590 NormalBlockParams blockParams; in generateBlockCaseTestData() local
2591 blockParams.weightGridWidth = 4; in generateBlockCaseTestData()
2592 blockParams.weightGridHeight = 4; in generateBlockCaseTestData()
2593 blockParams.isDualPlane = isDualPlane != 0; in generateBlockCaseTestData()
2594 blockParams.ccs = 0; in generateBlockCaseTestData()
2595 blockParams.numPartitions = numPartitions; in generateBlockCaseTestData()
2596 blockParams.isMultiPartSingleCemMode = false; in generateBlockCaseTestData()
2597 blockParams.colorEndpointModes[0] = cem0; in generateBlockCaseTestData()
2598 blockParams.colorEndpointModes[1] = cem1; in generateBlockCaseTestData()
2599 blockParams.colorEndpointModes[2] = cem2; in generateBlockCaseTestData()
2600 blockParams.colorEndpointModes[3] = cem3; in generateBlockCaseTestData()
2601 blockParams.partitionSeed = 634; in generateBlockCaseTestData()
2604 …const deUint32 minCem = *std::min_element(&blockParams.colorEndpointModes[0], &blockParams.colorE… in generateBlockCaseTestData()
2605 …const deUint32 maxCem = *std::max_element(&blockParams.colorEndpointModes[0], &blockParams.colorE… in generateBlockCaseTestData()
2615 blockParams.weightISEParams = s_weightISEParamsCandidates[iseParamsNdx]; in generateBlockCaseTestData()
2616 if (isValidBlockParams(blockParams, blockSize.x(), blockSize.y())) in generateBlockCaseTestData()
2618 …generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), generateDefaultISEInputs(blockParam… in generateBlockCaseTestData()
2634 NormalBlockParams blockParams; in generateBlockCaseTestData() local
2635 blockParams.weightGridWidth = 4; in generateBlockCaseTestData()
2636 blockParams.weightGridHeight = 4; in generateBlockCaseTestData()
2637 blockParams.weightISEParams = ISEParams(ISEMODE_PLAIN_BIT, 2); in generateBlockCaseTestData()
2638 blockParams.isDualPlane = false; in generateBlockCaseTestData()
2639 blockParams.numPartitions = numPartitions; in generateBlockCaseTestData()
2640 blockParams.isMultiPartSingleCemMode = true; in generateBlockCaseTestData()
2641 blockParams.colorEndpointModes[0] = 0; in generateBlockCaseTestData()
2642 blockParams.partitionSeed = partitionSeed; in generateBlockCaseTestData()
2644 …generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), generateDefaultISEInputs(blockParam… in generateBlockCaseTestData()
2671 NormalBlockParams blockParams; in generateBlockCaseTestData() local
2672 blockParams.weightGridWidth = 3; in generateBlockCaseTestData()
2673 blockParams.weightGridHeight = 4; in generateBlockCaseTestData()
2674 blockParams.weightISEParams = ISEParams(ISEMODE_PLAIN_BIT, 2); in generateBlockCaseTestData()
2675 blockParams.isDualPlane = false; in generateBlockCaseTestData()
2676 blockParams.numPartitions = 1; in generateBlockCaseTestData()
2677 blockParams.colorEndpointModes[0] = cem; in generateBlockCaseTestData()
2680 const int numBitsForEndpoints = computeNumBitsForColorEndpoints(blockParams); in generateBlockCaseTestData()
2688 NormalBlockISEInputs iseInputs = generateDefaultISEInputs(blockParams); in generateBlockCaseTestData()
2700 … generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), iseInputs).pushBytesToVector(dst); in generateBlockCaseTestData()
2724 NormalBlockParams blockParams; in generateBlockCaseTestData() local
2725 blockParams.weightGridWidth = weightGridWidth; in generateBlockCaseTestData()
2726 blockParams.weightGridHeight = weightGridHeight; in generateBlockCaseTestData()
2727 blockParams.weightISEParams = s_weightISEParamsCandidates[weightISEParamsNdx]; in generateBlockCaseTestData()
2728 blockParams.isDualPlane = isDual != 0; in generateBlockCaseTestData()
2729 blockParams.ccs = 0; in generateBlockCaseTestData()
2730 blockParams.numPartitions = numPartitions; in generateBlockCaseTestData()
2731 blockParams.isMultiPartSingleCemMode = true; in generateBlockCaseTestData()
2732 blockParams.colorEndpointModes[0] = 12; in generateBlockCaseTestData()
2733 blockParams.partitionSeed = 634; in generateBlockCaseTestData()
2735 if (isValidBlockParams(blockParams, blockSize.x(), blockSize.y())) in generateBlockCaseTestData()
2737 …rams endpointISEParams = computeMaximumRangeISEParams(computeNumBitsForColorEndpoints(blockParams), in generateBlockCaseTestData()
2738 … computeNumColorEndpointValues(&blockParams.colorEndpointModes[0], numPartitions, true)); in generateBlockCaseTestData()
2744 …orEndpoints = computeNumColorEndpointValues(&blockParams.colorEndpointModes[0], numPartitions, bl… in generateBlockCaseTestData()
2750 NormalBlockISEInputs iseInputs = generateDefaultISEInputs(blockParams); in generateBlockCaseTestData()
2759 … generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), iseInputs).pushBytesToVector(dst); in generateBlockCaseTestData()
2765 NormalBlockISEInputs iseInputs = generateDefaultISEInputs(blockParams); in generateBlockCaseTestData()
2782 … generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), iseInputs).pushBytesToVector(dst); in generateBlockCaseTestData()
2801 NormalBlockParams blockParams; in generateBlockCaseTestData() local
2802 blockParams.weightGridWidth = 3; in generateBlockCaseTestData()
2803 blockParams.weightGridHeight = 3; in generateBlockCaseTestData()
2804 blockParams.weightISEParams = ISEParams(ISEMODE_PLAIN_BIT, 2); in generateBlockCaseTestData()
2805 blockParams.isDualPlane = true; in generateBlockCaseTestData()
2806 blockParams.ccs = ccs; in generateBlockCaseTestData()
2807 blockParams.numPartitions = numPartitions; in generateBlockCaseTestData()
2808 blockParams.isMultiPartSingleCemMode = true; in generateBlockCaseTestData()
2809 blockParams.colorEndpointModes[0] = 8; in generateBlockCaseTestData()
2810 blockParams.partitionSeed = 634; in generateBlockCaseTestData()
2812 …generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), generateDefaultISEInputs(blockParam… in generateBlockCaseTestData()
2883 NormalBlockParams blockParams; in generateDummyNormalBlocks() local
2885 blockParams.weightGridWidth = 3; in generateDummyNormalBlocks()
2886 blockParams.weightGridHeight = 3; in generateDummyNormalBlocks()
2887 blockParams.weightISEParams = ISEParams(ISEMODE_PLAIN_BIT, 5); in generateDummyNormalBlocks()
2888 blockParams.isDualPlane = false; in generateDummyNormalBlocks()
2889 blockParams.numPartitions = 1; in generateDummyNormalBlocks()
2890 blockParams.colorEndpointModes[0] = 8; in generateDummyNormalBlocks()
2892 NormalBlockISEInputs iseInputs = generateDefaultISEInputs(blockParams); in generateDummyNormalBlocks()
2895 const int numWeights = computeNumWeights(blockParams); in generateDummyNormalBlocks()
2896 const int weightRangeMax = computeISERangeMax(blockParams.weightISEParams); in generateDummyNormalBlocks()
2903 …generateNormalBlock(blockParams, blockWidth, blockHeight, iseInputs).assignToMemory(dst + blockNdx… in generateDummyNormalBlocks()