v3d: Don't rely on sorting input vars for VPM read setup.
authorEric Anholt <eric@anholt.net>
Tue, 18 Sep 2018 18:56:22 +0000 (11:56 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 30 Oct 2018 17:46:52 +0000 (10:46 -0700)
commitfc85f7cfdc154e6c2f29445b6023b379c3c18864
tree3ded7f8db8a34ef0b43ef5bdf691c78140a9adee
parentcc78676030d61df17ae2020d63757f69caec3cb5
v3d: Don't rely on sorting input vars for VPM read setup.

For supporting scalar VPM i/o at the NIR level, we need to do a pass over
the vars to figure out how big each attribute is after DCE.  Once we've
done that, we can just walk over c->vattr_sizes[] instead of bothering
with vars.
src/broadcom/compiler/nir_to_vir.c