i965: Emit invariant state once at startup on Gen6+.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 8 Jun 2013 16:55:36 +0000 (09:55 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 10 Jun 2013 17:58:42 +0000 (10:58 -0700)
commitd671eb140f05d4974cebf6e6643282a8a7ce45db
treebf8b6c60adf51c832669a6c3c6b8f80328fa85de
parent33b90804eee3619c1174183be7a87e8c6e742076
i965: Emit invariant state once at startup on Gen6+.

Now that we have hardware contexts, we can safely initialize our GPU
state once at startup, rather than needing a state atom with the
BRW_NEW_CONTEXT flag set.

This removes a tiny bit of code from our drawing loop.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_misc_state.c
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_state_upload.c