i965: SF: change get_vert_attr to use the VUE map, and rename it.
authorPaul Berry <stereotype441@gmail.com>
Wed, 24 Aug 2011 19:19:10 +0000 (12:19 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 6 Sep 2011 18:04:37 +0000 (11:04 -0700)
commit8b362477d931af40e1a00fc308ebd0b25b722aa2
tree5f2c4baf68b4b619e320f15a75516af87b5dc783
parent4a1fb81902a7863d5dfe304e5e4ca2c631159be1
i965: SF: change get_vert_attr to use the VUE map, and rename it.

The new function, called get_vert_result(), uses the VUE map to find
the register containing a given vertex attribute.  Previously, we used
the attr_to_idx[] array, which served the same purpose but didn't
account for gl_PointSize correctly.

This fixes a bug on pre-Gen6 wherein the back side of a triangle would
be rendered incorrectyl if the vertex shader wrote to gl_PointSize.

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