Lines Matching defs:numBlocks
68 void testDecompress (CompressedTexFormat format, TexDecompressionParams::AstcMode mode, size_t numBlocks, const deUint8* data)
73 TextureLevel texture (uncompressedFormat, blockPixelSize.x()*(int)numBlocks, blockPixelSize.y());
78 void testDecompress (CompressedTexFormat format, size_t numBlocks, const deUint8* data)
80 testDecompress(format, TexDecompressionParams::ASTCMODE_LDR, numBlocks, data);
83 testDecompress(format, TexDecompressionParams::ASTCMODE_HDR, numBlocks, data);
86 void verifyBlocksValid (CompressedTexFormat format, TexDecompressionParams::AstcMode mode, size_t numBlocks, const deUint8* data)
88 for (size_t blockNdx = 0; blockNdx < numBlocks; blockNdx++)
133 const size_t numBlocks = 1024;
135 generatedData.resize(numBlocks*astc::BLOCK_SIZE_BYTES);
136 astc::generateDummyVoidExtentBlocks(&generatedData[0], numBlocks);
138 testDecompress(m_format, numBlocks, &generatedData[0]);
140 verifyBlocksValid(m_format, TexDecompressionParams::ASTCMODE_LDR, numBlocks, &generatedData[0]);
143 verifyBlocksValid(m_format, TexDecompressionParams::ASTCMODE_HDR, numBlocks, &generatedData[0]);
148 const size_t numBlocks = 1024;
151 generatedData.resize(numBlocks*astc::BLOCK_SIZE_BYTES);
152 astc::generateDummyNormalBlocks(&generatedData[0], numBlocks, blockPixelSize.x(), blockPixelSize.y());
154 testDecompress(m_format, numBlocks, &generatedData[0]);
156 verifyBlocksValid(m_format, TexDecompressionParams::ASTCMODE_LDR, numBlocks, &generatedData[0]);
159 verifyBlocksValid(m_format, TexDecompressionParams::ASTCMODE_HDR, numBlocks, &generatedData[0]);
166 const size_t numBlocks = 1024;
171 generatedData.resize(numBlocks*astc::BLOCK_SIZE_BYTES);
172 astc::generateRandomValidBlocks(&generatedData[0], numBlocks, m_format, mode, deInt32Hash(m_format) ^ deInt32Hash(mode));
174 testDecompress(m_format, numBlocks, &generatedData[0]);
176 verifyBlocksValid(m_format, mode, numBlocks, &generatedData[0]);