Home | History | Annotate | Download | only in functional

Lines Matching refs:log

93 int compareImages (tcu::TestLog& log, glu::RenderContext& renderCtx, const tcu::ConstPixelBufferAccess& test, const tcu::ConstPixelBufferAccess& ref, const tcu::PixelBufferAccess& diffMask, int radius)
153 log << tcu::TestLog::Message << faultyPixels << " faulty pixel(s) found." << tcu::TestLog::EndMessage;
158 void verifyImages (tcu::TestLog& log, tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const tcu::ConstPixelBufferAccess& testImage, const tcu::ConstPixelBufferAccess& referenceImage)
167 faultyPixels = compareImages(log, renderCtx, referenceImage, testImage, diffMask.getAccess(), kernelRadius);
171 log << TestLog::ImageSet("Images", "Image comparison");
172 log << TestLog::Image("Test image", "Test image", testImage);
173 log << TestLog::Image("Reference image", "Reference image", referenceImage);
174 log << TestLog::Image("Difference mask", "Difference mask", diffMask.getAccess());
175 log << TestLog::EndImageSet;
177 log << tcu::TestLog::Message << "Got " << faultyPixels << " faulty pixel(s)." << tcu::TestLog::EndMessage;
361 tcu::TestLog& log = m_testCtx.getLog();
374 log << program;
386 log << TestLog::Message << "DepthFunc = GL_LEQUAL" << TestLog::EndMessage;
393 log << TestLog::Message << "Draw bottom-right. Color = White.\tState: PolygonOffset(0, -2), POLYGON_OFFSET_FILL disabled." << TestLog::EndMessage;
402 log << TestLog::Message << "Draw bottom-right. Color = Red.\tState: PolygonOffset(0, -1), POLYGON_OFFSET_FILL enabled." << TestLog::EndMessage;
435 log << TestLog::Message << "Expecting: Bottom-right = Red." << TestLog::EndMessage;
448 verifyImages(log, m_testCtx, m_context.getRenderContext(), testImage.getAccess(), referenceImage.getAccess());
489 tcu::TestLog& log = m_testCtx.getLog();
503 log << program;
517 log << TestLog::Message << "Framebuffer cleared, clear color = Black." << TestLog::EndMessage;
518 log << TestLog::Message << "POLYGON_OFFSET_FILL enabled." << TestLog::EndMessage;
533 log << TestLog::Message << "Setup triangle with random coordinates:" << TestLog::EndMessage;
535 log << TestLog::Message
542 log << TestLog::Message << "Draw colorless triangle.\tState: DepthFunc = GL_ALWAYS, PolygonOffset(0, 0)." << TestLog::EndMessage;
551 log << TestLog::Message << "Draw green triangle.\tState: DepthFunc = GL_EQUAL, PolygonOffset(0, " << offset << ")." << TestLog::EndMessage;
558 log << TestLog::Message << TestLog::EndMessage; // empty line for clarity
569 log << TestLog::Message << "Expecting black framebuffer." << TestLog::EndMessage;
573 verifyImages(log, m_testCtx, m_context.getRenderContext(), testImage.getAccess(), referenceImage.getAccess());
608 tcu::TestLog& log = m_testCtx.getLog();
621 log << program;
635 log << TestLog::Message << "DepthFunc = GL_LESS." << TestLog::EndMessage;
636 log << TestLog::Message << "POLYGON_OFFSET_FILL enabled." << TestLog::EndMessage;
642 log << TestLog::Message << "Draw top-left. Color = White.\tState: PolygonOffset(0, 0)." << TestLog::EndMessage;
648 log << TestLog::Message << "Draw top-left. Color = Green.\tState: PolygonOffset(0, -1)." << TestLog::EndMessage;
659 log << TestLog::Message << "Draw bottom-right. Color = White.\tState: PolygonOffset(0, 1)." << TestLog::EndMessage;
665 log << TestLog::Message << "Draw bottom-right. Color = Yellow.\tState: PolygonOffset(0, 0)." << TestLog::EndMessage;
698 log << TestLog::Message << "Expecting: Top-left = Green, Bottom-right = Yellow." << TestLog::EndMessage;
723 verifyImages(log, m_testCtx, m_context.getRenderContext(), testImage.getAccess(), referenceImage.getAccess());
758 tcu::TestLog& log = m_testCtx.getLog();
771 log << program;
784 log << TestLog::Message << "POLYGON_OFFSET_FILL enabled." << TestLog::EndMessage;
790 log << TestLog::Message << "Draw bottom-right. Color = White.\tState: DepthFunc = ALWAYS, PolygonOffset(0, 8), Polygon Z = 1.0. (Result depth should clamp to 1.0)." << TestLog::EndMessage;
797 log << TestLog::Message << "Draw bottom-right. Color = Red.\tState: DepthFunc = GREATER, PolygonOffset(0, 9), Polygon Z = 1.0. (Result depth should clamp to 1.0 too)" << TestLog::EndMessage;
809 log << TestLog::Message << "Draw top-left. Color = White.\tState: DepthFunc = ALWAYS, PolygonOffset(0, -8), Polygon Z = -1.0. (Result depth should clamp to -1.0)" << TestLog::EndMessage;
816 log << TestLog::Message << "Draw top-left. Color = Yellow.\tState: DepthFunc = LESS, PolygonOffset(0, -9), Polygon Z = -1.0. (Result depth should clamp to -1.0 too)." << TestLog::EndMessage;
832 log << TestLog::Message << "Expecting: Top-left = White, Bottom-right = White." << TestLog::EndMessage;
836 verifyImages(log, m_testCtx, m_context.getRenderContext(), testImage.getAccess(), referenceImage.getAccess());
871 tcu::TestLog& log = m_testCtx.getLog();
884 log << program;
897 log << TestLog::Message << "POLYGON_OFFSET_FILL enabled." << TestLog::EndMessage;
903 log << TestLog::Message << "Draw top-left. Color = White.\tState: DepthFunc = ALWAYS, PolygonOffset(0, 0)." << TestLog::EndMessage;
910 log << TestLog::Message << "Draw top-left. Color = Green.\tState: DepthFunc = LESS, PolygonOffset(-1, 0)." << TestLog::EndMessage;
922 log << TestLog::Message << "Draw bottom-right. Color = White.\tState: DepthFunc = ALWAYS, PolygonOffset(0, 0)." << TestLog::EndMessage;
929 log << TestLog::Message << "Draw bottom-right. Color = Green.\tState: DepthFunc = GREATER, PolygonOffset(1, 0)." << TestLog::EndMessage;
945 log << TestLog::Message << "Expecting: Top-left = Green, Bottom-right = Green." << TestLog::EndMessage;
949 verifyImages(log, m_testCtx, m_context.getRenderContext(), testImage.getAccess(), referenceImage.getAccess());
978 tcu::TestLog& log = m_testCtx.getLog();
982 // log the triangle
983 log << TestLog::Message << "Setup triangle with coordinates:" << TestLog::EndMessage;
985 log << TestLog::Message
1001 log << program;
1014 log << TestLog::Message << "POLYGON_OFFSET_FILL enabled." << TestLog::EndMessage;
1019 log << TestLog::Message << "Draw triangle. Color = Red.\tState: DepthFunc = ALWAYS, PolygonOffset(0, 0)." << TestLog::EndMessage;
1026 log << TestLog::Message << "Draw triangle. Color = Black.\tState: DepthFunc = EQUAL, PolygonOffset(4, 0)." << TestLog::EndMessage;
1042 log << TestLog::Message << "Expecting black triangle." << TestLog::EndMessage;
1046 verifyImages(log, m_testCtx, m_context.getRenderContext(), testImage.getAccess(), referenceImage.getAccess());
1092 tcu::TestLog& log = m_testCtx.getLog();
1096 // log triangle info
1097 log << TestLog::Message << "Setup triangle0 coordinates: (slope in window coordinates = 1.0)" << TestLog::EndMessage;
1099 log << TestLog::Message
1105 log << TestLog::Message << "Setup triangle1 coordinates: (slope in window coordinates = 1.0)" << TestLog::EndMessage;
1107 log << TestLog::Message
1123 log << program;
1135 log << TestLog::Message << "Framebuffer cleared, clear color = Black." << TestLog::EndMessage;
1136 log << TestLog::Message << "POLYGON_OFFSET_FILL enabled." << TestLog::EndMessage;
1140 log << TestLog::Message << "Clear depth to 1.0." << TestLog::EndMessage;
1147 log << TestLog::Message << "Draw triangle0. Color = Red.\tState: DepthFunc = NOTEQUAL, PolygonOffset(10, 0). (Result depth should clamp to 1.0)." << TestLog::EndMessage;
1156 log << TestLog::Message << "Clear depth to 0.0." << TestLog::EndMessage;
1163 log << TestLog::Message << "Draw triangle1. Color = Green.\tState: DepthFunc = NOTEQUAL, PolygonOffset(-10, 0). (Result depth should clamp to 0.0)." << TestLog::EndMessage;
1179 log << TestLog::Message << "Expecting black framebuffer." << TestLog::EndMessage;
1183 verifyImages(log, m_testCtx, m_context.getRenderContext(), testImage.getAccess(), referenceImage.getAccess());