X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=fft_input.cpp;h=f9339df24779fab2cb37fb00baba51e88f613d4b;hp=b37d52039b77c7b15aa4a13242af328d6a54d4f2;hb=refs%2Fheads%2F1.3.x-release;hpb=9c12e38b7cd88a77ef297d080b7c41e6bd6326fb diff --git a/fft_input.cpp b/fft_input.cpp index b37d520..f9339df 100644 --- a/fft_input.cpp +++ b/fft_input.cpp @@ -67,8 +67,8 @@ void FFTInput::set_gl_state(GLuint glsl_program_num, const string& prefix, unsig // Convert to fp16. fp16_int_t *kernel = new fp16_int_t[fft_width * fft_height * 2]; for (int i = 0; i < fft_width * fft_height; ++i) { - kernel[i * 2 + 0] = fp64_to_fp16(out[i][0]); - kernel[i * 2 + 1] = fp64_to_fp16(out[i][1]); + kernel[i * 2 + 0] = fp32_to_fp16(out[i][0]); + kernel[i * 2 + 1] = fp32_to_fp16(out[i][1]); } // (Re-)upload the texture.