diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2013-10-26 17:49:19 +0200 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2013-10-26 17:49:19 +0200 |
commit | 020f5b1c6f59348659445d11e888718be5be91d9 (patch) | |
tree | bf3720b7273839ca34b5df07b90f8198a03cfbd7 | |
parent | e828e7faffb635ce0600a90e6e194f6c30a9c7fe (diff) |
fosphor: Make sure the FFT len is from #define everywhere
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r-- | lib/fosphor/cl.c | 2 | ||||
-rw-r--r-- | lib/fosphor/config.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/fosphor/cl.c b/lib/fosphor/cl.c index 7a119b7..8d9edbb 100644 --- a/lib/fosphor/cl.c +++ b/lib/fosphor/cl.c @@ -466,7 +466,7 @@ cl_do_init(struct fosphor_cl_state *cl, struct fosphor_gl_state *gl) CL_ERR_CHECK(err, "Unable to create display kernel"); /* Configure static display kernel args */ - cl_uint fft_log2_len = 10; + cl_uint fft_log2_len = FOSPHOR_FFT_LEN_LOG; cl_uint fft_batch = FOSPHOR_FFT_MAX_BATCH; cl_float histo_t0r = 16.0f; cl_float histo_t0d = 1024.0f; diff --git a/lib/fosphor/config.h b/lib/fosphor/config.h index c309b5d..fa85520 100644 --- a/lib/fosphor/config.h +++ b/lib/fosphor/config.h @@ -31,7 +31,8 @@ */ -#define FOSPHOR_FFT_LEN 1024 +#define FOSPHOR_FFT_LEN_LOG 10 +#define FOSPHOR_FFT_LEN (1<<FOSPHOR_FFT_LEN_LOG) #define FOSPHOR_FFT_MAX_BATCH 128 |