Lines Matching refs:spec
731 bool applyTextureGenerationSpec (glu::CallLogWrapper& gl, const TextureGenerationSpec& spec, glw::G… in applyTextureGenerationSpec() argument
735 …DE_ASSERT(!(spec.immutable && spec.levels.size() > 1)); // !< immutable textures have only one le… in applyTextureGenerationSpec()
737 for (int levelNdx = 0; levelNdx < (int)spec.levels.size(); ++levelNdx) in applyTextureGenerationSpec()
739 … transferFormat = (spec.levels[levelNdx].compressed) ? (glu::TransferFormat()) : (glu::getTransfer… in applyTextureGenerationSpec()
741 if (spec.immutable && !spec.levels[levelNdx].compressed && spec.bindTarget == GL_TEXTURE_2D) in applyTextureGenerationSpec()
742 …gl.glTexStorage2D(spec.bindTarget, 1, spec.levels[levelNdx].internalFormat, spec.levels[levelNdx].… in applyTextureGenerationSpec()
743 else if (spec.immutable && !spec.levels[levelNdx].compressed && spec.bindTarget == GL_TEXTURE_3D) in applyTextureGenerationSpec()
744 ….glTexStorage3D(spec.bindTarget, 1, spec.levels[levelNdx].internalFormat, spec.levels[levelNdx].wi… in applyTextureGenerationSpec()
745 …else if (spec.immutable && !spec.levels[levelNdx].compressed && spec.bindTarget == GL_TEXTURE_2D_A… in applyTextureGenerationSpec()
746 ….glTexStorage3D(spec.bindTarget, 1, spec.levels[levelNdx].internalFormat, spec.levels[levelNdx].wi… in applyTextureGenerationSpec()
747 …else if (spec.immutable && !spec.levels[levelNdx].compressed && spec.bindTarget == GL_TEXTURE_CUBE… in applyTextureGenerationSpec()
748 …gl.glTexStorage2D(spec.bindTarget, 1, spec.levels[levelNdx].internalFormat, spec.levels[levelNdx].… in applyTextureGenerationSpec()
749 …else if (spec.immutable && !spec.levels[levelNdx].compressed && spec.bindTarget == GL_TEXTURE_2D_M… in applyTextureGenerationSpec()
750 …isample(spec.bindTarget, spec.sampleCount, spec.levels[levelNdx].internalFormat, spec.levels[level… in applyTextureGenerationSpec()
751 …else if (spec.immutable && !spec.levels[levelNdx].compressed && spec.bindTarget == GL_TEXTURE_2D_M… in applyTextureGenerationSpec()
752 …spec.bindTarget, spec.sampleCount, spec.levels[levelNdx].internalFormat, spec.levels[levelNdx].wid… in applyTextureGenerationSpec()
753 …else if (spec.immutable && !spec.levels[levelNdx].compressed && spec.bindTarget == GL_TEXTURE_CUBE… in applyTextureGenerationSpec()
754 ….glTexStorage3D(spec.bindTarget, 1, spec.levels[levelNdx].internalFormat, spec.levels[levelNdx].wi… in applyTextureGenerationSpec()
755 else if (!spec.immutable && !spec.levels[levelNdx].compressed && spec.bindTarget == GL_TEXTURE_2D) in applyTextureGenerationSpec()
756 …gl.glTexImage2D(spec.bindTarget, spec.levels[levelNdx].level, spec.levels[levelNdx].internalFormat… in applyTextureGenerationSpec()
757 else if (!spec.immutable && !spec.levels[levelNdx].compressed && spec.bindTarget == GL_TEXTURE_3D) in applyTextureGenerationSpec()
758 …3D(spec.bindTarget, spec.levels[levelNdx].level, spec.levels[levelNdx].internalFormat, spec.levels… in applyTextureGenerationSpec()
759 …else if (!spec.immutable && !spec.levels[levelNdx].compressed && spec.bindTarget == GL_TEXTURE_2D_… in applyTextureGenerationSpec()
760 …3D(spec.bindTarget, spec.levels[levelNdx].level, spec.levels[levelNdx].internalFormat, spec.levels… in applyTextureGenerationSpec()
761 …else if (!spec.immutable && !spec.levels[levelNdx].compressed && spec.bindTarget == GL_TEXTURE_CUB… in applyTextureGenerationSpec()
762 …gl.glTexImage2D(spec.queryTarget, spec.levels[levelNdx].level, spec.levels[levelNdx].internalForma… in applyTextureGenerationSpec()
763 …else if (!spec.immutable && !spec.levels[levelNdx].compressed && spec.bindTarget == GL_TEXTURE_CUB… in applyTextureGenerationSpec()
764 …3D(spec.bindTarget, spec.levels[levelNdx].level, spec.levels[levelNdx].internalFormat, spec.levels… in applyTextureGenerationSpec()
765 else if (!spec.immutable && spec.levels[levelNdx].compressed && spec.bindTarget == GL_TEXTURE_2D) in applyTextureGenerationSpec()
767 DE_ASSERT(spec.levels[levelNdx].width == 32); in applyTextureGenerationSpec()
768 DE_ASSERT(spec.levels[levelNdx].height == 32); in applyTextureGenerationSpec()
769 DE_ASSERT(spec.levels[levelNdx].internalFormat == GL_COMPRESSED_RGB8_ETC2); in applyTextureGenerationSpec()
772 …pressedTexImage2D(spec.bindTarget, spec.levels[levelNdx].level, spec.levels[levelNdx].internalForm… in applyTextureGenerationSpec()
774 …else if (!spec.immutable && spec.levels[levelNdx].compressed && spec.bindTarget == GL_TEXTURE_2D_A… in applyTextureGenerationSpec()
776 DE_ASSERT(spec.levels[levelNdx].width == 32); in applyTextureGenerationSpec()
777 DE_ASSERT(spec.levels[levelNdx].height == 32); in applyTextureGenerationSpec()
778 DE_ASSERT(spec.levels[levelNdx].depth == 2); in applyTextureGenerationSpec()
779 DE_ASSERT(spec.levels[levelNdx].internalFormat == GL_COMPRESSED_RGB8_ETC2); in applyTextureGenerationSpec()
782 …3D(spec.bindTarget, spec.levels[levelNdx].level, spec.levels[levelNdx].internalFormat, spec.levels… in applyTextureGenerationSpec()
784 …else if (spec.immutable && !spec.levels[levelNdx].compressed && spec.bindTarget == GL_TEXTURE_BUFF… in applyTextureGenerationSpec()
789 if (spec.bindWholeArray) in applyTextureGenerationSpec()
791 gl.glBufferData(GL_TEXTURE_BUFFER, spec.texBufferDataSize, DE_NULL, GL_STATIC_DRAW); in applyTextureGenerationSpec()
792 gl.glTexBuffer(GL_TEXTURE_BUFFER, spec.levels[levelNdx].internalFormat, texBuffer); in applyTextureGenerationSpec()
796 …gl.glBufferData(GL_TEXTURE_BUFFER, spec.texBufferDataOffset + spec.texBufferDataSize, DE_NULL, GL_… in applyTextureGenerationSpec()
797 ….glTexBufferRange(GL_TEXTURE_BUFFER, spec.levels[levelNdx].internalFormat, texBuffer, spec.texBuff… in applyTextureGenerationSpec()
830 bool testConfig (const TextureGenerationSpec& spec);
831 …virtual bool checkTextureState (glu::CallLogWrapper& gl, const TextureGenerationSpec& spec) …
947 bool TextureLevelCase::testConfig (const TextureGenerationSpec& spec) in testConfig() argument
949 …toString(m_iteration+1) + "/" + de::toString((int)m_iterations.size()) + " - " + spec.description); in testConfig()
956 gl.glBindTexture(spec.bindTarget, m_texture); in testConfig()
960 applyTextureGenerationSpec(gl, spec, m_texBuffer); in testConfig()
963 result = checkTextureState(gl, spec); in testConfig()
1018 bool checkTextureState (glu::CallLogWrapper& gl, const TextureGenerationSpec& spec) in checkTextureState() argument
1020 const int queryLevel = (spec.levels.empty()) ? (0) : (spec.levels[0].level); in checkTextureState()
1021 const int refValue = (spec.levels.empty()) ? (0) : (spec.sampleCount); in checkTextureState()
1023 …return verifyTextureLevelParameterGreaterOrEqual(gl, spec.queryTarget, queryLevel, GL_TEXTURE_SAMP… in checkTextureState()
1036 bool checkTextureState (glu::CallLogWrapper& gl, const TextureGenerationSpec& spec) in checkTextureState() argument
1038 const int queryLevel = (spec.levels.empty()) ? (0) : (spec.levels[0].level); in checkTextureState()
1039 const int refValue = (spec.levels.empty()) ? (1) : ((spec.fixedSamplePos) ? (1) : (0)); in checkTextureState()
1041 …return verifyTextureLevelParameterEqual(gl, spec.queryTarget, queryLevel, GL_TEXTURE_FIXED_SAMPLE_… in checkTextureState()
1054 bool checkTextureState (glu::CallLogWrapper& gl, const TextureGenerationSpec& spec) in checkTextureState() argument
1059 if (spec.levels.empty()) in checkTextureState()
1064 …allOk &= verifyTextureLevelParameterEqual(gl, spec.queryTarget, queryLevel, GL_TEXTURE_WIDTH, refV… in checkTextureState()
1068 for (int levelNdx = 0; levelNdx < (int)spec.levels.size(); ++levelNdx) in checkTextureState()
1070 const int queryLevel = spec.levels[levelNdx].level; in checkTextureState()
1071 const int refValue = spec.levels[levelNdx].width; in checkTextureState()
1073 …allOk &= verifyTextureLevelParameterEqual(gl, spec.queryTarget, queryLevel, GL_TEXTURE_WIDTH, refV… in checkTextureState()
1090 bool checkTextureState (glu::CallLogWrapper& gl, const TextureGenerationSpec& spec) in checkTextureState() argument
1095 if (spec.levels.empty()) in checkTextureState()
1100 …allOk &= verifyTextureLevelParameterEqual(gl, spec.queryTarget, queryLevel, GL_TEXTURE_HEIGHT, ref… in checkTextureState()
1104 for (int levelNdx = 0; levelNdx < (int)spec.levels.size(); ++levelNdx) in checkTextureState()
1106 const int queryLevel = spec.levels[levelNdx].level; in checkTextureState()
1107 const int refValue = spec.levels[levelNdx].height; in checkTextureState()
1109 …allOk &= verifyTextureLevelParameterEqual(gl, spec.queryTarget, queryLevel, GL_TEXTURE_HEIGHT, ref… in checkTextureState()
1127 bool checkTextureState (glu::CallLogWrapper& gl, const TextureGenerationSpec& spec) in checkTextureState() argument
1132 if (spec.levels.empty()) in checkTextureState()
1137 …allOk &= verifyTextureLevelParameterEqual(gl, spec.queryTarget, queryLevel, GL_TEXTURE_DEPTH, refV… in checkTextureState()
1141 for (int levelNdx = 0; levelNdx < (int)spec.levels.size(); ++levelNdx) in checkTextureState()
1143 const int queryLevel = spec.levels[levelNdx].level; in checkTextureState()
1144 const int refValue = spec.levels[levelNdx].depth; in checkTextureState()
1146 …allOk &= verifyTextureLevelParameterEqual(gl, spec.queryTarget, queryLevel, GL_TEXTURE_DEPTH, refV… in checkTextureState()
1168 bool checkTextureState (glu::CallLogWrapper& gl, const TextureGenerationSpec& spec) in checkTextureState() argument
1172 if (spec.levels.empty()) in checkTextureState()
1177 …allOk &= verifyTextureLevelParameterInternalFormatAnyOf(gl, spec.queryTarget, queryLevel, GL_TEXTU… in checkTextureState()
1181 for (int levelNdx = 0; levelNdx < (int)spec.levels.size(); ++levelNdx) in checkTextureState()
1183 const int queryLevel = spec.levels[levelNdx].level; in checkTextureState()
1184 const int refValue = spec.levels[levelNdx].internalFormat; in checkTextureState()
1186 …allOk &= verifyTextureLevelParameterInternalFormatEqual(gl, spec.queryTarget, queryLevel, GL_TEXTU… in checkTextureState()
1201 bool checkTextureState (glu::CallLogWrapper& gl, const TextureGenerationSpec& spec);
1218 …extureLevelSizeCase::checkTextureState (glu::CallLogWrapper& gl, const TextureGenerationSpec& spec) in checkTextureState() argument
1222 if (spec.levels.empty()) in checkTextureState()
1224 allOk &= verifyTextureLevelParameterEqual(gl, spec.queryTarget, 0, m_pname, 0, m_type); in checkTextureState()
1228 for (int levelNdx = 0; levelNdx < (int)spec.levels.size(); ++levelNdx) in checkTextureState()
1230 const int queryLevel = spec.levels[levelNdx].level; in checkTextureState()
1231 const int refValue = getMinimumComponentResolution(spec.levels[levelNdx].internalFormat); in checkTextureState()
1233 …allOk &= verifyTextureLevelParameterGreaterOrEqual(gl, spec.queryTarget, queryLevel, m_pname, refV… in checkTextureState()
1323 bool checkTextureState (glu::CallLogWrapper& gl, const TextureGenerationSpec& spec);
1340 …extureLevelTypeCase::checkTextureState (glu::CallLogWrapper& gl, const TextureGenerationSpec& spec) in checkTextureState() argument
1344 if (spec.levels.empty()) in checkTextureState()
1346 allOk &= verifyTextureLevelParameterEqual(gl, spec.queryTarget, 0, m_pname, GL_NONE, m_type); in checkTextureState()
1350 for (int levelNdx = 0; levelNdx < (int)spec.levels.size(); ++levelNdx) in checkTextureState()
1352 const int queryLevel = spec.levels[levelNdx].level; in checkTextureState()
1353 const int refValue = getComponentType(spec.levels[levelNdx].internalFormat); in checkTextureState()
1355 …allOk &= verifyTextureLevelParameterEqual(gl, spec.queryTarget, queryLevel, m_pname, refValue, m_t… in checkTextureState()
1471 bool checkTextureState (glu::CallLogWrapper& gl, const TextureGenerationSpec& spec) in checkTextureState() argument
1475 if (spec.levels.empty()) in checkTextureState()
1477 …allOk &= verifyTextureLevelParameterEqual(gl, spec.queryTarget, 0, GL_TEXTURE_COMPRESSED, 0, m_typ… in checkTextureState()
1481 for (int levelNdx = 0; levelNdx < (int)spec.levels.size(); ++levelNdx) in checkTextureState()
1483 const int queryLevel = spec.levels[levelNdx].level; in checkTextureState()
1484 const int refValue = (spec.levels[levelNdx].compressed) ? (1) : (0); in checkTextureState()
1486 …allOk &= verifyTextureLevelParameterEqual(gl, spec.queryTarget, queryLevel, GL_TEXTURE_COMPRESSED,… in checkTextureState()
1516 bool checkTextureState (glu::CallLogWrapper& gl, const TextureGenerationSpec& spec) in checkTextureState() argument
1520 if (spec.levels.empty()) in checkTextureState()
1522 …allOk &= verifyTextureLevelParameterEqual(gl, spec.queryTarget, 0, GL_TEXTURE_BUFFER_DATA_STORE_BI… in checkTextureState()
1526 …allOk &= verifyTextureLevelParameterEqual(gl, spec.queryTarget, 0, GL_TEXTURE_BUFFER_DATA_STORE_BI… in checkTextureState()
1555 bool checkTextureState (glu::CallLogWrapper& gl, const TextureGenerationSpec& spec) in checkTextureState() argument
1559 if (spec.levels.empty()) in checkTextureState()
1561 …allOk &= verifyTextureLevelParameterEqual(gl, spec.queryTarget, 0, GL_TEXTURE_BUFFER_OFFSET, 0, m_… in checkTextureState()
1565 const int refValue = spec.texBufferDataOffset; in checkTextureState()
1567 …allOk &= verifyTextureLevelParameterEqual(gl, spec.queryTarget, 0, GL_TEXTURE_BUFFER_OFFSET, refVa… in checkTextureState()
1596 bool checkTextureState (glu::CallLogWrapper& gl, const TextureGenerationSpec& spec) in checkTextureState() argument
1600 if (spec.levels.empty()) in checkTextureState()
1602 …allOk &= verifyTextureLevelParameterEqual(gl, spec.queryTarget, 0, GL_TEXTURE_BUFFER_SIZE, 0, m_ty… in checkTextureState()
1606 const int refValue = spec.texBufferDataSize; in checkTextureState()
1608 …allOk &= verifyTextureLevelParameterEqual(gl, spec.queryTarget, 0, GL_TEXTURE_BUFFER_SIZE, refValu… in checkTextureState()