nir/intrinsics: Don't report negative dest_components
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 27 Mar 2018 23:12:16 +0000 (16:12 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 28 Mar 2018 01:18:26 +0000 (18:18 -0700)
commit5f21a7afe072f8a6e558ccc47407a0a94e0d1313
tree3bdc53ac9e9817470fb9178ee40ad14b7e91fae9
parent7e38f49a8f6a1ee765613e581844f8e9af414b10
nir/intrinsics: Don't report negative dest_components

I have no idea why but having dest_components == -1 was causing a memory
leak somewhere.  Without this, you can't get through a full shader-db
run without running out of memory.

Reviewed-by: Rob Clark <robdclark@gmail.com>
src/compiler/nir/nir_intrinsics_c.py