From e720fac843d5882fb071221f765a59f91f923739 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 15 Mar 2017 20:03:05 +0100 Subject: [PATCH 1/1] Loosen a test bound slightly for the benefit of NVIDIA cards. --- ycbcr_conversion_effect_test.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ycbcr_conversion_effect_test.cpp b/ycbcr_conversion_effect_test.cpp index 27a10e3..6bac556 100644 --- a/ycbcr_conversion_effect_test.cpp +++ b/ycbcr_conversion_effect_test.cpp @@ -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 -- 2.39.2