Re: [Mesa-dev] [PATCH 05/28] Revert "spirv: Don’t check for NaN for most OpFOrd* comparisons"

2018-12-07 Thread Connor Abbott
On Fri, Dec 7, 2018 at 1:16 AM Ian Romanick wrote: > > On 12/05/2018 10:12 AM, Connor Abbott wrote: > > This won't work, since this optimization in nir_opt_algebraic will undo it: > > > > # For any float comparison operation, "cmp", if you have "a == a && a cmp b" > > # then the "a == a" is

Re: [Mesa-dev] [PATCH 05/28] Revert "spirv: Don’t check for NaN for most OpFOrd* comparisons"

2018-12-06 Thread Ian Romanick
On 12/05/2018 10:12 AM, Connor Abbott wrote: > This won't work, since this optimization in nir_opt_algebraic will undo it: > > # For any float comparison operation, "cmp", if you have "a == a && a cmp b" > # then the "a == a" is redundant because it's equivalent to "a is not NaN" > # and, if a is

Re: [Mesa-dev] [PATCH 05/28] Revert "spirv: Don’t check for NaN for most OpFOrd* comparisons"

2018-12-05 Thread Jason Ekstrand
I sent a series last week which does almost everything Connor mentioned... On December 5, 2018 12:12:50 Connor Abbott wrote: This won't work, since this optimization in nir_opt_algebraic will undo it: # For any float comparison operation, "cmp", if you have "a == a && a cmp b" # then the "a

Re: [Mesa-dev] [PATCH 05/28] Revert "spirv: Don’t check for NaN for most OpFOrd* comparisons"

2018-12-05 Thread Connor Abbott
This won't work, since this optimization in nir_opt_algebraic will undo it: # For any float comparison operation, "cmp", if you have "a == a && a cmp b" # then the "a == a" is redundant because it's equivalent to "a is not NaN" # and, if a is a NaN then the second comparison will fail anyway. for

[Mesa-dev] [PATCH 05/28] Revert "spirv: Don’t check for NaN for most OpFOrd* comparisons"

2018-12-05 Thread Samuel Iglesias Gonsálvez
This reverts commit c4ab1bdcc9710e3c7cc7115d3be9c69b7e7712ef. We need to check the arguments looking for NaNs, because they can introduce failures in tests for FOrd*, specially when running VK_KHR_shader_float_control tests in CTS. Signed-off-by: Samuel Iglesias Gonsálvez ---