Lines Matching refs:samplerParams
544 const glu::TextureTestUtil::ReferenceParams& samplerParams);
548 const glu::TextureTestUtil::ReferenceParams& samplerParams);
550 const glu::TextureTestUtil::ReferenceParams& samplerParams);
554 const glu::TextureTestUtil::ReferenceParams& samplerParams);
558 const glu::TextureTestUtil::ReferenceParams& samplerParams,
564 const glu::TextureTestUtil::ReferenceParams& samplerParams,
572 const glu::TextureTestUtil::ReferenceParams& samplerParams,
577 const glu::TextureTestUtil::ReferenceParams& samplerParams,
718 const glu::TextureTestUtil::ReferenceParams samplerParams = genSamplerParams(iterationConfig);
720 logParams(iterationConfig, samplerParams);
721 renderTo(renderedFrame, iterationConfig, samplerParams);
722 verifyImage(renderedFrame, iterationConfig, samplerParams);
732 void TextureBorderClampTest::logParams (const IterationConfig& config, const glu::TextureTestUtil::ReferenceParams& samplerParams)
741 << "Texture lookup bias: " << samplerParams.colorBias << "\n"
742 << "Texture lookup scale: " << samplerParams.colorScale << "\n"
743 << "Filters: min = " << glu::getTextureFilterName(glu::getGLFilterMode(samplerParams.sampler.minFilter))
744 << ", mag = " << glu::getTextureFilterName(glu::getGLFilterMode(samplerParams.sampler.magFilter)) << "\n"
765 const glu::TextureTestUtil::ReferenceParams& samplerParams)
797 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, glu::getGLWrapMode(samplerParams.sampler.wrapS));
798 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, glu::getGLWrapMode(samplerParams.sampler.wrapT));
799 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, glu::getGLFilterMode(samplerParams.sampler.minFilter));
800 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, glu::getGLFilterMode(samplerParams.sampler.magFilter));
836 gl.samplerParameteri(**sampler, GL_TEXTURE_WRAP_S, glu::getGLWrapMode(samplerParams.sampler.wrapS));
837 gl.samplerParameteri(**sampler, GL_TEXTURE_WRAP_T, glu::getGLWrapMode(samplerParams.sampler.wrapT));
838 gl.samplerParameteri(**sampler, GL_TEXTURE_MIN_FILTER, glu::getGLFilterMode(samplerParams.sampler.minFilter));
839 gl.samplerParameteri(**sampler, GL_TEXTURE_MAG_FILTER, glu::getGLFilterMode(samplerParams.sampler.magFilter));
867 renderQuad(&texCoord[0], samplerParams);
871 void TextureBorderClampTest::renderQuad (const float* texCoord, const glu::TextureTestUtil::ReferenceParams& samplerParams)
875 m_renderer->renderQuad(0, texCoord, samplerParams);
901 gl.uniform1f(gl.getUniformLocation(progId, "u_ref"), samplerParams.ref);
902 gl.uniform4fv(gl.getUniformLocation(progId, "u_colorScale"), 1, samplerParams.colorScale.getPtr());
903 gl.uniform4fv(gl.getUniformLocation(progId, "u_colorBias"), 1, samplerParams.colorBias.getPtr());
912 const glu::TextureTestUtil::ReferenceParams& samplerParams)
925 if (samplerParams.sampler.compare == tcu::Sampler::COMPAREMODE_NONE)
928 const bool isNearestMinFilter = samplerParams.sampler.minFilter == tcu::Sampler::NEAREST || samplerParams.sampler.minFilter == tcu::Sampler::NEAREST_MIPMAP_NEAREST;
929 const bool isNearestMagFilter = samplerParams.sampler.magFilter == tcu::Sampler::NEAREST;
936 lookupPrecision.colorThreshold = tcu::computeFixedPointThreshold(colorBits) / samplerParams.colorScale;
945 samplerParams,
953 samplerParams,
986 samplerParams,
996 samplerParams,
1013 const glu::TextureTestUtil::ReferenceParams& samplerParams,
1022 glu::TextureTestUtil::sampleTexture(tcu::SurfaceAccess(reference, pixelFormat), m_texture->getRefTexture(), texCoord, samplerParams);
1025 texCoord, samplerParams, lookupPrecision, lodPrecision, m_testCtx.getWatchDog());
1043 const glu::TextureTestUtil::ReferenceParams& samplerParams,
1054 const tcu::Texture2DView effectiveView = tcu::getEffectiveTextureView(m_texture->getRefTexture(), srcLevelStorage, samplerParams.sampler);
1059 glu::TextureTestUtil::sampleTexture(tcu::SurfaceAccess(reference, pixelFormat), effectiveView, texCoord, samplerParams);
1062 texCoord, samplerParams, texComparePrecision, lodPrecision, nonShadowThreshold);
1071 texCoord, samplerParams, lowQualityTexComparePrecision, lowQualityLodPrecision, nonShadowThreshold);
1104 const glu::TextureTestUtil::ReferenceParams& samplerParams,
1119 const tcu::Texture2DView effectiveView = tcu::getEffectiveTextureView(m_texture->getRefTexture(), srcLevelStorage, samplerParams.sampler);
1132 const tcu::Vec4 referenceValue = effectiveView.gatherOffsets(samplerParams.sampler, texCoord.x(), texCoord.y(), 0, glu::getDefaultGatherOffsets());
1133 const tcu::Vec4 referencePixel = referenceValue * samplerParams.colorScale + samplerParams.colorBias;
1135 const tcu::Vec4 resultValue = (resultPixel - samplerParams.colorBias) / samplerParams.colorScale;
1143 if (!tcu::isGatherOffsetsResultValid(effectiveView, samplerParams.sampler, lookupPrecision, texCoord, 0, glu::getDefaultGatherOffsets(), resultValue))
1167 const glu::TextureTestUtil::ReferenceParams& samplerParams,
1180 const tcu::Texture2DView effectiveView = tcu::getEffectiveTextureView(m_texture->getRefTexture(), srcLevelStorage, samplerParams.sampler);
1197 const float refZ = samplerParams.ref;
1198 const tcu::Vec4 referenceValue = effectiveView.gatherOffsetsCompare(samplerParams.sampler, refZ, texCoord.x(), texCoord.y(), glu::getDefaultGatherOffsets());
1205 if (!tcu::isGatherOffsetsCompareResultValid(effectiveView, samplerParams.sampler, texComparePrecision, texCoord, glu::getDefaultGatherOffsets(), refZ, resultValue))
1210 if (!tcu::isGatherOffsetsCompareResultValid(effectiveView, samplerParams.sampler, lowQualityTexComparePrecision, texCoord, glu::getDefaultGatherOffsets(), refZ, resultValue))
2016 const glu::TextureTestUtil::ReferenceParams& samplerParams);
2018 void logParams (const glu::TextureTestUtil::ReferenceParams& samplerParams);
2021 const glu::TextureTestUtil::ReferenceParams& samplerParams);
2139 const glu::TextureTestUtil::ReferenceParams samplerParams = getSamplerParams();
2141 logParams(samplerParams);
2142 renderTo(renderedFrame, samplerParams);
2143 verifyImage(renderedFrame, samplerParams);
2148 void TextureBorderClampPerAxisCase3D::logParams (const glu::TextureTestUtil::ReferenceParams& samplerParams)
2156 << "Texture lookup bias: " << samplerParams.colorBias << "\n"
2157 << "Texture lookup scale: " << samplerParams.colorScale << "\n"
2166 const glu::TextureTestUtil::ReferenceParams& samplerParams)
2176 gl.texParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_S, glu::getGLWrapMode(samplerParams.sampler.wrapS));
2177 gl.texParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_T, glu::getGLWrapMode(samplerParams.sampler.wrapT));
2178 gl.texParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_R, glu::getGLWrapMode(samplerParams.sampler.wrapR));
2179 gl.texParameteri(GL_TEXTURE_3D, GL_TEXTURE_MIN_FILTER, glu::getGLFilterMode(samplerParams.sampler.minFilter));
2180 gl.texParameteri(GL_TEXTURE_3D, GL_TEXTURE_MAG_FILTER, glu::getGLFilterMode(samplerParams.sampler.magFilter));
2205 m_renderer->renderQuad(0, &m_texCoords[0], samplerParams);
2210 const glu::TextureTestUtil::ReferenceParams& samplerParams)
2224 lookupPrecision.colorThreshold = tcu::computeFixedPointThreshold(colorBits) / samplerParams.colorScale;
2229 glu::TextureTestUtil::sampleTexture(tcu::SurfaceAccess(reference, pixelFormat), m_texture->getRefTexture(), &m_texCoords[0], samplerParams);
2232 &m_texCoords[0], samplerParams, lookupPrecision, lodPrecision, m_testCtx.getWatchDog());