fosphor: Make sure the FFT len is from #define everywhere
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
parent
e828e7faff
commit
020f5b1c6f
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue