From: Steinar H. Gunderson Date: Sat, 22 Mar 2014 15:12:47 +0000 (+0100) Subject: Stop the FFTPassEffect Repeat test after FFT size 128. X-Git-Tag: 1.1~23 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=50e8a8eb0f3073a05b8ccc38c2409d832360db23 Stop the FFTPassEffect Repeat test after FFT size 128. The reason is that the 256 test uses texture sizes of 256*31=7936, and above ~3900, some cards (at least both my Intel and NVidia card) start having accuracy issues on some sizes. The test happens not to die on this for semi-obscure reasons, but that's mostly by accident, and in any case, requiring 8k textures for a unit test might be a bit on the upper side. --- diff --git a/fft_pass_effect_test.cpp b/fft_pass_effect_test.cpp index 284aa5f..7eafbd9 100644 --- a/fft_pass_effect_test.cpp +++ b/fft_pass_effect_test.cpp @@ -126,7 +126,7 @@ TEST(FFTPassEffectTest, SingleFrequency) { TEST(FFTPassEffectTest, Repeat) { srand(12345); - for (int fft_size = 2; fft_size < 512; fft_size *= 2) { + for (int fft_size = 2; fft_size <= 128; fft_size *= 2) { const int num_repeats = 31; // Prime, to make things more challenging. float data[num_repeats * fft_size * 4]; float expected_data[num_repeats * fft_size * 4], out_data[num_repeats * fft_size * 4];