i965: SF: Remove unnecessary variables.
authorPaul Berry <stereotype441@gmail.com>
Thu, 25 Aug 2011 02:04:31 +0000 (19:04 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 6 Sep 2011 18:04:53 +0000 (11:04 -0700)
commitbbc53d6285efc664b9b9f326cdcd82a9414507c1
treea3dfa042cbf96dff005d4cbf50507701e16fabef
parent58d9c95b3cb54383d07ca5560a1685fbe8588860
i965: SF: Remove unnecessary variables.

This patch removes the variables nr_attrs and nr_setup_attrs, whose
purpose is now being served by the VUE map.  nr_attr_regs and
nr_setup_regs are still needed, however they are now computed using
the VUE map rather than by counting the number of vertex shader
outputs (which caused subtle bugs when gl_PointSize was written).

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