[Mesa-dev] [PATCH 05/13] nir: Avoid double promition.

Iago Toral itoral at igalia.com
Tue Jul 14 02:48:13 PDT 2015


On Tue, 2015-07-14 at 11:30 +0200, Iago Toral wrote:
> Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>

BTW, ldexpf and copysignf are c99 too, so I guess you'll need to wrap
these too.

Iago

> On Mon, 2015-07-13 at 16:22 -0700, Matt Turner wrote:
> > ---
> >  src/glsl/nir/nir_opcodes.py | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/src/glsl/nir/nir_opcodes.py b/src/glsl/nir/nir_opcodes.py
> > index 56e96d9..df5b7e2 100644
> > --- a/src/glsl/nir/nir_opcodes.py
> > +++ b/src/glsl/nir/nir_opcodes.py
> > @@ -474,10 +474,10 @@ else
> >  """)
> >  
> >  opcode("ldexp", 0, tfloat, [0, 0], [tfloat, tint], "", """
> > -dst = ldexp(src0, src1);
> > +dst = ldexpf(src0, src1);
> >  /* flush denormals to zero. */
> >  if (!isnormal(dst))
> > -   dst = copysign(0.0f, src0);
> > +   dst = copysignf(0.0f, src0);
> >  """)
> >  
> >  # Combines the first component of each input to make a 2-component vector.
> 
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev




More information about the mesa-dev mailing list