SHARE
TWEET

Untitled

a guest Apr 21st, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/src/compiler/nir/nir_lower_sincos.c b/src/compiler/nir/nir_lower_sincos.c
  2. index 5870bb11e7..f43daa27b2 100644
  3. --- a/src/compiler/nir/nir_lower_sincos.c
  4. +++ b/src/compiler/nir/nir_lower_sincos.c
  5. @@ -30,7 +30,7 @@
  6.  static nir_ssa_def *
  7.  shrink_input(nir_builder *b, nir_ssa_def *x)
  8.  {
  9. -   nir_ssa_def *scaled_x = nir_fmul_imm(b, x, 1.0 / 2 * M_PI);
  10. +   nir_ssa_def *scaled_x = nir_fmul_imm(b, x, 1.0 / (2 * M_PI));
  11.  
  12.     nir_ssa_def *xfrac = nir_fsub(b, scaled_x, nir_ffloor(b, scaled_x));
  13.     /* Map [0.5, 1] to [-0.5, 0] */
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top