i965: Split WM constant buffer update from other WM surfaces.
authorEric Anholt <eric@anholt.net>
Wed, 6 May 2009 00:16:15 +0000 (17:16 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 6 May 2009 13:44:14 +0000 (06:44 -0700)
commit71fb9d62ece0177183efd5bb955d1f3292cb4376
tree1e300ed62c4d94b6fa8d4a85464f5eeab3e8c79b
parent9490d86808300e5819941a40784e272c290e05ee
i965: Split WM constant buffer update from other WM surfaces.

This can avoid re-uploading constant data when it isn't necessary, and is
a step towards not updating other surfaces just because constants change.
It also brings the upload of the constant buffer next to the creation.

This brings openarena performance up another 4%, to 91% of the Mesa 7.4 branch.
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_curbe.c
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_state_upload.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c