diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-02-21 16:33:26 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-02-21 16:37:45 +0000 |
commit | d7415742a5f78958489216f450411603b1eff9a7 (patch) | |
tree | f2c96c5607be9a55dc7753b54b2ba87934f4087e /src | |
parent | 2715a455f7bfbecd7a6977184dc6180a09d06e1f (diff) |
sna/dri: Queue a flush on the back DRI2 when enqueing a flip
As we may wait upon the bo having finished rendering before we can
execute the flip, flushing the render cache as early as possible is
beneficial
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/sna_dri.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna_dri.c b/src/sna/sna_dri.c index 78d9a6e4..1def8336 100644 --- a/src/sna/sna_dri.c +++ b/src/sna/sna_dri.c @@ -1636,6 +1636,7 @@ blit: } info->front->name = info->back->name; get_private(info->front)->bo = get_private(info->back)->bo; + __kgem_flush(&sna->kgem, get_private(info->back)->bo); } if (bo == NULL) { |