]> git.sesse.net Git - movit/commitdiff
Loosen a test bound slightly for the benefit of NVIDIA cards.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 15 Mar 2017 19:03:05 +0000 (20:03 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 15 Mar 2017 19:03:05 +0000 (20:03 +0100)
ycbcr_conversion_effect_test.cpp

index 27a10e32783c8d68588c7b888abd236b3027d341..6bac55624307df2718927f536b4c019377c0fccf 100644 (file)
@@ -619,7 +619,9 @@ TEST(YCbCrConversionEffectTest, TenBitOutputInSixteen) {
        tester.add_ycbcr_output(format, OUTPUT_ALPHA_FORMAT_POSTMULTIPLIED, ycbcr_format, YCBCR_OUTPUT_INTERLEAVED, GL_UNSIGNED_SHORT);
        tester.run(out_data, GL_RGBA, COLORSPACE_sRGB, GAMMA_sRGB);
 
-       expect_equal(expected_data, out_data, 4 * width, height);
+       // Add some slight leeway for the benefit of cards that don't
+       // round correctly (would be fixed by DitherEffect if we had dither).
+       expect_equal(expected_data, out_data, 4 * width, height, 2);
 }
 
 }  // namespace movit