From 50e8a8eb0f3073a05b8ccc38c2409d832360db23 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 22 Mar 2014 16:12:47 +0100 Subject: [PATCH] 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. --- fft_pass_effect_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.39.2