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;
707 if (params.mode == ISEMODE_TRIT)
716 else if (params.mode == ISEMODE_QUINT)
727 DE_ASSERT(params.mode == ISEMODE_PLAIN_BIT);
735 if (iseParams.mode == ISEMODE_TRIT || iseParams.mode == ISEMODE_QUINT)
737 const int rangeCase = iseParams.numBits*2 - (iseParams.mode == ISEMODE_TRIT ? 2 : 1);
771 DE_ASSERT(iseParams.mode == ISEMODE_PLAIN_BIT);
801 inline bool isColorEndpointModeHDR (deUint32 mode)
803 return mode == 2 ||
804 mode == 3 ||
805 mode == 7 ||
806 mode == 11 ||
807 mode == 14 ||
808 mode == 15;
818 const deUint32 mode = m10 != 3 ? m23
844 switch (mode)
861 DE_ASSERT(mode < DE_LENGTH_OF_ARRAY(shiftAmounts));
863 red <<= shiftAmounts[mode];
864 green <<= shiftAmounts[mode];
865 blue <<= shiftAmounts[mode];
866 scale <<= shiftAmounts[mode];
868 if (mode != 5)
901 const deUint32 mode = (getBit(v3, 7) << 2) | (getBit(v2, 7) << 1) | getBit(v1, 7);
921 switch (mode)
940 DE_ASSERT(mode < DE_LENGTH_OF_ARRAY(numDBits));
942 d0 = signExtend(d0, numDBits[mode]);
943 d1 = signExtend(d1, numDBits[mode]);
945 const int shiftAmount = (mode >> 1) ^ 3;
980 const deUint32 mode = (getBit(v7In, 7) << 1) | getBit(v6In, 7);
984 if (mode == 3)
991 v6 |= (v7 << (mode+1)) & 0x780;
992 v7 &= (0x3f >> mode);
993 v7 ^= 0x20 >> mode;
994 v7 -= 0x20 >> mode;
995 v6 <<= 4-mode;
996 v7 <<= 4-mode;
1214 if (iseParams.mode == ISEMODE_TRIT || iseParams.mode == ISEMODE_QUINT)
1216 const int rangeCase = iseParams.numBits*2 + (iseParams.mode == ISEMODE_QUINT ? 1 : 0);
1255 DE_ASSERT(iseParams.mode == ISEMODE_PLAIN_BIT);
1451 if (!isHDREndpoint[colorEndpointNdx] || (channelNdx == 3 && colorEndpointModes[colorEndpointNdx] == 14)) // \note Alpha for mode 14 is treated the same as LDR.
1490 // Decode block mode.
1494 // Check for block mode errors.
1802 switch (iseParams.mode)
1905 // a, b and blockModeLayoutNdx initialized in block mode layout index detecting loop below.
1933 // Find block mode layout index, i.e. appropriate row in the "2d block mode layout" table in ASTC spec.
1988 // Set block mode bits.
2021 // Write color endpoint mode data of an ASTC block.
2188 if (params.mode == ISEMODE_TRIT)
2200 else if (params.mode == ISEMODE_QUINT)
2214 DE_ASSERT(params.mode == ISEMODE_PLAIN_BIT);
2395 const int numValuesPerISEBlock = iseParams.mode == ISEMODE_TRIT ? 5
2396 : iseParams.mode == ISEMODE_QUINT ? 3
2531 const int numValuesInISEBlock = iseParams.mode == ISEMODE_TRIT ? 5 : iseParams.mode == ISEMODE_QUINT ? 3 : 1;
2550 if (iseParams.mode == ISEMODE_TRIT || iseParams.mode == ISEMODE_QUINT)
2555 const int numTQValues = 1 << (iseParams.mode == ISEMODE_TRIT ? 8 : 7);
2578 // For each plane count & partition count combination, generate all color endpoint mode combinations.
2583 // Multi-partition, single-CEM mode.
2610 // Separate-CEM mode.
2680 // For each endpoint mode, for each pair of components in the endpoint value, test 10x10 combinations of values for that pair.
2681 // \note Separate modes for HDR and mode 15 due to different color scales and biases.
2771 const int numValuesInISEBlock = endpointISEParams.mode == ISEMODE_TRIT ? 5 : endpointISEParams.mode == ISEMODE_QUINT ? 3 : 1;
2789 if (endpointISEParams.mode == ISEMODE_TRIT || endpointISEParams.mode == ISEMODE_QUINT)
2794 const int numTQValues = 1 << (endpointISEParams.mode == ISEMODE_TRIT ? 8 : 7);
2879 void generateRandomValidBlocks (deUint8* dst, size_t numBlocks, CompressedTexFormat format, TexDecompressionParams::AstcMode mode, deUint32 seed)
2895 } while (!isValidBlock(curBlockPtr, format, mode));
2933 bool isValidBlock (const deUint8* data, CompressedTexFormat format, TexDecompressionParams::AstcMode mode)
2937 const bool isLDR = isSRGB || mode == TexDecompressionParams::ASTCMODE_LDR;
2939 // sRGB is not supported in HDR mode
2940 DE_ASSERT(!(mode == TexDecompressionParams::ASTCMODE_HDR && isSRGB));
2954 void decompress (const PixelBufferAccess& dst, const deUint8* data, CompressedTexFormat format, TexDecompressionParams::AstcMode mode)
2964 DE_ASSERT(mode == TexDecompressionParams::ASTCMODE_LDR || mode == TexDecompressionParams::ASTCMODE_HDR);
2967 // sRGB is not supported in HDR mode
2968 DE_ASSERT(!(mode == TexDecompressionParams::ASTCMODE_HDR && isSRGBFormat));
2970 decompress(dst, data, isSRGBFormat, isSRGBFormat || mode == TexDecompressionParams::ASTCMODE_LDR);
2999 case BLOCK_TEST_TYPE_VOID_EXTENT_LDR: return "Test void extent block, LDR mode";
3000 case BLOCK_TEST_TYPE_VOID_EXTENT_HDR: return "Test void extent block, HDR mode";
3003 case BLOCK_TEST_TYPE_CEMS: return "Test different color endpoint mode combinations, combined with different plane and partition counts";
3005 case BLOCK_TEST_TYPE_ENDPOINT_VALUE_LDR: return "Test various combinations of each pair of color endpoint values, for each LDR color endpoint mode";
3006 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";
3007 case BLOCK_TEST_TYPE_ENDPOINT_VALUE_HDR_15: return "Test various combinations of each pair of color endpoint values, HDR color endpoint mode 15";