Lines Matching refs:reference

279 	void							verifyRenderbuffer				(TestLog& log, const tcu::TextureFormat& format, const tcu::TextureLevel& reference, const tcu::TextureLevel& result);
455 void FramebufferFetchTestCase::verifyRenderbuffer (TestLog& log, const tcu::TextureFormat& format, const tcu::TextureLevel& reference, const tcu::TextureLevel& result)
467 if (!tcu::floatUlpThresholdCompare(log, name.c_str(), desc.c_str(), reference, result, threshold, tcu::COMPARE_LOG_RESULT))
480 if (!tcu::intThresholdCompare(log, name.c_str(), desc.c_str(), reference, result, threshold, tcu::COMPARE_LOG_RESULT))
493 if (!tcu::floatThresholdCompare(log, name.c_str(), desc.c_str(), reference, result, threshold, tcu::COMPARE_LOG_RESULT))
582 // - Compare resulting surface with reference.
603 tcu::TextureLevel reference (glu::mapGLTransferFormat(m_transferFmt.format, m_transferFmt.dataType), VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 1);
612 tcu::clear(reference.getAccess(), tcu::clamp(fbColor.asUint() + uniformColor.asUint(), formatMinValue.asUint(), formatMaxValue.asUint()));
622 tcu::clear(reference.getAccess(), clearColor);
629 tcu::clear(reference.getAccess(), tcu::linearToSRGB(fragmentColor));
633 tcu::clear(reference.getAccess(), tcu::clamp(fbColor + uniformColor, formatMinValue, formatMaxValue));
637 return reference;
645 tcu::TextureLevel reference = genReferenceTexture(fbColor, uniformColor);
653 verifyRenderbuffer(m_testCtx.getLog(), m_texFmt, reference, result);
757 tcu::TextureLevel reference (glu::mapGLTransferFormat(m_transferFmt.format, m_transferFmt.dataType), VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 1);
758 tcu::clear(reference.getAccess(), fbColor + uniformColor);
760 return reference;
804 tcu::TextureLevel reference = genReferenceTexture(colors[i], uniformColor);
808 verifyRenderbuffer(m_testCtx.getLog(), m_texFmt, reference, result);
863 tcu::TextureLevel reference (glu::mapGLTransferFormat(m_transferFmt.format, m_transferFmt.dataType), VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 1);
864 tcu::clear(reference.getAccess(), fbColor + uniformColor);
866 return reference;
874 tcu::TextureLevel reference = genReferenceTexture(fbColor, uniformColor);
882 verifyRenderbuffer(m_testCtx.getLog(), m_texFmt, reference, result);
892 // - Compare resulting surface with reference.
958 tcu::TextureLevel reference (glu::mapGLTransferFormat(m_transferFmt.format, m_transferFmt.dataType), VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 1);
959 tcu::fillWithGrid(reference.getAccess(), 8, colorEven + fbColor, colorOdd + fbColor);
961 return reference;
971 tcu::TextureLevel reference = genReferenceTexture(colorEven, colorOdd, fbColor);
978 verifyRenderbuffer(m_testCtx.getLog(), m_texFmt, reference, result);
992 // - Compare resulting surface with reference.
1047 tcu::TextureLevel reference (glu::mapGLTransferFormat(m_transferFmt.format, m_transferFmt.dataType), VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 1);
1049 int width = reference.getAccess().getWidth();
1050 int height = reference.getAccess().getHeight();
1056 tcu::clear(getSubregion(reference.getAccess(), left, 0, 0, width-left, top, 1), fbColor + compositeColor);
1057 tcu::clear(getSubregion(reference.getAccess(), 0, top, 0, left, height-top, 1), fbColor + uniformColor);
1058 tcu::clear(getSubregion(reference.getAccess(), left, top, 0, width-left, height-top, 1), fbColor + compositeColor);
1059 tcu::clear(getSubregion(reference.getAccess(), 0, 0, 0, left, top, 1), fbColor + uniformColor);
1061 return reference;
1069 tcu::TextureLevel reference = genReferenceTexture(fbColor, uniformColor);
1077 verifyRenderbuffer(m_testCtx.getLog(), m_texFmt, reference, result);
1150 tcu::TextureLevel reference (glu::mapGLTransferFormat(m_transferFmt.format, m_transferFmt.dataType), VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 1);
1151 tcu::fillWithGrid(reference.getAccess(), 8, fbColorEven + fbColorEven, fbColorOdd);
1153 return reference;
1161 tcu::TextureLevel reference = genReferenceTexture(fbColorEven, fbColorOdd);
1169 verifyRenderbuffer(m_testCtx.getLog(), m_texFmt, reference, result);
1179 // - Compare resulting surface with reference.
1193 void genReferenceMipmap (const tcu::Vec4& color, tcu::TextureLevel& reference);
1229 tcu::TextureLevel reference (glu::mapGLTransferFormat(m_transferFmt.format, m_transferFmt.dataType), VIEWPORT_WIDTH >> level, VIEWPORT_HEIGHT >> level, 1);
1231 genReferenceMipmap(colors[level] + uniformColor, reference);
1233 return reference;
1236 void TextureLevelTestCase::genReferenceMipmap (const tcu::Vec4& color, tcu::TextureLevel& reference)
1238 const int width = reference.getAccess().getWidth();
1239 const int height = reference.getAccess().getHeight();
1243 clear(getSubregion(reference.getAccess(), left, 0, 0, width-left, top, 1), color);
1244 clear(getSubregion(reference.getAccess(), 0, top, 0, left, height-top, 1), color);
1245 clear(getSubregion(reference.getAccess(), left, top, 0, width-left, height-top, 1), color);
1246 clear(getSubregion(reference.getAccess(), 0, 0, 0, left, top, 1), color);
1272 tcu::TextureLevel reference = genReferenceTexture(level, levelColors, uniformColor);
1280 verifyRenderbuffer(m_testCtx.getLog(), m_texFmt, reference, result);
1331 tcu::TextureLevel reference (glu::mapGLTransferFormat(m_transferFmt.format, m_transferFmt.dataType), VIEWPORT_WIDTH, VIEWPORT_HEIGHT, 1);
1332 clear(reference.getAccess(), colors[layer] + uniformColor);
1334 return reference;
1342 // - Compare resulting surface with reference.
1367 tcu::TextureLevel reference = genReferenceTexture(layer, layerColors, uniformColor);
1375 verifyRenderbuffer(m_testCtx.getLog(), m_texFmt, reference, result);