i965: Also guard 3DSTATE_DRAWING_RECTANGLE with a flush in blorp.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 24 Oct 2013 07:45:56 +0000 (00:45 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 28 Oct 2013 18:29:31 +0000 (11:29 -0700)
Non-pipelined commands need this flush.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: Xinkai Chen <yeled.nova@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Cc: "9.2" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/gen6_blorp.cpp

index da523e5bffe81923174d1286c334c9562da2375a..ce215c2949e765312e05b32162d05463983b015f 100644 (file)
@@ -957,6 +957,9 @@ void
 gen6_blorp_emit_drawing_rectangle(struct brw_context *brw,
                                   const brw_blorp_params *params)
 {
+   if (brw->gen == 6)
+      intel_emit_post_sync_nonzero_flush(brw);
+
    BEGIN_BATCH(4);
    OUT_BATCH(_3DSTATE_DRAWING_RECTANGLE << 16 | (4 - 2));
    OUT_BATCH(0);