nir/validate: validate num_components on registers and intrinsics
authorKarol Herbst <kherbst@redhat.com>
Fri, 15 Nov 2019 11:44:58 +0000 (12:44 +0100)
committerKarol Herbst <kherbst@redhat.com>
Thu, 21 Nov 2019 00:10:24 +0000 (01:10 +0100)
commit5934a53bfe39e8b59c82d643ff1f3477663e8aca
tree530ce0cf9e63a71d975ab0f2937d8b559a7fcc1d
parenteae8dfef58cc867e7bebd9c20ecccf2012cea5d9
nir/validate: validate num_components on registers and intrinsics

also make 8 and 16 compoments invalid. We will enable that later again
when we actually support it.

v2: fix validation of nir_intrinsic_instr::num_components
    correct validation of instr->num_components

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_validate.c