intel / DRI2: Track and flush front-buffer rendering
authorIan Romanick <idr@freedesktop.org>
Mon, 6 Apr 2009 20:15:54 +0000 (13:15 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 9 Apr 2009 21:18:14 +0000 (14:18 -0700)
commit43cf0d1eebb9f425e1a0e176394b64e2cb406709
tree70b68a94aac6cdee649786a7573c496863de648c
parent82634ee8df7328b9235abd8352d33b0b3d953600
intel / DRI2: Track and flush front-buffer rendering

Track two flags:  whether or not front-buffer rendering is currently
enabled and whether or not front-buffer rendering has been enabled
since the last glFlush.  If the second flag is set, the front-buffer
is flushed via a loader call back.  If the first flag is cleared, the
second flag is cleared at this time.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kristian Høgsberg <krh@redhat.com>
src/mesa/drivers/dri/intel/intel_buffers.c
src/mesa/drivers/dri/intel/intel_context.c
src/mesa/drivers/dri/intel/intel_context.h