vc4: Use the intrinsic's first_component for vattr VPM index.
authorEric Anholt <eric@anholt.net>
Thu, 4 Aug 2016 23:33:16 +0000 (16:33 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 19 Aug 2016 20:11:36 +0000 (13:11 -0700)
commitf8fecc396abf00bb6e3e31087875c834981fa699
tree09e61e1140e5102df74747f2a1c84f552c6bc8ec
parentcbf8c1941033fd543aa81cffd02672b5ca81a788
vc4: Use the intrinsic's first_component for vattr VPM index.

Avoids another multiplication by 4 of the base in the NIR.
src/gallium/drivers/vc4/vc4_nir_lower_io.c
src/gallium/drivers/vc4/vc4_program.c