/third_party/vk-gl-cts/modules/gles2/functional/ |
H A D | es2fClippingTests.cpp | 147 inline int compareImages (tcu::TestLog& log, const ConstPixelBufferAccess& test, const ConstPixelBufferAccess& ref, const PixelBufferAccess& diffMask, int kernelRadius, bool (*pixelCmp)(const tcu::IVec4& a, const tcu::IVec4& b)) in compareImages() argument 155 tcu::clear(diffMask, MASK_COLOR_OK); in compareImages() 209 diffMask.setPixel(MASK_COLOR_DEV, x, y); in compareImages() 217 diffMask.setPixel(MASK_COLOR_FAIL, x, y); in compareImages() 240 int compareBlackNonBlackImages (tcu::TestLog& log, const ConstPixelBufferAccess& test, const ConstPixelBufferAccess& ref, const PixelBufferAccess& diffMask, int kernelRadius) in compareBlackNonBlackImages() argument 242 return compareImages(log, test, ref, diffMask, kernelRadius, compareBlackNonBlackPixels); in compareBlackNonBlackImages() 257 int compareColoredImages (tcu::TestLog& log, const ConstPixelBufferAccess& test, const ConstPixelBufferAccess& ref, const PixelBufferAccess& diffMask, int kernelRadius) in compareColoredImages() argument 259 return compareImages(log, test, ref, diffMask, kernelRadius, compareColoredPixels); in compareColoredImages() 566 tcu::Surface diffMask (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender() 573 faultyPixels = compareBlackNonBlackImages(log, testSurface.getAccess(), refSurface.getAccess(), diffMask in testRender() [all...] |
H A D | es2fPolygonOffsetTests.cpp | 93 int compareImages (tcu::TestLog& log, glu::RenderContext& renderCtx, const tcu::ConstPixelBufferAccess& test, const tcu::ConstPixelBufferAccess& ref, const tcu::PixelBufferAccess& diffMask, int radius) in compareImages() argument 105 tcu::clear(diffMask, MASK_COLOR_OK); in compareImages() 138 diffMask.setPixel(MASK_COLOR_DEV, x, y); in compareImages() 145 diffMask.setPixel(MASK_COLOR_FAIL, x, y); in compareImages() 163 tcu::Surface diffMask (testImage.getWidth(), testImage.getHeight()); in verifyImages() 165 faultyPixels = compareImages(log, renderCtx, referenceImage, testImage, diffMask.getAccess(), kernelRadius); in verifyImages() 172 log << TestLog::Image("Difference mask", "Difference mask", diffMask.getAccess()); in verifyImages()
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fClippingTests.cpp | 150 inline int compareImages (tcu::TestLog& log, const ConstPixelBufferAccess& test, const ConstPixelBufferAccess& ref, const PixelBufferAccess& diffMask, int kernelRadius, bool (*pixelCmp)(const tcu::IVec4& a, const tcu::IVec4& b)) in compareImages() argument 158 tcu::clear(diffMask, MASK_COLOR_OK); in compareImages() 212 diffMask.setPixel(MASK_COLOR_DEV, x, y); in compareImages() 220 diffMask.setPixel(MASK_COLOR_FAIL, x, y); in compareImages() 243 int compareBlackNonBlackImages (tcu::TestLog& log, const ConstPixelBufferAccess& test, const ConstPixelBufferAccess& ref, const PixelBufferAccess& diffMask, int kernelRadius) in compareBlackNonBlackImages() argument 245 return compareImages(log, test, ref, diffMask, kernelRadius, compareBlackNonBlackPixels); in compareBlackNonBlackImages() 260 int compareColoredImages (tcu::TestLog& log, const ConstPixelBufferAccess& test, const ConstPixelBufferAccess& ref, const PixelBufferAccess& diffMask, int kernelRadius) in compareColoredImages() argument 262 return compareImages(log, test, ref, diffMask, kernelRadius, compareColoredPixels); in compareColoredImages() 569 tcu::Surface diffMask (TEST_CANVAS_SIZE, TEST_CANVAS_SIZE); in testRender() 576 faultyPixels = compareBlackNonBlackImages(log, testSurface.getAccess(), refSurface.getAccess(), diffMask in testRender() [all...] |
H A D | es3fPolygonOffsetTests.cpp | 96 int compareImages (tcu::TestLog& log, glu::RenderContext& renderCtx, const tcu::ConstPixelBufferAccess& test, const tcu::ConstPixelBufferAccess& ref, const tcu::PixelBufferAccess& diffMask, int radius) in compareImages() argument 108 tcu::clear(diffMask, MASK_COLOR_OK); in compareImages() 141 diffMask.setPixel(MASK_COLOR_DEV, x, y); in compareImages() 148 diffMask.setPixel(MASK_COLOR_FAIL, x, y); in compareImages() 166 tcu::Surface diffMask (testImage.getWidth(), testImage.getHeight()); in verifyImages() 168 faultyPixels = compareImages(log, renderCtx, referenceImage, testImage, diffMask.getAccess(), kernelRadius); in verifyImages() 175 log << TestLog::Image("Difference mask", "Difference mask", diffMask.getAccess()); in verifyImages()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/ |
H A D | StateManagerGL.cpp | 1180 gl::DrawBufferMask diffMask = mBlendStateExt.mEnabledMask ^ enabledMask; in setBlendEnabledIndexed() local 1181 const size_t diffCount = diffMask.count(); in setBlendEnabledIndexed() 1197 diffMask = enabledMask; in setBlendEnabledIndexed() 1202 diffMask = disabledMask; in setBlendEnabledIndexed() 1207 for (size_t drawBufferIndex : diffMask) in setBlendEnabledIndexed() 1254 gl::DrawBufferMask diffMask = in setBlendFuncs() local 1257 size_t diffCount = diffMask.count(); in setBlendFuncs() 1287 diffMask = tempDiffMask; in setBlendFuncs() 1309 for (size_t drawBufferIndex : diffMask) in setBlendFuncs() 1341 gl::DrawBufferMask diffMask in setBlendEquations() local [all...] |
/third_party/vk-gl-cts/framework/common/ |
H A D | tcuImageCompare.cpp | 386 static deInt64 computeSquaredDiffSum (const ConstPixelBufferAccess& ref, const ConstPixelBufferAccess& cmp, const PixelBufferAccess& diffMask, int diffFactor) in computeSquaredDiffSum() argument 389 DE_ASSERT(ref.getWidth() == cmp.getWidth() && ref.getWidth() == diffMask.getWidth()); in computeSquaredDiffSum() 390 DE_ASSERT(ref.getHeight() == cmp.getHeight() && ref.getHeight() == diffMask.getHeight()); in computeSquaredDiffSum() 404 diffMask.setPixel(tcu::RGBA(deClamp32(sum*diffFactor, 0, 255), deClamp32(255-sum*diffFactor, 0, 255), 0, 255).toVec(), x, y); in computeSquaredDiffSum() 432 TextureLevel diffMask (TextureFormat(TextureFormat::RGB, TextureFormat::UNORM_INT8), reference.getWidth(), reference.getHeight()); in measurePixelDiffAccuracy() 434 deInt64 squaredSum = computeSquaredDiffSum(reference, result, diffMask.getAccess(), diffFactor); in measurePixelDiffAccuracy() 449 << TestLog::Image("DiffMask", "Difference", diffMask) in measurePixelDiffAccuracy()
|