i965: Move VUE map computation to once at VS compile time.
authorEric Anholt <eric@anholt.net>
Mon, 13 Feb 2012 18:08:23 +0000 (10:08 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 21 Feb 2012 19:54:02 +0000 (11:54 -0800)
commitf0cecd43d6b6d3f5def3fd43b9c95baaf3be9b16
treed73a85352c9fed9df90d1a5fc5a1c64971d97e24
parent9f3d3216cf25d8ffed4d72fbce6feacbc2990e4b
i965: Move VUE map computation to once at VS compile time.

With this and the previous patch, 640x480 nexuiz is running 0.169118%
+/- 0.0863696% faster (n=121).  On a VS state change microbenchmark,
performance is increased 8.28645% +/- 0.460478% (n=52).

v2: Fix CACHE_NEW_VS comment.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
12 files changed:
src/mesa/drivers/dri/i965/brw_clip.c
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_gs.c
src/mesa/drivers/dri/i965/brw_sf.c
src/mesa/drivers/dri/i965/brw_vec4_emit.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
src/mesa/drivers/dri/i965/brw_vs.c
src/mesa/drivers/dri/i965/brw_vs.h
src/mesa/drivers/dri/i965/brw_vs_emit.c
src/mesa/drivers/dri/i965/gen6_sf_state.c
src/mesa/drivers/dri/i965/gen7_sf_state.c
src/mesa/drivers/dri/i965/gen7_sol_state.c