intel: avoid unnecessary front buffer flushing/updating
authorBrian Paul <brianp@vmware.com>
Mon, 2 Nov 2009 19:40:04 +0000 (12:40 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 3 Nov 2009 16:52:25 +0000 (09:52 -0700)
commitbcbfda71b03303d3f008a6f3cf8cb7d9667bf8d2
treebdbdb244d65ece593811a25c861087d7a526ffc2
parent644d8fd363ca7d8f40f4fa319919985cc002df9e
intel: avoid unnecessary front buffer flushing/updating

Before, if we just called glXMakeCurrent() and didn't render anything we'd
still trigger a flushFrontBuffer() call.

Now only set the intel->front_buffer_dirty field at state validation time
just before we draw something.

NOTE: additional calls to intel_check_front_buffer_rendering() might be
needed if I missed some rendering paths.
src/mesa/drivers/dri/i915/intel_tris.c
src/mesa/drivers/dri/i965/brw_state_upload.c
src/mesa/drivers/dri/intel/intel_buffers.c
src/mesa/drivers/dri/intel/intel_buffers.h
src/mesa/drivers/dri/intel/intel_span.c