Lines Matching refs:blockParams

458 static void writeBlockMode (AssignBlock128& dst, const NormalBlockParams& blockParams)  in writeBlockMode()  argument
460 const deUint32 d = blockParams.isDualPlane != 0; in writeBlockMode()
470 switch (computeISERangeMax(blockParams.weightISEParams)) in writeBlockMode()
532 if (de::inRange(blockParams.weightGridWidth, widthMin, widthMax) && in writeBlockMode()
533 de::inRange(blockParams.weightGridHeight, heightMin, heightMax)) in writeBlockMode()
539 widthVariable = blockParams.weightGridWidth - layout.gridWidthConstantTerm; in writeBlockMode()
540 heightVariable = blockParams.weightGridHeight - layout.gridHeightConstantTerm; in writeBlockMode()
830 static AssignBlock128 generateNormalBlock (const NormalBlockParams& blockParams, int blockWidth, in… in generateNormalBlock() argument
832 DE_ASSERT(isValidBlockParams(blockParams, blockWidth, blockHeight)); in generateNormalBlock()
837 const int numWeights = computeNumWeights(blockParams); in generateNormalBlock()
838 const int numWeightBits = computeNumRequiredBits(blockParams.weightISEParams, numWeights); in generateNormalBlock()
840 writeBlockMode(block, blockParams); in generateNormalBlock()
842 block.setBits(11, 12, blockParams.numPartitions - 1); in generateNormalBlock()
843 if (blockParams.numPartitions > 1) in generateNormalBlock()
844 block.setBits(13, 22, blockParams.partitionSeed); in generateNormalBlock()
847 …const int extraCemBitsStart = 127 - numWeightBits - (blockParams.numPartitions == 1 || blockParams in generateNormalBlock()
848 : blockParams.numPartitions == 4 ? 7 in generateNormalBlock()
849 : blockParams.numPartitions == 3 ? 4 in generateNormalBlock()
850 : blockParams.numPartitions == 2 ? 1 in generateNormalBlock()
853 …writeColorEndpointModes(block, &blockParams.colorEndpointModes[0], blockParams.isMultiPartSingleCe… in generateNormalBlock()
855 if (blockParams.isDualPlane) in generateNormalBlock()
856 block.setBits(extraCemBitsStart-2, extraCemBitsStart-1, blockParams.ccs); in generateNormalBlock()
859 writeWeightData(block, blockParams.weightISEParams, iseInputs.weight, numWeights); in generateNormalBlock()
862 …alues = computeNumColorEndpointValues(&blockParams.colorEndpointModes[0], blockParams.numPartitio… in generateNormalBlock()
863 const int numBitsForColorEndpoints = computeNumBitsForColorEndpoints(blockParams); in generateNormalBlock()
864 const int colorEndpointDataStartNdx = blockParams.numPartitions == 1 ? 17 : 29; in generateNormalBlock()
874 static NormalBlockISEInputs generateDefaultISEInputs (const NormalBlockParams& blockParams) in generateDefaultISEInputs() argument
881 const int numWeights = computeNumWeights(blockParams); in generateDefaultISEInputs()
882 const int weightRangeMax = computeISERangeMax(blockParams.weightISEParams); in generateDefaultISEInputs()
884 if (blockParams.isDualPlane) in generateDefaultISEInputs()
902 …alues = computeNumColorEndpointValues(&blockParams.colorEndpointModes[0], blockParams.numPartitio… in generateDefaultISEInputs()
903 const int numBitsForColorEndpoints = computeNumBitsForColorEndpoints(blockParams); in generateDefaultISEInputs()
1020 NormalBlockParams blockParams; in generateBlockCaseTestData() local
1023 blockParams.weightGridWidth = weightGridWidth; in generateBlockCaseTestData()
1024 blockParams.weightGridHeight = weightGridHeight; in generateBlockCaseTestData()
1025 blockParams.isDualPlane = isDualPlane != 0; in generateBlockCaseTestData()
1026 blockParams.weightISEParams = weightISEParamsCandidates[iseParamsNdx]; in generateBlockCaseTestData()
1027 blockParams.ccs = 0; in generateBlockCaseTestData()
1028 blockParams.numPartitions = 1; in generateBlockCaseTestData()
1029 blockParams.colorEndpointModes[0] = 0; in generateBlockCaseTestData()
1031 if (isValidBlockParams(blockParams, blockSize.x(), blockSize.y())) in generateBlockCaseTestData()
1032 …generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), generateDefaultISEInputs(blockParam… in generateBlockCaseTestData()
1046 NormalBlockParams blockParams; in generateBlockCaseTestData() local
1048 blockParams.weightGridWidth = 4; in generateBlockCaseTestData()
1049 blockParams.weightGridHeight = 4; in generateBlockCaseTestData()
1050 blockParams.weightISEParams = iseParams; in generateBlockCaseTestData()
1051 blockParams.numPartitions = 1; in generateBlockCaseTestData()
1052blockParams.isDualPlane = blockParams.weightGridWidth * blockParams.weightGridHeight < 24 ? tru… in generateBlockCaseTestData()
1053 blockParams.ccs = 0; in generateBlockCaseTestData()
1054 blockParams.colorEndpointModes[0] = 0; in generateBlockCaseTestData()
1056 while (!isValidBlockParams(blockParams, blockSize.x(), blockSize.y())) in generateBlockCaseTestData()
1058 blockParams.weightGridWidth--; in generateBlockCaseTestData()
1059 blockParams.weightGridHeight--; in generateBlockCaseTestData()
1063 const int numWeights = computeNumWeights(blockParams); in generateBlockCaseTestData()
1068 NormalBlockISEInputs iseInputs = generateDefaultISEInputs(blockParams); in generateBlockCaseTestData()
1077 … generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), iseInputs).pushBytesToVector(dst); in generateBlockCaseTestData()
1083 NormalBlockISEInputs iseInputs = generateDefaultISEInputs(blockParams); in generateBlockCaseTestData()
1100 … generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), iseInputs).pushBytesToVector(dst); in generateBlockCaseTestData()
1119 NormalBlockParams blockParams; in generateBlockCaseTestData() local
1120 blockParams.weightGridWidth = 4; in generateBlockCaseTestData()
1121 blockParams.weightGridHeight = 4; in generateBlockCaseTestData()
1122 blockParams.isDualPlane = isDualPlane != 0; in generateBlockCaseTestData()
1123 blockParams.ccs = 0; in generateBlockCaseTestData()
1124 blockParams.numPartitions = numPartitions; in generateBlockCaseTestData()
1125 blockParams.isMultiPartSingleCemMode = true; in generateBlockCaseTestData()
1126 blockParams.colorEndpointModes[0] = singleCem; in generateBlockCaseTestData()
1127 blockParams.partitionSeed = 634; in generateBlockCaseTestData()
1131 blockParams.weightISEParams = weightISEParamsCandidates[iseParamsNdx]; in generateBlockCaseTestData()
1132 if (isValidBlockParams(blockParams, blockSize.x(), blockSize.y())) in generateBlockCaseTestData()
1134 …generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), generateDefaultISEInputs(blockParam… in generateBlockCaseTestData()
1147 NormalBlockParams blockParams; in generateBlockCaseTestData() local
1148 blockParams.weightGridWidth = 4; in generateBlockCaseTestData()
1149 blockParams.weightGridHeight = 4; in generateBlockCaseTestData()
1150 blockParams.isDualPlane = isDualPlane != 0; in generateBlockCaseTestData()
1151 blockParams.ccs = 0; in generateBlockCaseTestData()
1152 blockParams.numPartitions = numPartitions; in generateBlockCaseTestData()
1153 blockParams.isMultiPartSingleCemMode = false; in generateBlockCaseTestData()
1154 blockParams.colorEndpointModes[0] = cem0; in generateBlockCaseTestData()
1155 blockParams.colorEndpointModes[1] = cem1; in generateBlockCaseTestData()
1156 blockParams.colorEndpointModes[2] = cem2; in generateBlockCaseTestData()
1157 blockParams.colorEndpointModes[3] = cem3; in generateBlockCaseTestData()
1158 blockParams.partitionSeed = 634; in generateBlockCaseTestData()
1161 …const deUint32 minCem = *std::min_element(&blockParams.colorEndpointModes[0], &blockParams.colorE… in generateBlockCaseTestData()
1162 …const deUint32 maxCem = *std::max_element(&blockParams.colorEndpointModes[0], &blockParams.colorE… in generateBlockCaseTestData()
1172 blockParams.weightISEParams = weightISEParamsCandidates[iseParamsNdx]; in generateBlockCaseTestData()
1173 if (isValidBlockParams(blockParams, blockSize.x(), blockSize.y())) in generateBlockCaseTestData()
1175 …generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), generateDefaultISEInputs(blockParam… in generateBlockCaseTestData()
1191 NormalBlockParams blockParams; in generateBlockCaseTestData() local
1192 blockParams.weightGridWidth = 4; in generateBlockCaseTestData()
1193 blockParams.weightGridHeight = 4; in generateBlockCaseTestData()
1194 blockParams.weightISEParams = ISEParams(ISEMODE_PLAIN_BIT, 2); in generateBlockCaseTestData()
1195 blockParams.isDualPlane = false; in generateBlockCaseTestData()
1196 blockParams.numPartitions = numPartitions; in generateBlockCaseTestData()
1197 blockParams.isMultiPartSingleCemMode = true; in generateBlockCaseTestData()
1198 blockParams.colorEndpointModes[0] = 0; in generateBlockCaseTestData()
1199 blockParams.partitionSeed = partitionSeed; in generateBlockCaseTestData()
1201 …generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), generateDefaultISEInputs(blockParam… in generateBlockCaseTestData()
1228 NormalBlockParams blockParams; in generateBlockCaseTestData() local
1229 blockParams.weightGridWidth = 3; in generateBlockCaseTestData()
1230 blockParams.weightGridHeight = 4; in generateBlockCaseTestData()
1231 blockParams.weightISEParams = ISEParams(ISEMODE_PLAIN_BIT, 2); in generateBlockCaseTestData()
1232 blockParams.isDualPlane = false; in generateBlockCaseTestData()
1233 blockParams.numPartitions = 1; in generateBlockCaseTestData()
1234 blockParams.colorEndpointModes[0] = cem; in generateBlockCaseTestData()
1237 const int numBitsForEndpoints = computeNumBitsForColorEndpoints(blockParams); in generateBlockCaseTestData()
1245 NormalBlockISEInputs iseInputs = generateDefaultISEInputs(blockParams); in generateBlockCaseTestData()
1257 … generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), iseInputs).pushBytesToVector(dst); in generateBlockCaseTestData()
1281 NormalBlockParams blockParams; in generateBlockCaseTestData() local
1282 blockParams.weightGridWidth = weightGridWidth; in generateBlockCaseTestData()
1283 blockParams.weightGridHeight = weightGridHeight; in generateBlockCaseTestData()
1284 blockParams.weightISEParams = weightISEParamsCandidates[weightISEParamsNdx]; in generateBlockCaseTestData()
1285 blockParams.isDualPlane = isDual != 0; in generateBlockCaseTestData()
1286 blockParams.ccs = 0; in generateBlockCaseTestData()
1287 blockParams.numPartitions = numPartitions; in generateBlockCaseTestData()
1288 blockParams.isMultiPartSingleCemMode = true; in generateBlockCaseTestData()
1289 blockParams.colorEndpointModes[0] = 12; in generateBlockCaseTestData()
1290 blockParams.partitionSeed = 634; in generateBlockCaseTestData()
1292 if (isValidBlockParams(blockParams, blockSize.x(), blockSize.y())) in generateBlockCaseTestData()
1294 …rams endpointISEParams = computeMaximumRangeISEParams(computeNumBitsForColorEndpoints(blockParams), in generateBlockCaseTestData()
1295 … computeNumColorEndpointValues(&blockParams.colorEndpointModes[0], numPartitions, true)); in generateBlockCaseTestData()
1301 …orEndpoints = computeNumColorEndpointValues(&blockParams.colorEndpointModes[0], numPartitions, bl… in generateBlockCaseTestData()
1307 NormalBlockISEInputs iseInputs = generateDefaultISEInputs(blockParams); in generateBlockCaseTestData()
1316 … generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), iseInputs).pushBytesToVector(dst); in generateBlockCaseTestData()
1322 NormalBlockISEInputs iseInputs = generateDefaultISEInputs(blockParams); in generateBlockCaseTestData()
1339 … generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), iseInputs).pushBytesToVector(dst); in generateBlockCaseTestData()
1358 NormalBlockParams blockParams; in generateBlockCaseTestData() local
1359 blockParams.weightGridWidth = 3; in generateBlockCaseTestData()
1360 blockParams.weightGridHeight = 3; in generateBlockCaseTestData()
1361 blockParams.weightISEParams = ISEParams(ISEMODE_PLAIN_BIT, 2); in generateBlockCaseTestData()
1362 blockParams.isDualPlane = true; in generateBlockCaseTestData()
1363 blockParams.ccs = ccs; in generateBlockCaseTestData()
1364 blockParams.numPartitions = numPartitions; in generateBlockCaseTestData()
1365 blockParams.isMultiPartSingleCemMode = true; in generateBlockCaseTestData()
1366 blockParams.colorEndpointModes[0] = 8; in generateBlockCaseTestData()
1367 blockParams.partitionSeed = 634; in generateBlockCaseTestData()
1369 …generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), generateDefaultISEInputs(blockParam… in generateBlockCaseTestData()
1402 NormalBlockParams blockParams; in generateBlockCaseTestData() local
1406 blockParams.weightGridWidth = rnd.getInt(2, blockSize.x()); in generateBlockCaseTestData()
1407 blockParams.weightGridHeight = rnd.getInt(2, blockSize.y()); in generateBlockCaseTestData()
1408blockParams.weightISEParams = weightISEParamsCandidates[rnd.getInt(0, DE_LENGTH_OF_ARRAY(weight… in generateBlockCaseTestData()
1409 blockParams.numPartitions = rnd.getInt(1, 4); in generateBlockCaseTestData()
1410 blockParams.isMultiPartSingleCemMode = rnd.getFloat() < 0.25f; in generateBlockCaseTestData()
1411 blockParams.isDualPlane = blockParams.numPartitions != 4 && rnd.getBool(); in generateBlockCaseTestData()
1412 blockParams.ccs = rnd.getInt(0, 3); in generateBlockCaseTestData()
1413 blockParams.partitionSeed = rnd.getInt(0, 1023); in generateBlockCaseTestData()
1415 blockParams.colorEndpointModes[0] = rnd.getInt(0, 15); in generateBlockCaseTestData()
1418 const int cemDiff = blockParams.isMultiPartSingleCemMode ? 0 in generateBlockCaseTestData()
1419 : blockParams.colorEndpointModes[0] == 0 ? 1 in generateBlockCaseTestData()
1420 : blockParams.colorEndpointModes[0] == 15 ? -1 in generateBlockCaseTestData()
1423 for (int i = 1; i < blockParams.numPartitions; i++) in generateBlockCaseTestData()
1424blockParams.colorEndpointModes[i] = blockParams.colorEndpointModes[0] + (cemDiff == -1 ? rnd.getIn… in generateBlockCaseTestData()
1426 } while (!isValidBlockParams(blockParams, blockSize.x(), blockSize.y())); in generateBlockCaseTestData()
1435 const int numValues = setWeights ? computeNumWeights(blockParams) : in generateBlockCaseTestData()
1436 …computeNumColorEndpointValues(&blockParams.colorEndpointModes[0], blockParams.numPartitions, block… in generateBlockCaseTestData()
1437 …iseParams = setWeights ? blockParams.weightISEParams : computeMaximumRangeISEParams(computeNumBits… in generateBlockCaseTestData()
1466 … generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), iseInputs).pushBytesToVector(dst); in generateBlockCaseTestData()
2002 NormalBlockParams blockParams; in generateDefaultBlockData() local
2004 blockParams.weightGridWidth = 3; in generateDefaultBlockData()
2005 blockParams.weightGridHeight = 3; in generateDefaultBlockData()
2006 blockParams.weightISEParams = ISEParams(ISEMODE_PLAIN_BIT, 5); in generateDefaultBlockData()
2007 blockParams.isDualPlane = false; in generateDefaultBlockData()
2008 blockParams.numPartitions = 1; in generateDefaultBlockData()
2009 blockParams.colorEndpointModes[0] = 8; in generateDefaultBlockData()
2011 NormalBlockISEInputs iseInputs = generateDefaultISEInputs(blockParams); in generateDefaultBlockData()
2014 const int numWeights = computeNumWeights(blockParams); in generateDefaultBlockData()
2015 const int weightRangeMax = computeISERangeMax(blockParams.weightISEParams); in generateDefaultBlockData()
2022 …generateNormalBlock(blockParams, blockWidth, blockHeight, iseInputs).assignToMemory(dst + blockNdx… in generateDefaultBlockData()