diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-08-02 10:56:30 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-08-02 13:03:49 +0100 |
commit | 52d3a026bbf844de1972ea9777dbcb11c7ac9ccd (patch) | |
tree | 5971ef3d73083053332009a6e17daaa280161e76 /src/sna/sna_dri2.c | |
parent | 1f6dfc9df6780bd3768bf065156b6e8dae05b80c (diff) |
sna: Split SHM and DRI flush tracking
Tracking SHM flushes precludes some of the optimisations we can make in
future for tracking DRI flushes, so split the two paths.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_dri2.c')
-rw-r--r-- | src/sna/sna_dri2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c index 22667913..47bd2edc 100644 --- a/src/sna/sna_dri2.c +++ b/src/sna/sna_dri2.c @@ -794,7 +794,7 @@ sna_dri2_create_buffer(DrawablePtr draw, priv->flush |= FLUSH_WRITE; } - sna_accel_watch_flush(sna, 1); + sna_watch_flush(sna, 1); } return buffer; @@ -924,7 +924,7 @@ static void _sna_dri2_destroy_buffer(struct sna *sna, priv->gpu_bo->flush = false; priv->flush = false; } - sna_accel_watch_flush(sna, -1); + sna_watch_flush(sna, -1); sna_pixmap_set_buffer(pixmap, NULL); pixmap->drawable.pScreen->DestroyPixmap(pixmap); |