diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-11-11 09:40:09 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-11-11 09:40:09 +0000 |
commit | 66e4c8ff40ab8cf722efa4293bb17b0d8f2dfa88 (patch) | |
tree | 8fc7df5481f871b884518c2b5dab7bf2ce526ba2 | |
parent | 94dd0b9ee9f55e7c09b8c0ee18939fa69ce66da2 (diff) |
sna: Flush pending rendering before enabling an output
This is to prevent falling in the trap of the rendering being delayed
until the next client renders some new content.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_display.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index 87acb5d0..d384bb2f 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -1251,6 +1251,8 @@ retry: /* Attach per-crtc pixmap or direct */ if (bo == NULL) return FALSE; + kgem_bo_submit(&sna->kgem, bo); + sna_crtc->bo = bo; mode_to_kmode(&sna_crtc->kmode, mode); if (!sna_crtc_apply(crtc)) { |