nir/validate: Rework intrinsic type validation
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 3 Apr 2018 02:23:36 +0000 (19:23 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 23 Jun 2018 03:15:53 +0000 (20:15 -0700)
commit5fbbbda37a09e6d253532fd83097b21cd289c16b
tree4b0a371be87b28be34b060c365fbc35df8a7509f
parent133e8bf4de0439b37ec1b684087571e349991cd9
nir/validate: Rework intrinsic type validation

This moves the switch statement for specific intrinsics above source and
destination validation.  We also rework the source and destination
validation to use different bit_size values for each source and/or
destination.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Acked-by: Rob Clark <robdclark@gmail.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir_validate.c