Lines Matching refs:pixels
1816 // Ad-hoc result verification - check that a certain rectangle in the image contains no black pixels.
2806 log << TestLog::Message << "Note: got " << numWhitePixels << " white and " << numRedPixels << " red pixels" << TestLog::EndMessage;
2810 log << TestLog::Message << "Failure: Got " << totalNumPixels - numWhitePixels - numRedPixels << " other than white or red pixels (maximum tolerance " << badPixelTolerance << ")" << TestLog::EndMessage;
2821 log << TestLog::Message << "Failure: wrong number of white pixels; expected approximately " << totalNumPixels/2 << TestLog::EndMessage;
2830 log << TestLog::Message << "Failure: expected only white pixels (full-viewport quad)" << TestLog::EndMessage;
2842 log << TestLog::Message << "Failure: expected only red pixels (everything culled)" << TestLog::EndMessage;
3282 log << TestLog::Message << "Failure: expected all white pixels" << TestLog::EndMessage;
5151 * pixels exist inside the area of valid primitives, and only black pixels
5366 const tcu::Surface pixels = getPixels(renderCtx, viewport);
5368 log << TestLog::Image("RenderedImage", "Rendered image", pixels);
5377 // Check that white pixels are found around every non-discarded
5378 // patch, and that only black pixels are found after the last
5396 const int x0 = (int)(( offset[0] + 1.0f)*0.5f*(float)pixels.getWidth()) - 1;
5397 const int x1 = (int)((scale[0] + offset[0] + 1.0f)*0.5f*(float)pixels.getWidth()) + 1;
5398 const int y0 = (int)(( offset[1] + 1.0f)*0.5f*(float)pixels.getHeight()) - 1;
5399 const int y1 = (int)((scale[1] + offset[1] + 1.0f)*0.5f*(float)pixels.getHeight()) + 1;
5413 if (!de::inBounds(x, 0, pixels.getWidth()) || !de::inBounds(y, 0, pixels.getHeight()))
5418 if (pixels.getPixel(x, y) != tcu::RGBA::black())
5423 if (pixels.getPixel(x, y) == tcu::RGBA::white())
5442 for (int y = 0; y < pixels.getHeight(); y++)
5443 for (int x = 0; x < pixels.getWidth(); x++)
5447 if (pixels.getPixel(x, y) != tcu::RGBA::black())
5449 log << TestLog::Message << "Failure: expected all pixels to be black in the area "
5450 << (lastWhitePixelColumnOnSecondToLastWhitePixelRow < pixels.getWidth()-1
6190 const tcu::Surface pixels = getPixels(renderCtx, viewport);
6192 const bool success = tcu::fuzzyCompare(log, "ImageComparison", "Image Comparison", reference.getAccess(), pixels.getAccess(), 0.02f, tcu::COMPARE_LOG_RESULT);
6404 const tcu::Surface pixels = getPixels(renderCtx, viewport);
6406 const bool success = tcu::fuzzyCompare(log, "ImageComparison", "Image Comparison", reference.getAccess(), pixels.getAccess(), 0.02f, tcu::COMPARE_LOG_RESULT);