spirv: Implement IsInf using an integer comparison
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 17 Mar 2017 04:18:10 +0000 (21:18 -0700)
committerDave Airlie <airlied@redhat.com>
Mon, 20 Mar 2017 04:08:19 +0000 (14:08 +1000)
commitfcca6a83cddfdd7b82b9a7e0412c060d0830e3c3
tree8e5bf8ecb6ca72d78e203a8a8200ac84bafb41ff
parente0208949d1eaa7d688b5230581ed353889be5246
spirv: Implement IsInf using an integer comparison

Since we already do fabs on the one source, we're guaranteed to get
positive infinity if we get any infinity at all.  Since +inf only has
one IEEE 754 representation, we can use an integer comparison and avoid
all of the ordered/unordered issues.

Cc: Dave Airlie <airlied@redhat.com>
Reviewed-by: Elie Tournier <elie.tournier@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/compiler/spirv/vtn_alu.c