i965: Fix check_aperture calls to cover everything needed for the prim at once.
authorEric Anholt <eric@anholt.net>
Fri, 24 Oct 2008 20:02:21 +0000 (13:02 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 29 Oct 2008 05:52:38 +0000 (22:52 -0700)
commit59b2c2adbbece27ccf54e58b598ea29cb3a5aa85
treed50008acfcfab21db1604a376e980ee8986311c9
parent835a9fef058d23c8a7ce7bbe6866990b4804f5ad
i965: Fix check_aperture calls to cover everything needed for the prim at once.

Previously, since my check_aperture API change, we would check each piece of
state against the batchbuffer individually, but not all the state against the
batchbuffer at once.  In addition to not being terribly useful in assuring
success, it probably also increased CPU load by calling check_aperture many
times per primitive.
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_curbe.c
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/brw_draw_upload.c
src/mesa/drivers/dri/i965/brw_misc_state.c
src/mesa/drivers/dri/i965/brw_queryobj.c
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_state_upload.c