i965: Compute the maximum SF source attribute.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 2 Feb 2013 20:40:54 +0000 (12:40 -0800)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Wed, 13 Feb 2013 20:48:37 +0000 (21:48 +0100)
commit2de8874ec37bfc548de2e16bbefa51341e25d340
tree2938444705c45e906858db04238f606b9f2da75c
parentd47020b6d4d810ac3f20c1e47c90d9de3fb8a53a
i965: Compute the maximum SF source attribute.

The maximum SF source attribute is necessary to compute the Vertex URB
read length properly, which will be done in the next commit.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
Tested-by: Martin Steigerwald <martin@lichtvoll.de>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit 5e9bc7bd1290b0c34be90e9a0b8298ebe4b4b131)
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/gen6_sf_state.c
src/mesa/drivers/dri/i965/gen7_sf_state.c