From 06ebb55d308defbf8e01e30e4f994c2dd1071c40 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sun, 23 May 2010 20:33:47 -0700 Subject: Add a workaround for Ironlake errata relating to disabling the clipper. --- src/i965_render.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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 */ -- cgit v1.2.3