[965] Replace the always_update dirty flag with BRW_NEW_BATCH.
authorEric Anholt <eric@anholt.net>
Wed, 9 Jan 2008 22:08:12 +0000 (14:08 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 9 Jan 2008 22:41:53 +0000 (14:41 -0800)
commitdc1608ae9d90a490ce32aa005488e3591a6d8369
treed4c1c87e3a4e3ebedd35f7cf3c1a03d5bcc7107a
parent5f86ae057a645c03dc1e0c51c2fb1b2628a50e0a
[965] Replace the always_update dirty flag with BRW_NEW_BATCH.

This allows us to avoid re-emitting some state when validate_state happens
multiple times per batchbuffer.  Even though we flush batch per primitive
currently, that may still happen already if the primitive changed (this should
probably be fixed as well).
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_curbe.c
src/mesa/drivers/dri/i965/brw_misc_state.c
src/mesa/drivers/dri/i965/brw_state_upload.c
src/mesa/drivers/dri/i965/brw_vtbl.c