summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-04-01 15:07:46 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2015-04-01 15:55:11 +0100
commit35537ec4bfed4118725b4871cb99326c85a4b2d3 (patch)
tree0cdcb4d7877d642670c49725538ac8bc6ebb1c81
parent2f047c62783a187067921e1aaf5572fb8647bd84 (diff)
sna/present: flush is not required
present.flush is called on the Window after a copy from a Pixmap is completed - which will be naturally flushed anyway. What the API should be passing is the Pixmap, since we do want to flush the operations from it before sending the idle event. C'est la vie. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_present.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/sna/sna_present.c b/src/sna/sna_present.c
index d6638db3..1992b9b1 100644
--- a/src/sna/sna_present.c
+++ b/src/sna/sna_present.c
@@ -339,14 +339,6 @@ sna_present_abort_vblank(RRCrtcPtr crtc, uint64_t event_id, uint64_t msc)
static void
sna_present_flush(WindowPtr window)
{
- PixmapPtr pixmap = get_window_pixmap(window);
- struct sna_pixmap *priv;
-
- DBG(("%s(pixmap=%ld)\n", __FUNCTION__, pixmap->drawable.serialNumber));
-
- priv = sna_pixmap_move_to_gpu(pixmap, MOVE_READ | MOVE_ASYNC_HINT | __MOVE_FORCE);
- if (priv && priv->gpu_bo)
- kgem_scanout_flush(&to_sna_from_pixmap(pixmap)->kgem, priv->gpu_bo);
}
static bool