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,
717 const glu::TextureTestUtil::ReferenceParams samplerParams = genSamplerParams(iterationConfig);
719 logParams(iterationConfig, samplerParams);
720 renderTo(renderedFrame, iterationConfig, samplerParams);
721 verifyImage(renderedFrame, iterationConfig, samplerParams);
731 void TextureBorderClampTest::logParams (const IterationConfig& config, const glu::TextureTestUtil::ReferenceParams& samplerParams)
740 << "Texture lookup bias: " << samplerParams.colorBias << "\n"
741 << "Texture lookup scale: " << samplerParams.colorScale << "\n"
742 << "Filters: min = " << glu::getTextureFilterName(glu::getGLFilterMode(samplerParams.sampler.minFilter))
743 << ", mag = " << glu::getTextureFilterName(glu::getGLFilterMode(samplerParams.sampler.magFilter)) << "\n"
764 const glu::TextureTestUtil::ReferenceParams& samplerParams)
796 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, glu::getGLWrapMode(samplerParams.sampler.wrapS));
797 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, glu::getGLWrapMode(samplerParams.sampler.wrapT));
798 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, glu::getGLFilterMode(samplerParams.sampler.minFilter));
799 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, glu::getGLFilterMode(samplerParams.sampler.magFilter));
835 gl.samplerParameteri(**sampler, GL_TEXTURE_WRAP_S, glu::getGLWrapMode(samplerParams.sampler.wrapS));
836 gl.samplerParameteri(**sampler, GL_TEXTURE_WRAP_T, glu::getGLWrapMode(samplerParams.sampler.wrapT));
837 gl.samplerParameteri(**sampler, GL_TEXTURE_MIN_FILTER, glu::getGLFilterMode(samplerParams.sampler.minFilter));
838 gl.samplerParameteri(**sampler, GL_TEXTURE_MAG_FILTER, glu::getGLFilterMode(samplerParams.sampler.magFilter));
866 renderQuad(&texCoord[0], samplerParams);
870 void TextureBorderClampTest::renderQuad (const float* texCoord, const glu::TextureTestUtil::ReferenceParams& samplerParams)
874 m_renderer->renderQuad(0, texCoord, samplerParams);
900 gl.uniform1f(gl.getUniformLocation(progId, "u_ref"), samplerParams.ref);
901 gl.uniform4fv(gl.getUniformLocation(progId, "u_colorScale"), 1, samplerParams.colorScale.getPtr());
902 gl.uniform4fv(gl.getUniformLocation(progId, "u_colorBias"), 1, samplerParams.colorBias.getPtr());
911 const glu::TextureTestUtil::ReferenceParams& samplerParams)
924 if (samplerParams.sampler.compare == tcu::Sampler::COMPAREMODE_NONE)
927 const bool isNearestMinFilter = samplerParams.sampler.minFilter == tcu::Sampler::NEAREST || samplerParams.sampler.minFilter == tcu::Sampler::NEAREST_MIPMAP_NEAREST;
928 const bool isNearestMagFilter = samplerParams.sampler.magFilter == tcu::Sampler::NEAREST;
935 lookupPrecision.colorThreshold = tcu::computeFixedPointThreshold(colorBits) / samplerParams.colorScale;
944 samplerParams,
952 samplerParams,
985 samplerParams,
995 samplerParams,
1012 const glu::TextureTestUtil::ReferenceParams& samplerParams,
1021 glu::TextureTestUtil::sampleTexture(tcu::SurfaceAccess(reference, pixelFormat), m_texture->getRefTexture(), texCoord, samplerParams);
1024 texCoord, samplerParams, lookupPrecision, lodPrecision, m_testCtx.getWatchDog());
1042 const glu::TextureTestUtil::ReferenceParams& samplerParams,
1053 const tcu::Texture2DView effectiveView = tcu::getEffectiveTextureView(m_texture->getRefTexture(), srcLevelStorage, samplerParams.sampler);
1058 glu::TextureTestUtil::sampleTexture(tcu::SurfaceAccess(reference, pixelFormat), effectiveView, texCoord, samplerParams);
1061 texCoord, samplerParams, texComparePrecision, lodPrecision, nonShadowThreshold);
1070 texCoord, samplerParams, lowQualityTexComparePrecision, lowQualityLodPrecision, nonShadowThreshold);
1103 const glu::TextureTestUtil::ReferenceParams& samplerParams,
1118 const tcu::Texture2DView effectiveView = tcu::getEffectiveTextureView(m_texture->getRefTexture(), srcLevelStorage, samplerParams.sampler);
1131 const tcu::Vec4 referenceValue = effectiveView.gatherOffsets(samplerParams.sampler, texCoord.x(), texCoord.y(), 0, glu::getDefaultGatherOffsets());
1132 const tcu::Vec4 referencePixel = referenceValue * samplerParams.colorScale + samplerParams.colorBias;
1134 const tcu::Vec4 resultValue = (resultPixel - samplerParams.colorBias) / samplerParams.colorScale;
1142 if (!tcu::isGatherOffsetsResultValid(effectiveView, samplerParams.sampler, lookupPrecision, texCoord, 0, glu::getDefaultGatherOffsets(), resultValue))
1166 const glu::TextureTestUtil::ReferenceParams& samplerParams,
1179 const tcu::Texture2DView effectiveView = tcu::getEffectiveTextureView(m_texture->getRefTexture(), srcLevelStorage, samplerParams.sampler);
1196 const float refZ = samplerParams.ref;
1197 const tcu::Vec4 referenceValue = effectiveView.gatherOffsetsCompare(samplerParams.sampler, refZ, texCoord.x(), texCoord.y(), glu::getDefaultGatherOffsets());
1204 if (!tcu::isGatherOffsetsCompareResultValid(effectiveView, samplerParams.sampler, texComparePrecision, texCoord, glu::getDefaultGatherOffsets(), refZ, resultValue))
1209 if (!tcu::isGatherOffsetsCompareResultValid(effectiveView, samplerParams.sampler, lowQualityTexComparePrecision, texCoord, glu::getDefaultGatherOffsets(), refZ, resultValue))
2015 const glu::TextureTestUtil::ReferenceParams& samplerParams);
2017 void logParams (const glu::TextureTestUtil::ReferenceParams& samplerParams);
2020 const glu::TextureTestUtil::ReferenceParams& samplerParams);
2136 const glu::TextureTestUtil::ReferenceParams samplerParams = getSamplerParams();
2138 logParams(samplerParams);
2139 renderTo(renderedFrame, samplerParams);
2140 verifyImage(renderedFrame, samplerParams);
2145 void TextureBorderClampPerAxisCase3D::logParams (const glu::TextureTestUtil::ReferenceParams& samplerParams)
2153 << "Texture lookup bias: " << samplerParams.colorBias << "\n"
2154 << "Texture lookup scale: " << samplerParams.colorScale << "\n"
2163 const glu::TextureTestUtil::ReferenceParams& samplerParams)
2173 gl.texParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_S, glu::getGLWrapMode(samplerParams.sampler.wrapS));
2174 gl.texParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_T, glu::getGLWrapMode(samplerParams.sampler.wrapT));
2175 gl.texParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_R, glu::getGLWrapMode(samplerParams.sampler.wrapR));
2176 gl.texParameteri(GL_TEXTURE_3D, GL_TEXTURE_MIN_FILTER, glu::getGLFilterMode(samplerParams.sampler.minFilter));
2177 gl.texParameteri(GL_TEXTURE_3D, GL_TEXTURE_MAG_FILTER, glu::getGLFilterMode(samplerParams.sampler.magFilter));
2202 m_renderer->renderQuad(0, &m_texCoords[0], samplerParams);
2207 const glu::TextureTestUtil::ReferenceParams& samplerParams)
2221 lookupPrecision.colorThreshold = tcu::computeFixedPointThreshold(colorBits) / samplerParams.colorScale;
2226 glu::TextureTestUtil::sampleTexture(tcu::SurfaceAccess(reference, pixelFormat), m_texture->getRefTexture(), &m_texCoords[0], samplerParams);
2229 &m_texCoords[0], samplerParams, lookupPrecision, lodPrecision, m_testCtx.getWatchDog());