nir/serialize: support any num_components for remaining instructions
authorMarek Olšák <marek.olsak@amd.com>
Fri, 22 Nov 2019 01:24:08 +0000 (20:24 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 23 Nov 2019 05:02:10 +0000 (00:02 -0500)
commitad40715f3595537cfcc3d489f86d6c4dd7f34cc6
treedf7384520e6334845fd451164ec525712fdb0b79
parentc028449c011c395ed64eb2d873c0efb4deb2c6e8
nir/serialize: support any num_components for remaining instructions

Only NPOT vectors greater than vec4 use the extra uint32.

This is for instructions that share the dest code.
load_const and undef already support 1-16 in the header.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/compiler/nir/nir_serialize.c