i965: Make Gen6+ renderbuffer surface updates not depend on NEW_COLOR.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 10 Nov 2011 05:32:17 +0000 (21:32 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 11 Nov 2011 06:51:20 +0000 (22:51 -0800)
commit9ae10e9cbdfce6404a3d86188f2897d8f5d0dcb2
treed087795a3ebd723ae439f03d43fbf7f9aa3106af
parentd46dfed9585e7e8a26993e7f67faffe8e2641939
i965: Make Gen6+ renderbuffer surface updates not depend on NEW_COLOR.

NEW_COLOR is only needed on Gen4-5 as brw_update_renderbuffer_surfaces
only uses ctx->Color when intel->gen < 6.

This should reduce unnecessary state updates.

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