intel: Don't keep intel->pClipRects, and instead just calculate it when needed.
authorEric Anholt <eric@anholt.net>
Mon, 20 Oct 2008 00:46:41 +0000 (17:46 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 28 Oct 2008 20:23:33 +0000 (13:23 -0700)
commit0cade4de4f74f6b0e86fb6622e2fc370c73fd840
treeae6c62ddbda5c3139c7e08e0d7682d949d53ab0c
parente92a457ac0030e48f5260dc2ac00ca283be7d7ad
intel: Don't keep intel->pClipRects, and instead just calculate it when needed.

This avoids issues with dereferencing stale cliprects around intel_draw_buffer
time.  Additionally, take advantage of cliprects staying constant for FBOs and
DRI2, and emit cliprects in the batchbuffer instead of having to flush batch
each time they change.
17 files changed:
src/mesa/drivers/dri/i915/i830_context.h
src/mesa/drivers/dri/i915/i830_vtbl.c
src/mesa/drivers/dri/i915/i915_context.h
src/mesa/drivers/dri/i915/i915_vtbl.c
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/brw_misc_state.c
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_state_upload.c
src/mesa/drivers/dri/intel/intel_batchbuffer.c
src/mesa/drivers/dri/intel/intel_batchbuffer.h
src/mesa/drivers/dri/intel/intel_blit.c
src/mesa/drivers/dri/intel/intel_buffers.c
src/mesa/drivers/dri/intel/intel_buffers.h
src/mesa/drivers/dri/intel/intel_context.c
src/mesa/drivers/dri/intel/intel_context.h
src/mesa/drivers/dri/intel/intel_reg.h
src/mesa/drivers/dri/intel/intel_span.c