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>
This commit is contained in:
Chris Wilson 2012-11-11 09:40:09 +00:00
parent 94dd0b9ee9
commit 66e4c8ff40
1 changed files with 2 additions and 0 deletions

View File

@ -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)) {