Home | History | Annotate | Download | only in common

Lines Matching defs:mode

114 	ISEMode		mode;
117 ISEParams (ISEMode mode_, int numBits_) : mode(mode_), numBits(numBits_) {}
122 switch (iseParams.mode)
298 deUint32 tq; //!< Trit or quint value, depending on ISE mode.
302 // Data from an ASTC block's "block mode" part (i.e. bits [0,10]).
325 inline int computeNumWeights (const ASTCBlockMode& mode)
327 return mode.weightGridWidth * mode.weightGridHeight * (mode.isDualPlane ? 2 : 1);
418 ISEMode& m = blockMode.weightISEParams.mode;
551 const deUint32 mode = blockData.getBits(25, 28);
553 endpointModesDst[i] = mode;
695 if (params.mode == ISEMODE_TRIT)
704 else if (params.mode == ISEMODE_QUINT)
715 DE_ASSERT(params.mode == ISEMODE_PLAIN_BIT);
723 if (iseParams.mode == ISEMODE_TRIT || iseParams.mode == ISEMODE_QUINT)
725 const int rangeCase = iseParams.numBits*2 - (iseParams.mode == ISEMODE_TRIT ? 2 : 1);
759 DE_ASSERT(iseParams.mode == ISEMODE_PLAIN_BIT);
789 inline bool isColorEndpointModeHDR (deUint32 mode)
791 return mode == 2 ||
792 mode == 3 ||
793 mode == 7 ||
794 mode == 11 ||
795 mode == 14 ||
796 mode == 15;
806 const deUint32 mode = m10 != 3 ? m23
832 switch (mode)
849 DE_ASSERT(mode < DE_LENGTH_OF_ARRAY(shiftAmounts));
851 red <<= shiftAmounts[mode];
852 green <<= shiftAmounts[mode];
853 blue <<= shiftAmounts[mode];
854 scale <<= shiftAmounts[mode];
856 if (mode != 5)
889 const deUint32 mode = (getBit(v3, 7) << 2) | (getBit(v2, 7) << 1) | getBit(v1, 7);
909 switch (mode)
928 DE_ASSERT(mode < DE_LENGTH_OF_ARRAY(numDBits));
930 d0 = signExtend(d0, numDBits[mode]);
931 d1 = signExtend(d1, numDBits[mode]);
933 const int shiftAmount = (mode >> 1) ^ 3;
968 const deUint32 mode = (getBit(v7In, 7) << 1) | getBit(v6In, 7);
972 if (mode == 3)
979 v6 |= (v7 << (mode+1)) & 0x780;
980 v7 &= (0x3f >> mode);
981 v7 ^= 0x20 >> mode;
982 v7 -= 0x20 >> mode;
983 v6 <<= 4-mode;
984 v7 <<= 4-mode;
1202 if (iseParams.mode == ISEMODE_TRIT || iseParams.mode == ISEMODE_QUINT)
1204 const int rangeCase = iseParams.numBits*2 + (iseParams.mode == ISEMODE_QUINT ? 1 : 0);
1243 DE_ASSERT(iseParams.mode == ISEMODE_PLAIN_BIT);
1425 if (!isHDREndpoint[colorEndpointNdx] || (channelNdx == 3 && colorEndpointModes[colorEndpointNdx] == 14)) // \note Alpha for mode 14 is treated the same as LDR.
1464 // Decode block mode.
1468 // Check for block mode errors.
1776 switch (iseParams.mode)
1879 // a, b and blockModeLayoutNdx initialized in block mode layout index detecting loop below.
1907 // Find block mode layout index, i.e. appropriate row in the "2d block mode layout" table in ASTC spec.
1962 // Set block mode bits.
1995 // Write color endpoint mode data of an ASTC block.
2162 if (params.mode == ISEMODE_TRIT)
2174 else if (params.mode == ISEMODE_QUINT)
2188 DE_ASSERT(params.mode == ISEMODE_PLAIN_BIT);
2369 const int numValuesPerISEBlock = iseParams.mode == ISEMODE_TRIT ? 5
2370 : iseParams.mode == ISEMODE_QUINT ? 3
2505 const int numValuesInISEBlock = iseParams.mode == ISEMODE_TRIT ? 5 : iseParams.mode == ISEMODE_QUINT ? 3 : 1;
2524 if (iseParams.mode == ISEMODE_TRIT || iseParams.mode == ISEMODE_QUINT)
2529 const int numTQValues = 1 << (iseParams.mode == ISEMODE_TRIT ? 8 : 7);
2552 // For each plane count & partition count combination, generate all color endpoint mode combinations.
2557 // Multi-partition, single-CEM mode.
2584 // Separate-CEM mode.
2654 // For each endpoint mode, for each pair of components in the endpoint value, test 10x10 combinations of values for that pair.
2655 // \note Separate modes for HDR and mode 15 due to different color scales and biases.
2745 const int numValuesInISEBlock = endpointISEParams.mode == ISEMODE_TRIT ? 5 : endpointISEParams.mode == ISEMODE_QUINT ? 3 : 1;
2763 if (endpointISEParams.mode == ISEMODE_TRIT || endpointISEParams.mode == ISEMODE_QUINT)
2768 const int numTQValues = 1 << (endpointISEParams.mode == ISEMODE_TRIT ? 8 : 7);
2853 void generateRandomValidBlocks (deUint8* dst, size_t numBlocks, CompressedTexFormat format, TexDecompressionParams::AstcMode mode, deUint32 seed)
2869 } while (!isValidBlock(curBlockPtr, format, mode));
2907 bool isValidBlock (const deUint8* data, CompressedTexFormat format, TexDecompressionParams::AstcMode mode)
2911 const bool isLDR = isSRGB || mode == TexDecompressionParams::ASTCMODE_LDR;
2924 void decompress (const PixelBufferAccess& dst, const deUint8* data, CompressedTexFormat format, TexDecompressionParams::AstcMode mode)
2934 DE_ASSERT(mode == TexDecompressionParams::ASTCMODE_LDR || mode == TexDecompressionParams::ASTCMODE_HDR);
2937 decompress(dst, data, isSRGBFormat, isSRGBFormat || mode == TexDecompressionParams::ASTCMODE_LDR);
2966 case BLOCK_TEST_TYPE_VOID_EXTENT_LDR: return "Test void extent block, LDR mode";
2967 case BLOCK_TEST_TYPE_VOID_EXTENT_HDR: return "Test void extent block, HDR mode";
2970 case BLOCK_TEST_TYPE_CEMS: return "Test different color endpoint mode combinations, combined with different plane and partition counts";
2972 case BLOCK_TEST_TYPE_ENDPOINT_VALUE_LDR: return "Test various combinations of each pair of color endpoint values, for each LDR color endpoint mode";
2973 case BLOCK_TEST_TYPE_ENDPOINT_VALUE_HDR_NO_15: return "Test various combinations of each pair of color endpoint values, for each HDR color endpoint mode other than mode 15";
2974 case BLOCK_TEST_TYPE_ENDPOINT_VALUE_HDR_15: return "Test various combinations of each pair of color endpoint values, HDR color endpoint mode 15";