Mesa (master): i965/gen6: Add a couple more packets to the nonpipelined workaround list.

Eric Anholt anholt at kemper.freedesktop.org
Thu Jun 23 20:56:30 UTC 2011


Module: Mesa
Branch: master
Commit: babe1fc004b56202b2bd54d9689f5208dc4fd607
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=babe1fc004b56202b2bd54d9689f5208dc4fd607

Author: Eric Anholt <eric at anholt.net>
Date:   Mon Jun 20 08:52:03 2011 -0700

i965/gen6: Add a couple more packets to the nonpipelined workaround list.

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 |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c b/src/mesa/drivers/dri/i965/brw_misc_state.c
index c235696..ea2e601 100644
--- a/src/mesa/drivers/dri/i965/brw_misc_state.c
+++ b/src/mesa/drivers/dri/i965/brw_misc_state.c
@@ -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));
 




More information about the mesa-commit mailing list