/external/deqp/external/vulkancts/modules/vulkan/texture/ |
D | vktTextureCompressedFormatTests.cpp | 104 ReferenceParams sampleParams (TEXTURETYPE_2D); in iterate() local 109 …sampleParams.sampler = util::createSampler(m_testParameters.wrapS, m_testParameters.wrapT, m_tes… in iterate() 110 sampleParams.samplerType = SAMPLERTYPE_FLOAT; in iterate() 111 sampleParams.lodMode = LODMODE_EXACT; in iterate() 117 sampleParams.colorBias = tcu::Vec4(0.0f); in iterate() 118 sampleParams.colorScale = tcu::Vec4(1.0f); in iterate() 122 sampleParams.colorBias = tcu::Vec4(0.5f, 0.0f, 0.0f, 0.0f); in iterate() 123 sampleParams.colorScale = tcu::Vec4(0.5f, 1.0f, 1.0f, 1.0f); in iterate() 127 sampleParams.colorBias = tcu::Vec4(0.5f, 0.5f, 0.0f, 0.0f); in iterate() 128 sampleParams.colorScale = tcu::Vec4(0.5f, 0.5f, 1.0f, 1.0f); in iterate() [all …]
|
D | vktTextureShadowTests.cpp | 135 const ReferenceParams& sampleParams, in verifyTexCompareResult() argument 159 sampleTexture(tcu::SurfaceAccess(reference, pixelFormat), clampedSource, texCoord, sampleParams); in verifyTexCompareResult() 160 …eference.getAccess(), errorMask.getAccess(), clampedSource, texCoord, sampleParams, comparePrec, l… in verifyTexCompareResult() 166 sampleTexture(tcu::SurfaceAccess(reference, pixelFormat), src, texCoord, sampleParams); in verifyTexCompareResult() 167 …(result, reference.getAccess(), errorMask.getAccess(), src, texCoord, sampleParams, comparePrec, l… in verifyTexCompareResult() 328 ReferenceParams sampleParams (TEXTURETYPE_2D); in iterate() local 333 …sampleParams.sampler = util::createSampler(m_testParameters.wrapS, m_testParameters.wrapT, m_tes… in iterate() 334 sampleParams.sampler.compare = m_testParameters.compareOp; in iterate() 335 sampleParams.samplerType = SAMPLERTYPE_SHADOW; in iterate() 336 sampleParams.lodMode = LODMODE_EXACT; in iterate() [all …]
|
D | vktTextureSwizzleTests.cpp | 102 ReferenceParams sampleParams (TEXTURETYPE_2D); in iterate() local 107 …sampleParams.sampler = util::createSampler(m_testParameters.wrapS, m_testParameters.wrapT, m_test… in iterate() 108 …sampleParams.samplerType = isCompressedFormat(m_testParameters.format) ? SAMPLERTYPE_FLOAT : getSa… in iterate() 109 sampleParams.lodMode = LODMODE_EXACT; in iterate() 110 sampleParams.colorBias = tcu::Vec4(lookupBias); in iterate() 111 sampleParams.colorScale = tcu::Vec4(lookupScale); in iterate() 113 if (sampleParams.colorBias != tcu::Vec4(0.0f)) in iterate() 114 sampleParams.flags = RenderParams::USE_BIAS; in iterate() 116 log << TestLog::Message << "Compare reference value = " << sampleParams.ref << TestLog::EndMessage; in iterate() 121 m_renderer.renderQuad(rendered, 0, &texCoord[0], sampleParams); in iterate() [all …]
|
/external/deqp/framework/opengl/ |
D | gluTextureTestUtil.hpp | 191 const ReferenceParams& sampleParams, 201 const ReferenceParams& sampleParams, 211 const ReferenceParams& sampleParams, 221 const ReferenceParams& sampleParams, 231 const ReferenceParams& sampleParams, 241 const ReferenceParams& sampleParams, 251 const ReferenceParams& sampleParams, 261 const ReferenceParams& sampleParams, 270 const ReferenceParams& sampleParams, 279 const ReferenceParams& sampleParams, [all …]
|
D | gluTextureTestUtil.cpp | 1230 const ReferenceParams& sampleParams, in computeTextureLookupDiff() argument 1239 …ctiveTextureView(getSubView(baseView, sampleParams.baseLevel, sampleParams.maxLevel), srcLevelStor… in computeTextureLookupDiff() 1250 …const tcu::Vec3 triW[2] = { sampleParams.w.swizzle(0, 1, 2), sampleParams.w.swizzle(3, 2… in computeTextureLookupDiff() 1252 …const tcu::Vec2 lodBias ((sampleParams.flags & ReferenceParams::USE_BIAS) ? sampleParams… in computeTextureLookupDiff() 1274 …const tcu::Vec4 resPix = (result.getPixel(px, py) - sampleParams.colorBias) / sampleParams.colorS… in computeTextureLookupDiff() 1275 …const tcu::Vec4 refPix = (reference.getPixel(px, py) - sampleParams.colorBias) / sampleParams.colo… in computeTextureLookupDiff() 1313 …pedLod = tcu::clampLodBounds(lodBounds + lodBias, tcu::Vec2(sampleParams.minLod, sampleParams.maxL… in computeTextureLookupDiff() 1314 …const bool isOk = tcu::isLookupResultValid(src, sampleParams.sampler, lookupPrec, coord, clamped… in computeTextureLookupDiff() 1333 const ReferenceParams& sampleParams, in computeTextureLookupDiff() argument 1342 …ctiveTextureView(getSubView(baseView, sampleParams.baseLevel, sampleParams.maxLevel), srcLevelStor… in computeTextureLookupDiff() [all …]
|
/external/deqp/modules/gles3/functional/ |
D | es3fTextureShadowTests.cpp | 102 const ReferenceParams& sampleParams, in verifyTexCompareResult() argument 126 sampleTexture(tcu::SurfaceAccess(reference, pixelFormat), clampedSource, texCoord, sampleParams); in verifyTexCompareResult() 127 …eference.getAccess(), errorMask.getAccess(), clampedSource, texCoord, sampleParams, comparePrec, l… in verifyTexCompareResult() 133 sampleTexture(tcu::SurfaceAccess(reference, pixelFormat), src, texCoord, sampleParams); in verifyTexCompareResult() 134 …(result, reference.getAccess(), errorMask.getAccess(), src, texCoord, sampleParams, comparePrec, l… in verifyTexCompareResult() 331 ReferenceParams sampleParams (TEXTURETYPE_2D); in iterate() local 339 sampleParams.sampler = glu::mapGLSampler(m_wrapS, m_wrapT, m_minFilter, m_magFilter); in iterate() 340 sampleParams.sampler.compare = glu::mapGLCompareFunc(m_compareFunc); in iterate() 341 sampleParams.samplerType = SAMPLERTYPE_SHADOW; in iterate() 342 sampleParams.lodMode = LODMODE_EXACT; in iterate() [all …]
|
D | es3fTextureMipmapTests.cpp | 306 ReferenceParams sampleParams (TEXTURETYPE_2D); in iterate() local 325 sampleParams.sampler = glu::mapGLSampler(m_wrapS, m_wrapT, m_minFilter, magFilter); in iterate() 326 …sampleParams.samplerType = glu::TextureTestUtil::getSamplerType(m_texture->getRefTexture().getForm… in iterate() 327 …sampleParams.flags = (isProjected ? ReferenceParams::PROJECTED : 0) | (useLodBias ? ReferencePar… in iterate() 328 sampleParams.lodMode = LODMODE_EXACT; // Use ideal lod. in iterate() 376 sampleParams.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate() 379 sampleParams.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate() 383 m_renderer.renderQuad(0, &texCoord[0], sampleParams); in iterate() 428 sampleParams.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate() 431 sampleParams.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate() [all …]
|
D | es3fTextureFilteringTests.cpp | 588 ReferenceParams sampleParams (TEXTURETYPE_CUBE); in iterate() local 604 …sampleParams.sampler = glu::mapGLSampler(GL_CLAMP_TO_EDGE, GL_CLAMP_TO_EDGE, m_minFilter, m_ma… in iterate() 605 sampleParams.sampler.seamlessCubeMap = true; in iterate() 606 sampleParams.samplerType = getSamplerType(texFmt); in iterate() 607 sampleParams.colorBias = fmtInfo.lookupBias; in iterate() 608 sampleParams.colorScale = fmtInfo.lookupScale; in iterate() 609 sampleParams.lodMode = LODMODE_EXACT; in iterate() 625 m_renderer.renderQuad(0, &texCoord[0], sampleParams); in iterate() 640 …lookupPrecision.colorThreshold = tcu::computeFixedPointThreshold(colorBits) / sampleParams.colorSc… in iterate() 646 &texCoord[0], sampleParams, lookupPrecision, lodPrecision, pixelFormat); in iterate() [all …]
|
/external/deqp/modules/gles2/accuracy/ |
D | es2aTextureMipmapTests.cpp | 264 ReferenceParams sampleParams (TEXTURETYPE_2D); in iterate() local 285 sampleParams.sampler = glu::mapGLSampler(m_wrapS, m_wrapT, m_minFilter, magFilter); in iterate() 286 …sampleParams.samplerType = glu::TextureTestUtil::getSamplerType(m_texture->getRefTexture().getForm… in iterate() 287 sampleParams.colorBias = fmtInfo.lookupBias; in iterate() 288 sampleParams.colorScale = fmtInfo.lookupScale; in iterate() 289 …sampleParams.flags = (isProjected ? ReferenceParams::PROJECTED : 0) | (useLodBias ? ReferencePar… in iterate() 340 sampleParams.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate() 343 sampleParams.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate() 347 m_renderer.renderQuad(0, &texCoord[0], sampleParams); in iterate() 352 sampleParams.lodMode = LODMODE_EXACT; in iterate() [all …]
|
D | es2aTextureFilteringTests.cpp | 527 ReferenceParams sampleParams (TEXTURETYPE_CUBE); in iterate() local 544 sampleParams.sampler = mapGLSampler(m_wrapS, m_wrapT, m_minFilter, m_magFilter); in iterate() 545 sampleParams.sampler.seamlessCubeMap = false; in iterate() 546 sampleParams.samplerType = getSamplerType(texFmt); in iterate() 547 sampleParams.colorBias = fmtInfo.lookupBias; in iterate() 548 sampleParams.colorScale = fmtInfo.lookupScale; in iterate() 549 sampleParams.lodMode = LODMODE_EXACT; in iterate() 564 m_textures[curTexNdx]->getRefTexture(), sampleParams, in iterate() 574 m_textures[curTexNdx]->getRefTexture(), sampleParams, in iterate() 595 m_textures[curTexNdx]->getRefTexture(), sampleParams, in iterate() [all …]
|
/external/deqp/modules/gles3/accuracy/ |
D | es3aTextureMipmapTests.cpp | 255 ReferenceParams sampleParams (TEXTURETYPE_2D); in iterate() local 277 sampleParams.sampler = glu::mapGLSampler(m_wrapS, m_wrapT, m_minFilter, magFilter); in iterate() 278 …sampleParams.samplerType = glu::TextureTestUtil::getSamplerType(m_texture->getRefTexture().getForm… in iterate() 279 sampleParams.colorBias = fmtInfo.lookupBias; in iterate() 280 sampleParams.colorScale = fmtInfo.lookupScale; in iterate() 281 …sampleParams.flags = (isProjected ? ReferenceParams::PROJECTED : 0) | (useLodBias ? ReferencePar… in iterate() 332 sampleParams.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate() 335 sampleParams.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate() 339 m_renderer.renderQuad(0, &texCoord[0], sampleParams); in iterate() 344 sampleParams.lodMode = LODMODE_EXACT; in iterate() [all …]
|
D | es3aTextureFilteringTests.cpp | 536 ReferenceParams sampleParams (TEXTURETYPE_CUBE); in iterate() local 553 sampleParams.sampler = glu::mapGLSampler(m_wrapS, m_wrapT, m_minFilter, m_magFilter); in iterate() 554 sampleParams.sampler.seamlessCubeMap = true; in iterate() 555 sampleParams.samplerType = getSamplerType(texFmt); in iterate() 556 sampleParams.colorBias = fmtInfo.lookupBias; in iterate() 557 sampleParams.colorScale = fmtInfo.lookupScale; in iterate() 558 sampleParams.lodMode = LODMODE_EXACT; in iterate() 573 m_textures[curTexNdx]->getRefTexture(), sampleParams, in iterate() 583 m_textures[curTexNdx]->getRefTexture(), sampleParams, in iterate() 604 m_textures[curTexNdx]->getRefTexture(), sampleParams, in iterate() [all …]
|
/external/deqp/modules/gles2/functional/ |
D | es2fTextureFilteringTests.cpp | 541 ReferenceParams sampleParams (TEXTURETYPE_CUBE); in iterate() local 557 sampleParams.sampler = glu::mapGLSampler(m_wrapS, m_wrapT, m_minFilter, m_magFilter); in iterate() 558 sampleParams.sampler.seamlessCubeMap = true; in iterate() 559 sampleParams.samplerType = getSamplerType(texFmt); in iterate() 560 sampleParams.colorBias = fmtInfo.lookupBias; in iterate() 561 sampleParams.colorScale = fmtInfo.lookupScale; in iterate() 562 sampleParams.lodMode = LODMODE_EXACT; in iterate() 578 m_renderer.renderQuad(0, &texCoord[0], sampleParams); in iterate() 593 …lookupPrecision.colorThreshold = tcu::computeFixedPointThreshold(colorBits) / sampleParams.colorSc… in iterate() 599 &texCoord[0], sampleParams, lookupPrecision, lodPrecision, pixelFormat); in iterate()
|
D | es2fTextureMipmapTests.cpp | 262 ReferenceParams sampleParams (TEXTURETYPE_2D); in iterate() local 281 sampleParams.sampler = glu::mapGLSampler(m_wrapS, m_wrapT, m_minFilter, magFilter); in iterate() 282 …sampleParams.samplerType = glu::TextureTestUtil::getSamplerType(m_texture->getRefTexture().getForm… in iterate() 283 …sampleParams.flags = (isProjected ? ReferenceParams::PROJECTED : 0) | (useLodBias ? ReferencePar… in iterate() 284 sampleParams.lodMode = LODMODE_EXACT; // Use ideal lod. in iterate() 332 sampleParams.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate() 335 sampleParams.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate() 339 m_renderer.renderQuad(0, &texCoord[0], sampleParams); in iterate() 384 sampleParams.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate() 387 sampleParams.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate() [all …]
|
/external/deqp/modules/gles31/functional/ |
D | es31fStencilTexturingTests.cpp | 713 const ReferenceParams sampleParams (TEXTURETYPE_CUBE, tcu::Sampler(tcu::Sampler::CLAMP_TO_EDGE, in iterate() local 731 …compareOk = verifyTextureResult(m_testCtx, result, redTex, &texCoord[0], sampleParams, lookupPrec,… in iterate()
|