Emit cliprects in the userspace driver as required, rather than
authorKeith Whitwell <keith@tungstengraphics.com>
Mon, 23 Oct 2006 08:43:26 +0000 (08:43 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Mon, 23 Oct 2006 08:43:26 +0000 (08:43 +0000)
commit759facb4d87843f6368fad9c5f20a5b1b3d95055
tree434ca5e820db551267789c3de8c9a3a155c9e021
parentb9786cfaae3bd58d8e487846cfa9c251e1246abd
Emit cliprects in the userspace driver as required, rather than
passing them to the kernel.  This works because all drawing commands
in the 965 driver are emitted with the lock held and the batchbuffer
is always flushed prior to releasing the lock.  This allows multiple
cliprects to be dealt with, without replaying entire batchbuffers and
redundantly re-emitting state.
src/mesa/drivers/dri/i965/brw_aub_playback.c
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/brw_misc_state.c
src/mesa/drivers/dri/i965/bufmgr_fake.c
src/mesa/drivers/dri/i965/intel_batchbuffer.c
src/mesa/drivers/dri/i965/intel_buffers.c
src/mesa/drivers/dri/i965/intel_context.c
src/mesa/drivers/dri/i965/intel_ioctl.c
src/mesa/drivers/dri/i965/intel_ioctl.h
src/mesa/drivers/dri/i965/intel_screen.c