Lines Matching refs:format
249 /** Check if specific lookup function is allowed for specific target and format
252 * @param format Texture internal format
255 * @return Returns true if target/format combination is allowed, false otherwise.
257 bool SparseTextureClampLookupResidencyTestCase::funcAllowed(GLint target, GLint format, FunctionToken& funcToken)
262 if (format == GL_DEPTH_COMPONENT16)
276 * @param format Texture internal format
283 bool SparseTextureClampLookupResidencyTestCase::verifyLookupTextureData(const Functions& gl, GLint target, GLint format,
346 // Adjust shader source to texture format
347 TokenStringsExt s = createLookupShaderTokens(target, verifyTarget, format, level, sample, f);
443 mLog << "Shader compilation failed (lookup residency) for target: " << target << ", format: " << format
634 const GLint& format = *formIter;
636 if (!caseAllowed(target, format))
644 if (!funcAllowed(target, format, funcToken))
652 mLog << "Testing sparse texture lookup color functions for target: " << target << ", format: " << format
656 sparseAllocateTexture(gl, target, format, texture, 3);
658 allocateTexture(gl, target, format, texture, 3);
660 if (format == GL_DEPTH_COMPONENT16)
667 if (!isSparse || commitTexturePage(gl, target, format, texture, l))
669 writeDataToTexture(gl, target, format, texture, l);
676 result = result && verifyLookupTextureData(gl, target, format, texture, l, funcToken);
702 * @param format Texture internal format
707 bool SparseTextureClampLookupColorTestCase::writeDataToTexture(const Functions& gl, GLint target, GLint format,
725 GLint texSize = width * height * depth * mState.format.getPixelSize();
737 // Adjust shader source to texture format
743 TokenStrings s = createShaderTokens(target, verifyTarget, format, sample);
745 GLint convFormat = format;
746 if (format == GL_DEPTH_COMPONENT16)
780 mLog << "Compute shader compilation failed (writing) for target: " << target << ", format: " << format
794 * @param format Texture internal format
801 bool SparseTextureClampLookupColorTestCase::verifyLookupTextureData(const Functions& gl, GLint target, GLint format,
863 // Adjust shader source to texture format
864 TokenStringsExt s = createLookupShaderTokens(target, verifyTarget, format, level, sample, f);
867 s.resultExpected = generateExpectedResult(s.returnType, level, format);
955 mLog << "Shader compilation failed (lookup color) for target: " << target << ", format: " << format
980 * @param format Texture internal format
985 bool SparseTextureClampLookupColorTestCase::prepareTexture(const Functions& gl, GLint target, GLint format,
992 SparseTextureUtils::getTexturePageSizes(gl, target, format, mState.pageSizeX, mState.pageSizeY, mState.pageSizeZ);
1007 mState.format = glu::mapGLInternalFormat(format);
1016 * @param format Texture internal format
1022 bool SparseTextureClampLookupColorTestCase::commitTexturePage(const Functions& gl, GLint target, GLint format,
1046 texPageCommitment(gl, target, format, texture, level, 0, 0, 0, width, height, depth, GL_TRUE);
1130 GLint format)
1132 if (format == GL_DEPTH_COMPONENT16)