i965: Don't assume that WPOS is always provided on gen6 in the new FS.
authorEric Anholt <eric@anholt.net>
Wed, 6 Oct 2010 19:10:31 +0000 (12:10 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 6 Oct 2010 19:13:08 +0000 (12:13 -0700)
commitb380531fd40e0876218b1116502bafea7911bd3d
treefc91d1e44472091f2452344f696ca281dc3285f4
parent1fdc8c007ea66b4c9866bf2c679653a005307fa5
i965: Don't assume that WPOS is always provided on gen6 in the new FS.

We sensibly only provide it if the FS asks for it.  We could actually
skip WPOS unless the FS needed WPOS.zw, but that's something for
later.

Fixes: glsl-texture2d and probably many others.
src/mesa/drivers/dri/i965/brw_fs.cpp