nir/serialize: remove up to 3 consecutive equal ALU instruction headers
authorMarek Olšák <marek.olsak@amd.com>
Wed, 6 Nov 2019 03:14:28 +0000 (22:14 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 23 Nov 2019 05:02:10 +0000 (00:02 -0500)
commit487a495cc09e15ab1582309ffee0fbeb302d5f45
treeeb6c51f02c8b7a8e70fb5329ff59027ba4e86d25
parentc3fa9de2a98b342b8023bfda0f172a065dbd575b
nir/serialize: remove up to 3 consecutive equal ALU instruction headers

vec4 scalarized ALUs typically have 4 equal instruction headers, so remove
the last 3.

There are no bits left in the ALU header for more flags, so future
extensions of NIR will have to use something like instr_type == 15
to describe more complex ALU instructions.

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