i965/gen7: Emit workaround flush when changing GS enable state.
authorPaul Berry <stereotype441@gmail.com>
Tue, 5 Nov 2013 04:06:48 +0000 (20:06 -0800)
committerPaul Berry <stereotype441@gmail.com>
Mon, 18 Nov 2013 18:09:11 +0000 (10:09 -0800)
commit7dfb4b2d00ddb8e5ee24d4c58eb9415dc4ccc21c
tree79601460f1cdc347b8c9f9e957f2e56a67da7bf2
parentd22220219347689c51134e4a5650d75143748017
i965/gen7: Emit workaround flush when changing GS enable state.

v2: Don't go to extra work to avoid extraneous flushes.  (Previous
experiments in the kernel have suggested that flushing the pipeline
when it is already empty is extremely cheap).

Cc: "10.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/gen7_blorp.cpp
src/mesa/drivers/dri/i965/gen7_gs_state.c
src/mesa/drivers/dri/i965/gen7_urb.c
src/mesa/drivers/dri/i965/intel_batchbuffer.c
src/mesa/drivers/dri/i965/intel_batchbuffer.h