i965: Set the CC VP state immediately on state change.
authorEric Anholt <eric@anholt.net>
Thu, 10 Jun 2010 05:24:14 +0000 (22:24 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 11 Jun 2010 07:15:56 +0000 (00:15 -0700)
commitf5bb775fd1f333d8e579d07a5cac1ded2bd54a2f
tree8b52c1ac09eea61ea95239c957eeedb1d864cc74
parent315ef0312a222b300ea7d619b95cb80596d3bee2
i965: Set the CC VP state immediately on state change.

The cache lookup of these two little floats was .12% of total CPU time
on firefox-talos-gfx because we did it any time commonly-changed state
changed.  On the other hand, updating the CC VP bo immediately whenver
CC VP state changes is a .07% overhead due to putting a driver hoook
in glEnable().
src/mesa/drivers/dri/i965/Makefile
src/mesa/drivers/dri/i965/brw_cc.c
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_state.c [new file with mode: 0644]
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_state_upload.c