i965: Make sampler counts available for the entire drawing operation.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 9 Jul 2013 22:09:05 +0000 (15:09 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 19 Aug 2013 20:17:00 +0000 (13:17 -0700)
commitd0401d09ce19e47e01a3f1c86c10894515de26ad
tree41fa10ed9a179a7f3a4b6cb38a4a2f09ae33e771
parentc6e572275b60f0221691b9b97650b9b41b89a5a2
i965: Make sampler counts available for the entire drawing operation.

Previously, we computed sampler counts when generating the SAMPLER_STATE
table.  By computing it earlier, we should be able to shorten a bunch of
loops.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/brw_wm_sampler_state.c
src/mesa/drivers/dri/i965/gen7_sampler_state.c