Re: [Mesa-dev] [PATCH 04/50] glsl: Add "built-in" functions to do eq(fp64, fp64)

2018-03-14 Thread Dave Airlie
> Is a mix really warranted here? Could just use > return result && !(isaNaN || isbNaN) (since the other mix part is just > false I think mix is a bit overkill, albeit it might not really make a > difference). > Actually I think it should be simplified, you don't need to check both > vars for NaN

Re: [Mesa-dev] [PATCH 04/50] glsl: Add "built-in" functions to do eq(fp64, fp64)

2018-03-13 Thread Roland Scheidegger
Am 13.03.2018 um 05:24 schrieb Dave Airlie: > From: Elie Tournier > > Signed-off-by: Elie Tournier > --- > src/compiler/glsl/builtin_float64.h | 104 > > src/compiler/glsl/builtin_functions.cpp | 4 ++

[Mesa-dev] [PATCH 04/50] glsl: Add "built-in" functions to do eq(fp64, fp64)

2018-03-12 Thread Dave Airlie
From: Elie Tournier Signed-off-by: Elie Tournier --- src/compiler/glsl/builtin_float64.h | 104 src/compiler/glsl/builtin_functions.cpp | 4 ++ src/compiler/glsl/builtin_functions.h | 3 +