summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/intel
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri/intel')
-rw-r--r--src/mesa/drivers/dri/intel/intel_context.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c
index acd59174c70..a9064c7ee9a 100644
--- a/src/mesa/drivers/dri/intel/intel_context.c
+++ b/src/mesa/drivers/dri/intel/intel_context.c
@@ -283,6 +283,16 @@ intel_flush_front(struct gl_context *ctx)
if (screen->dri2.loader->flushFrontBuffer != NULL &&
driDrawable &&
driDrawable->loaderPrivate) {
+
+ /* Downsample before flushing FAKE_FRONT_LEFT to FRONT_LEFT.
+ *
+ * This potentially downsamples both front and back buffer. It
+ * is unnecessary to downsample the back, but harms nothing except
+ * performance. And no one cares about front-buffer render
+ * performance.
+ */
+ intel_downsample_for_dri2_flush(intel, driDrawable);
+
screen->dri2.loader->flushFrontBuffer(driDrawable,
driDrawable->loaderPrivate);