freedreno/a3xx: fix write to bogus register
authorRob Clark <robclark@freedesktop.org>
Wed, 14 May 2014 16:46:42 +0000 (12:46 -0400)
committerRob Clark <robclark@freedesktop.org>
Thu, 15 May 2014 01:26:35 +0000 (21:26 -0400)
commit670418740fc763f0272b799ea999cd3ff69b1218
treeba6b872e991b74d6a9360159eb6294f6987728d8
parentc37889b5ac77f55b95f5e4b7ad552928c4fe480c
freedreno/a3xx: fix write to bogus register

The loops for updating the multiple packed fields in SP_VS_OUT[] and
SP_VS_VPC_DST[] will zero out one register beyond the last that on
required.  Which is normally not a problem (and is kinda convenient
when looking at cmdstream dumps) unless we have maximum (16) varyings.

Fix loop termination condition so that this does not happen.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a3xx/fd3_program.c