vc4: Fix assertion fails from trying to cast non-ALU instrs to ALU.
authorEric Anholt <eric@anholt.net>
Thu, 6 Oct 2016 23:46:35 +0000 (16:46 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 7 Oct 2016 01:09:24 +0000 (18:09 -0700)
commitb30205b1120d4a87b6fb8eac9dea9a7f7a065123
treed4db6bf42179ce07a90b744f0cd270e44ee8c90e
parentc81ec84c1ec24f11f86b2fb725956437c721fe18
vc4: Fix assertion fails from trying to cast non-ALU instrs to ALU.

Fixes 100 piglit tests since the assertions were added to nir.h.  What's
amazing is that these tests used to pass, even when casting garbage.
src/gallium/drivers/vc4/vc4_program.c