[intel] Clean up cliprect handling in intel drivers.
authorEric Anholt <eric@anholt.net>
Wed, 9 Jan 2008 20:33:39 +0000 (12:33 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 9 Jan 2008 22:41:40 +0000 (14:41 -0800)
commitbeddf653a914903156712aa472b5deaddb7bbaed
treec6ef9aaa10a92f88b435fb332f6950cfd7c5186c
parent7ce12b0863f1cc03bdd7c65c0c0733b2ff903e40
[intel] Clean up cliprect handling in intel drivers.

In particular, batch buffers are no longer flushed when switching from
CLIPRECTS to NO_CLIPRECTS or vice versa, and 965 just uses DRM cliprect
handling for primitives instead of trying to sneak in its own to avoid the
DRM stuff. The disadvantage is that we will re-execute state updates per
cliprect, but the advantage is that we will be able to accumulate larger
batch buffers, which were proving to be a major overhead.
src/mesa/drivers/dri/i915/intel_tris.c
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/intel/intel_batchbuffer.c
src/mesa/drivers/dri/intel/intel_batchbuffer.h
src/mesa/drivers/dri/intel/intel_buffers.c