/external/deqp/modules/gles2/performance/ |
D | es2pTextureCases.cpp | 146 for (int texNdx = 0; texNdx < m_numTextures; texNdx++) in init() local 147 fragSrc << "uniform sampler2D u_sampler" << texNdx << ";\n"; in init() 152 for (int texNdx = 0; texNdx < m_numTextures; texNdx++) in init() local 153 …fragSrc << "\t" << (texNdx == 0 ? "lowp vec4 r = " : "r += ") << "texture2D(u_sampler" << texNdx <… in init() 161 for (int texNdx = 0; texNdx < m_numTextures; texNdx++) in init() local 165 const IVec4& sw = swizzles[texNdx % DE_LENGTH_OF_ARRAY(swizzles)]; in init() 198 for (int texNdx = 0; texNdx < m_numTextures; texNdx++) in setupProgram() local 200 …int samplerLoc = gl.getUniformLocation(program, (string("u_sampler") + de::toString(texNdx)).c_str… in setupProgram() 201 gl.uniform1i(samplerLoc, texNdx); in setupProgram() 215 for (int texNdx = 0; texNdx < m_numTextures; texNdx++) in setupRenderState() local [all …]
|
/external/deqp/modules/gles3/performance/ |
D | es3pTextureCases.cpp | 157 for (int texNdx = 0; texNdx < m_numTextures; texNdx++) in init() local 158 …onName(samplerPrec) << " " << glu::getDataTypeName(samplerType) << " u_sampler" << texNdx << ";\n"; in init() 163 for (int texNdx = 0; texNdx < m_numTextures; texNdx++) in init() local 165 if (texNdx == 0) in init() 173 fragSrc << "texture(u_sampler" << texNdx << ", v_coords)"; in init() 187 for (int texNdx = 0; texNdx < m_numTextures; texNdx++) in init() local 191 const IVec4& sw = swizzles[texNdx % DE_LENGTH_OF_ARRAY(swizzles)]; in init() 225 for (int texNdx = 0; texNdx < m_numTextures; texNdx++) in setupProgram() local 227 …int samplerLoc = gl.getUniformLocation(program, (string("u_sampler") + de::toString(texNdx)).c_str… in setupProgram() 228 gl.uniform1i(samplerLoc, texNdx); in setupProgram() [all …]
|
/external/deqp/modules/gles3/functional/ |
D | es3fTextureUnitTests.cpp | 719 void upload2dTexture (int texNdx, sglr::Context& context); 720 void uploadCubeTexture (int texNdx, sglr::Context& context); 721 void upload2dArrayTexture (int texNdx, sglr::Context& context); 722 void upload3dTexture (int texNdx, sglr::Context& context); 804 for (int texNdx = 0; texNdx < m_numTextures; texNdx++) in init() local 947 int texNdx = m_unitTextures[i]; in init() local 948 GLenum type = m_textureTypes[texNdx]; in init() 949 tcu::TextureFormat fmt = glu::mapGLInternalFormat(m_textureParams[texNdx].internalFormat); in init() 955 num2dArrayLayers.push_back(m_textures2dArray[m_ndxTexType[texNdx]]->getNumLayers()); in init() 1007 int texNdx = m_unitTextures[i]; in iterate() local [all …]
|
D | es3fFboTestUtil.cpp | 345 for (int texNdx = 0; texNdx < (int)m_inputs.size(); texNdx++) in setUniforms() local 347 string samplerName = string("u_sampler") + de::toString(texNdx); in setUniforms() 348 string scaleName = string("u_texScale") + de::toString(texNdx); in setUniforms() 349 string biasName = string("u_texBias") + de::toString(texNdx); in setUniforms() 351 gl.uniform1i(gl.getUniformLocation(program, samplerName.c_str()), m_inputs[texNdx].unitNdx); in setUniforms() 352 …gl.uniform4fv(gl.getUniformLocation(program, scaleName.c_str()), 1, m_inputs[texNdx].scale.getPtr(… in setUniforms() 353 …gl.uniform4fv(gl.getUniformLocation(program, biasName.c_str()), 1, m_inputs[texNdx].bias.getPtr()); in setUniforms()
|
D | es3fTextureShadowTests.cpp | 277 int texNdx; in init() member 298 const int texNdx = de::clamp(cases[caseNdx].texNdx, 0, (int)m_textures.size()-1); in init() local 304 …const float sX = deFloatExp2(lodX)*viewportW / float(m_textures[texNdx]->getRefTexture().getWidth… in init() 305 …const float sY = deFloatExp2(lodY)*viewportH / float(m_textures[texNdx]->getRefTexture().getHeigh… in init() 307 …m_cases.push_back(FilterCase(m_textures[texNdx], ref, tcu::Vec2(oX, oY), tcu::Vec2(oX+sX, oY+sY))); in init() 831 int texNdx; in init() member 855 const glu::Texture2DArray* tex = cases[caseNdx].texNdx > 0 ? m_gridTex : m_gradientTex; in init()
|
D | es3fTextureFilteringTests.cpp | 229 int texNdx; in init() member 247 const int texNdx = de::clamp(cases[caseNdx].texNdx, 0, (int)m_textures.size()-1); in init() local 252 …const float sX = deFloatExp2(lodX)*viewportW / float(m_textures[texNdx]->getRefTexture().getWidth… in init() 253 …const float sY = deFloatExp2(lodY)*viewportH / float(m_textures[texNdx]->getRefTexture().getHeigh… in init() 255 m_cases.push_back(FilterCase(m_textures[texNdx], tcu::Vec2(oX, oY), tcu::Vec2(oX+sX, oY+sY))); in init()
|
/external/deqp/modules/gles2/functional/ |
D | es2fTextureUnitTests.cpp | 633 for (int texNdx = 0; texNdx < m_numTextures; texNdx++) in init() local 777 int texNdx = m_unitTextures[i]; in iterate() local 778 int texNdxInType = m_ndx2dOrCube[texNdx]; in iterate() 779 GLenum type = m_textureTypes[texNdx]; in iterate() 835 int texNdx = m_unitTextures[unitNdx]; in render() local 839 context.bindTexture(m_textureTypes[texNdx], textureGLNames[texNdx]); in render() 841 if (!isTextureSetUp[texNdx]) in render() 845 …context.texParameteri(m_textureTypes[texNdx], GL_TEXTURE_WRAP_S, m_textureParams[texNdx].wrapModeS… in render() 846 …context.texParameteri(m_textureTypes[texNdx], GL_TEXTURE_WRAP_T, m_textureParams[texNdx].wrapModeT… in render() 847 …context.texParameteri(m_textureTypes[texNdx], GL_TEXTURE_MIN_FILTER, m_textureParams[texNdx].minFi… in render() [all …]
|
D | es2fTextureFilteringTests.cpp | 211 int texNdx; in init() member 229 const int texNdx = de::clamp(cases[caseNdx].texNdx, 0, (int)m_textures.size()-1); in init() local 234 …const float sX = deFloatExp2(lodX)*viewportW / float(m_textures[texNdx]->getRefTexture().getWidth… in init() 235 …const float sY = deFloatExp2(lodY)*viewportH / float(m_textures[texNdx]->getRefTexture().getHeigh… in init() 237 m_cases.push_back(FilterCase(m_textures[texNdx], tcu::Vec2(oX, oY), tcu::Vec2(oX+sX, oY+sY))); in init()
|
/external/deqp/modules/gles31/functional/ |
D | es31fFboTestUtil.cpp | 188 for (int texNdx = 0; texNdx < (int)m_inputs.size(); texNdx++) in setUniforms() local 190 string samplerName = string("u_sampler") + de::toString(texNdx); in setUniforms() 191 string scaleName = string("u_texScale") + de::toString(texNdx); in setUniforms() 192 string biasName = string("u_texBias") + de::toString(texNdx); in setUniforms() 194 gl.uniform1i(gl.getUniformLocation(program, samplerName.c_str()), m_inputs[texNdx].unitNdx); in setUniforms() 195 …gl.uniform4fv(gl.getUniformLocation(program, scaleName.c_str()), 1, m_inputs[texNdx].scale.getPtr(… in setUniforms() 196 …gl.uniform4fv(gl.getUniformLocation(program, biasName.c_str()), 1, m_inputs[texNdx].bias.getPtr()); in setUniforms()
|
D | es31fLayoutBindingTests.cpp | 1057 for (int texNdx = 0; texNdx < (int)m_textures.size(); ++texNdx) in init() local 1063 for (int texNdx = 0; texNdx < (int)m_textures.size(); ++texNdx) in init() local 1064 initializeTexture(m_bindings[texNdx], m_textures[texNdx], m_textureColors[texNdx]); in init() 1380 for (int texNdx = 0; texNdx < (int)m_textures.size(); ++texNdx) in init() local 1386 for (int texNdx = 0; texNdx < (int)m_textures.size(); ++texNdx) in init() local 1387 initializeImage(m_bindings[texNdx], texNdx, m_textures[texNdx], m_textureColors[texNdx]); in init() 1395 for (int texNdx = 0; texNdx < (int)m_textures.size(); ++texNdx) in deinit() local 1397 if (m_textures[texNdx]) in deinit() 1399 m_context.getRenderContext().getFunctions().deleteTextures(1, &m_textures[texNdx]); in deinit()
|
D | es31fTextureMultisampleTests.cpp | 1632 for (int texNdx = 0; texNdx < (int)textureSamples.size(); ++texNdx) in init() local 1635 if (textureSamples[texNdx] != rboSamples[rboNdx]) in init() 1637 m_numSamples0 = textureSamples[texNdx]; in init() 1657 for (int texNdx = 0; texNdx < (int)textureSamples.size(); ++texNdx) in init() local 1660 if (textureSamples[texNdx] == rboSamples[rboNdx]) in init() 1662 m_numSamples0 = textureSamples[texNdx]; in init()
|
D | es31fOpaqueTypeIndexingTests.cpp | 602 const int texNdx = lookupIndices[lookupNdx]; in iterate() local 604 …xAccess.sample2DCompare(refSampler, tcu::Sampler::NEAREST, coord, (float)texNdx, 0.0f, tcu::IVec3(… in iterate() 625 const int texNdx = lookupIndices[lookupNdx]; in iterate() local 632 const tcu::Vec4 reference = refTexAccess.getPixel(texNdx, 0); in iterate() 647 const tcu::UVec4 reference = refTexAccess.getPixelUint(texNdx, 0); in iterate()
|
/external/deqp/modules/glshared/ |
D | glsLongStressCase.cpp | 1153 for (int texNdx = 0; texNdx < (int)prevProgCtxTextures.size(); texNdx++) in init() local 1155 if (prevProgCtxTextures[texNdx]->getFormat() == format) in init() 1157 dummyTex = prevProgCtxTextures[texNdx]; in init() 1301 for (int texNdx = 0; texNdx < (int)programContext.textureSpecs.size(); texNdx++) in iterate() local 1303 const string texName = textureNamePrefix + toString(texNdx); in iterate() 1305 const TextureSpec& spec = programContext.textureSpecs[texNdx]; in iterate() 1317 …texture.setData(programResources.dummyTextures[texNdx]->getAccess(), spec.width, spec.height, spec… in iterate() 1319 …texture.setSubData(programResources.dummyTextures[texNdx]->getAccess(), 0, 0, spec.width, spec.hei… in iterate() 1516 for (int texNdx = 0; texNdx < (int)programContext.textureSpecs.size(); texNdx++) in iterate() local 1518 const string texName = textureNamePrefix + toString(texNdx); in iterate()
|
/external/deqp/external/vulkancts/modules/vulkan/texture/ |
D | vktTextureShadowTests.cpp | 279 const int texNdx; in Texture2DShadowTestInstance() member 297 const int texNdx = de::clamp(cases[caseNdx].texNdx, 0, (int)m_textures.size()-1); in Texture2DShadowTestInstance() local 303 …eFloatExp2(lodX) * float(m_renderer.getRenderWidth()) / float(m_textures[texNdx]->getTexture().get… in Texture2DShadowTestInstance() 304 …FloatExp2(lodY) * float(m_renderer.getRenderHeight()) / float(m_textures[texNdx]->getTexture().get… in Texture2DShadowTestInstance() 306 m_cases.push_back(FilterCase(texNdx, ref, tcu::Vec2(oX, oY), tcu::Vec2(oX+sX, oY+sY))); in Texture2DShadowTestInstance() 706 const int texNdx; in Texture2DArrayShadowTestInstance() member 727 const int tex = cases[caseNdx].texNdx > 0 ? 1 : 0; in Texture2DArrayShadowTestInstance()
|
D | vktTextureFilteringTests.cpp | 165 const int texNdx; in Texture2DFilteringTestInstance() member 180 const int texNdx = de::clamp(cases[caseNdx].texNdx, 0, (int)m_textures.size()-1); in Texture2DFilteringTestInstance() local 185 …eFloatExp2(lodX) * float(m_renderer.getRenderWidth()) / float(m_textures[texNdx]->getTexture().get… in Texture2DFilteringTestInstance() 186 …FloatExp2(lodY) * float(m_renderer.getRenderHeight()) / float(m_textures[texNdx]->getTexture().get… in Texture2DFilteringTestInstance() 188 m_cases.push_back(FilterCase(texNdx, tcu::Vec2(oX, oY), tcu::Vec2(oX+sX, oY+sY))); in Texture2DFilteringTestInstance()
|
/external/deqp/framework/opengl/simplereference/ |
D | sglrReferenceContext.cpp | 4409 const int texNdx = m_currentProgram->m_program->m_uniforms[uniformNdx].value.i; in drawWithReference() local 4419 if (texNdx >= 0 && (size_t)texNdx < m_textureUnits.size()) in drawWithReference() 4420 …tex = (m_textureUnits[texNdx].tex1DBinding) ? (m_textureUnits[texNdx].tex1DBinding) : (&m_textureU… in drawWithReference() 4438 if (texNdx >= 0 && (size_t)texNdx < m_textureUnits.size()) in drawWithReference() 4439 …tex = (m_textureUnits[texNdx].tex2DBinding) ? (m_textureUnits[texNdx].tex2DBinding) : (&m_textureU… in drawWithReference() 4457 if (texNdx >= 0 && (size_t)texNdx < m_textureUnits.size()) in drawWithReference() 4458 …tex = (m_textureUnits[texNdx].texCubeBinding) ? (m_textureUnits[texNdx].texCubeBinding) : (&m_text… in drawWithReference() 4476 if (texNdx >= 0 && (size_t)texNdx < m_textureUnits.size()) in drawWithReference() 4477 …tex = (m_textureUnits[texNdx].tex2DArrayBinding) ? (m_textureUnits[texNdx].tex2DArrayBinding) : (&… in drawWithReference() 4495 if (texNdx >= 0 && (size_t)texNdx < m_textureUnits.size()) in drawWithReference() [all …]
|
/external/deqp/modules/gles3/accuracy/ |
D | es3aTextureFilteringTests.cpp | 436 for (int texNdx = 0; texNdx < (int)m_textures.size(); texNdx++) in init() local 443 …tcu::PixelBufferAccess access = m_textures[texNdx]->getRefTexture().getLevelFace(levelNdx, (tcu::C… in init()
|
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/ |
D | vktOpaqueTypeIndexingTests.cpp | 890 const int texNdx = m_lookupIndices[lookupNdx]; in iterate() local 892 …xAccess.sample2DCompare(refSampler, tcu::Sampler::NEAREST, coord, (float)texNdx, 0.0f, tcu::IVec3(… in iterate() 913 const int texNdx = m_lookupIndices[lookupNdx]; in iterate() local 920 const tcu::Vec4 reference = refTexAccess.getPixel(texNdx, 0); in iterate() 935 const tcu::UVec4 reference = refTexAccess.getPixelUint(texNdx, 0); in iterate()
|