Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/compiler/nir/nir_lower_sincos.c b/src/compiler/nir/nir_lower_sincos.c
- index 5870bb11e7..f43daa27b2 100644
- --- a/src/compiler/nir/nir_lower_sincos.c
- +++ b/src/compiler/nir/nir_lower_sincos.c
- @@ -30,7 +30,7 @@
- static nir_ssa_def *
- shrink_input(nir_builder *b, nir_ssa_def *x)
- {
- - nir_ssa_def *scaled_x = nir_fmul_imm(b, x, 1.0 / 2 * M_PI);
- + nir_ssa_def *scaled_x = nir_fmul_imm(b, x, 1.0 / (2 * M_PI));
- nir_ssa_def *xfrac = nir_fsub(b, scaled_x, nir_ffloor(b, scaled_x));
- /* Map [0.5, 1] to [-0.5, 0] */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement