i965/gen6+: Avoid recomputing whether we use noperspective.
authorEric Anholt <eric@anholt.net>
Wed, 15 Feb 2012 20:57:25 +0000 (12:57 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 21 Feb 2012 19:54:10 +0000 (11:54 -0800)
commit83871566207d6692d1f20e4b666adb5dd0628dc3
treed85ee4a4e774e6d5839e4e34e182fedbeaade698
parente9cfaed1a50665690534ef3d89c4ad37a3e34bed
i965/gen6+: Avoid recomputing whether we use noperspective.

Improves VS state change microbenchmark performance 2.38246% +/-
1.15046% (n=20).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/gen6_clip_state.c
src/mesa/drivers/dri/i965/gen7_clip_state.c