i965/fs: Properly check for PAD in fragment shaders with > 16 varyings.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 26 Oct 2015 08:03:12 +0000 (01:03 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 29 Oct 2015 05:05:08 +0000 (22:05 -0700)
commitb94cdcdada251bb8e866cb7af0f2ff222b55a918
treed0ffa2100911d8481fe7dab8c65556e814cd39d5
parent6ae47a3eb4e30fa92dd60e4a16e016e8585c3c48
i965/fs: Properly check for PAD in fragment shaders with > 16 varyings.

Commit 268008f98c3810b9f276df985dc93efc0c49f33e changed unused VUE map
slots to be initialized with BRW_VARYING_SLOT_PAD, not COUNT.  I missed
updating this.  It also means that commit message was wrong, as some
code *did* rely slots being initialized to COUNT.

This may fix a bug with SSO programs with > 16 FS input varyings.
I think we probably just emitted extra pointless code, but probably
didn't break anything.  We might also just have no tests for that.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/drivers/dri/i965/brw_fs.cpp