summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-05-23 20:33:47 -0700
committerEric Anholt <eric@anholt.net>2010-05-26 12:21:09 -0700
commit06ebb55d308defbf8e01e30e4f994c2dd1071c40 (patch)
treeb0637b0a7ed1c49b558d0cda336e4c4f7461d0c3
parent158a158dad26b6888dd2ebaf13e6020894475fcb (diff)
Add a workaround for Ironlake errata relating to disabling the clipper.
-rw-r--r--src/i965_render.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/i965_render.c b/src/i965_render.c
index ed4b4d90..843776dd 100644
--- a/src/i965_render.c
+++ b/src/i965_render.c
@@ -1230,6 +1230,15 @@ static void i965_emit_composite_state(ScrnInfoPtr scrn)
I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
}
+ if (IS_IGDNG(intel)) {
+ /* Ironlake errata workaround: Before disabling the clipper,
+ * you have to MI_FLUSH to get the pipeline idle.
+ */
+ ATOMIC_BATCH(1);
+ OUT_BATCH(MI_FLUSH);
+ ADVANCE_BATCH();
+ }
+
{
int pipe_ctrl;
/* Pipe control */