i965: Split brw_wm_surfaces state into renderbuffer and texture atoms.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 2 Nov 2011 20:50:02 +0000 (13:50 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 11 Nov 2011 06:51:19 +0000 (22:51 -0800)
commit4a42bd3931d6298ab9a84b76957ce5d83d289f69
tree3959bcb9da9c5194d98d9bc5b3248787037fd854
parenta7d0fa209b444e3c7ad9358f1d31e3f638c20e40
i965: Split brw_wm_surfaces state into renderbuffer and texture atoms.

First, the texturing setup code is relevant for all pipeline stages,
while renderbuffer surfaces are only used by the WM.

Secondly, renderbuffer and texture setup depends on a different set of
dirty bits.  There's no reason to walk the array of textures when
changing draw buffers, or vice-versa.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
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