freedreno/a3xx: fix TOTALATTRTOVS
authorRob Clark <robclark@freedesktop.org>
Tue, 22 Apr 2014 19:43:51 +0000 (15:43 -0400)
committerRob Clark <robclark@freedesktop.org>
Wed, 23 Apr 2014 11:32:16 +0000 (07:32 -0400)
commit05b3cea77badffa84ba0fe7b233b2be70239d618
treedc41e031e9b3fcc93066da977115e62a163fb0a6
parent34a68345e228b7cbc1bc6909704a89c08bf5368e
freedreno/a3xx: fix TOTALATTRTOVS

In cases where varying fetches are optimized away (just pass-through in
vertex shader, but unused in fragment shader) we need to calculate the
correct TOTALATTROVS based on the actual number of varyings fetched,
otherwise lockup.

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