From 66e4c8ff40ab8cf722efa4293bb17b0d8f2dfa88 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 11 Nov 2012 09:40:09 +0000 Subject: [PATCH] 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 --- src/sna/sna_display.c | 2 ++ 1 file changed, 2 insertions(+) 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)) {