nir: allow sat on all float destination types
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 31 May 2016 21:50:04 +0000 (17:50 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 1 Jun 2016 14:44:40 +0000 (10:44 -0400)
commitca135a26126edfbcbf19feb6cf6c00eaba3372b9
tree2551a00fdde64db2de07e551c52fde7e07efcaff
parentbd85e4a041c13c0c8a6a9abc7d15d1ceede42cea
nir: allow sat on all float destination types

With the introduction of fp64 and fp16 to nir, there are now a bunch of
float types running around. A F1 2015 shader ends up with an i2f.sat
operation, which has a nir_type_float32 destination. Allow sat on all
the float destination types.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_validate.c