diff mbox

Properly decrement flip_count if we want to undo.

Message ID 1307659542-19335-1-git-send-email-marcheu@chromium.org
State New, archived
Headers show

Commit Message

St├ęphane Marchesin June 9, 2011, 10:45 p.m. UTC
---
 src/intel_display.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/src/intel_display.c b/src/intel_display.c
index b55b110..c9fdc59 100644
--- a/src/intel_display.c
+++ b/src/intel_display.c
@@ -1499,6 +1499,9 @@  intel_do_pageflip(intel_screen_private *intel,
 error_undo:
 	drmModeRmFB(mode->fd, mode->fb_id);
 	mode->fb_id = old_fb_id;
+	for (i = 0; i < config->num_crtc; i++)
+		if (config->crtc[i]->enabled)
+			mode->flip_count--;
 
 error_out:
 	xf86DrvMsg(scrn->scrnIndex, X_WARNING, "Page flip failed: %s\n",