intel: Add a batch flush between front-buffer downsample and X protocol.
authorEric Anholt <eric@anholt.net>
Fri, 28 Dec 2012 20:19:42 +0000 (12:19 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 30 Aug 2013 18:30:44 +0000 (11:30 -0700)
This was already happening because blorp happens to flush at the end of
every call, but we have been talking about removing that at some point,
and this would surely get overlooked.

v2 (Kenneth Graunke): Rebase on latest master.  Note that we did remove
   the other flush, and this change actually did get overlooked!

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/intel_context.c

index 9a089bf02617a485f93530655c78e6ff3262a89b..0f1639f0b474e2a1096148089c197e5a43a61a77 100644 (file)
@@ -144,6 +144,7 @@ intel_flush_front(struct gl_context *ctx)
           * performance.
           */
          intel_resolve_for_dri2_flush(brw, driDrawable);
+         intel_batchbuffer_flush(brw);
 
          screen->dri2.loader->flushFrontBuffer(driDrawable,
                                                driDrawable->loaderPrivate);