uxa/dri: Fix triple buffer swapping

Fixes regression from

commit 0aa2edbd29
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Wed Nov 5 11:56:20 2014 +0000

    Remove defunct glamor support

where the wrong branch of pixmap exchange upon SwapBuffers was kept when
removing the glamor paths.

Reported-by: Rui Matos
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-12-09 20:40:20 +00:00
parent fc984e8953
commit 08ee9a75df
1 changed files with 2 additions and 2 deletions

View File

@ -821,8 +821,8 @@ I830DRI2ScheduleFlip(struct intel_screen_private *intel,
intel->back_buffer = intel->front_buffer;
drm_intel_bo_reference(intel->back_buffer);
intel_exchange_pixmap_buffers(intel, priv->pixmap,
intel->back_pixmap);
intel_set_pixmap_bo(priv->pixmap, new_back);
drm_intel_bo_unreference(new_back);
tmp_name = info->front->name;
info->front->name = intel->back_name;