i965: SF: Change the flags that refer to "attr" to be based on gl_vert_result.
authorPaul Berry <stereotype441@gmail.com>
Wed, 24 Aug 2011 22:32:17 +0000 (15:32 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 6 Sep 2011 18:04:41 +0000 (11:04 -0700)
commitaafe2cdf86c22da6c1266f307d89b1c80b59562f
treef4f29ec195fdac0cef92b18f0cba0c17b60beef0
parent8b362477d931af40e1a00fc308ebd0b25b722aa2
i965: SF: Change the flags that refer to "attr" to be based on gl_vert_result.

Previously, some of the code in SF erroneously used bitfields based on
the gl_frag_attrib enum when actually referring to vertex results.
This worked, because coincidentally the particular enum values being
used happened to match between gl_frag_attrib and gl_vert_result.  But
it was fragile, because a future change to either gl_vert_result or
gl_frag_attrib would have made the enum values stop matching up.  This
patch switches the SF code to use the correct enum.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_sf_emit.c