i965: Drop broken front_buffer_reading/drawing optimization.
authorEric Anholt <eric@anholt.net>
Mon, 3 Mar 2014 18:43:10 +0000 (10:43 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 11 Mar 2014 19:47:41 +0000 (12:47 -0700)
commitec542d74578bbef6b55125dd6aba1dc7f5079e65
tree2afd62c3ded5f3157a502b721c6d022e821e6b7a
parent66073ef438623f27dbbd01ba25189e5d4f0d9ae0
i965: Drop broken front_buffer_reading/drawing optimization.

The flag wasn't getting updated correctly when the ctx->DrawBuffer or
ctx->ReadBuffer changed.  It usually ended up working out because most
apps only have one window system framebuffer, or if they have more than
one and they have any front read/drawing, they will have called
glReadBuffer()/glDrawBuffer() on it when they get started on the new
buffer.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/intel_buffers.c
src/mesa/drivers/dri/i965/intel_buffers.h