[Intel-gfx] [PATCH] Properly decrement flip_count if we want to undo.

Stéphane Marchesin marcheu at chromium.org
Fri Jun 10 00:45:42 CEST 2011


---
 src/intel_display.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

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",
-- 
1.7.5.3.367.ga9930




More information about the Intel-gfx mailing list