OSDN Git Service

i965/gen6: Add a couple more packets to the nonpipelined workaround list.
authorEric Anholt <eric@anholt.net>
Mon, 20 Jun 2011 15:52:03 +0000 (08:52 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 23 Jun 2011 20:41:42 +0000 (13:41 -0700)
All the packets chosen before came from grepping the pdf for
nonpipelined, and these two came from grepping for non.pipelined.  We
could stand a review by looking at all packets emitted and identifying
what kind they are.

src/mesa/drivers/dri/i965/brw_misc_state.c

index c235696..ea2e601 100644 (file)
@@ -449,6 +449,9 @@ static void upload_polygon_stipple(struct brw_context *brw)
    if (!ctx->Polygon.StippleFlag)
       return;
 
+   if (intel->gen == 6)
+      intel_emit_post_sync_nonzero_flush(intel);
+
    BEGIN_BATCH(33);
    OUT_BATCH(_3DSTATE_POLY_STIPPLE_PATTERN << 16 | (33 - 2));
 
@@ -492,6 +495,9 @@ static void upload_polygon_stipple_offset(struct brw_context *brw)
    if (!ctx->Polygon.StippleFlag)
       return;
 
+   if (intel->gen == 6)
+      intel_emit_post_sync_nonzero_flush(intel);
+
    BEGIN_BATCH(2);
    OUT_BATCH(_3DSTATE_POLY_STIPPLE_OFFSET << 16 | (2-2));