diff mbox

uxa: fix pageflips on 3 head scenarios

Message ID 1400550244-25548-1-git-send-email-airlied@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Dave Airlie May 20, 2014, 1:44 a.m. UTC
From: Dave Airlie <airlied@redhat.com>

While fixing up UXA for MST I eventually fell over this bug.

Signed-off-by: Dave Airlie <airlied@redhat.com>
---
 src/uxa/intel.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Chris Wilson May 20, 2014, 6:48 a.m. UTC | #1
On Tue, May 20, 2014 at 11:44:04AM +1000, Dave Airlie wrote:
> From: Dave Airlie <airlied@redhat.com>
> 
> While fixing up UXA for MST I eventually fell over this bug.
> 
> Signed-off-by: Dave Airlie <airlied@redhat.com>

Oops, that's bad - sorry for sending you on that chase.

I amended the commit to use MAX_PIPES so hopefully it is easier to spot
the bad code again in future and pushed.

commit 197ab0cda06c44aa1a2b17bf69ac08612811b107
Author: Dave Airlie <airlied@gmail.com>
Date:   Tue May 20 07:45:14 2014 +0100

    uxa: fix pageflips on 3 head scenarios

Thanks,
-Chris
diff mbox

Patch

diff --git a/src/uxa/intel.h b/src/uxa/intel.h
index 6ac770e..f9dbd96 100644
--- a/src/uxa/intel.h
+++ b/src/uxa/intel.h
@@ -334,7 +334,7 @@  typedef struct intel_screen_private {
 	Bool has_kernel_flush;
 	Bool needs_flush;
 
-	struct _DRI2FrameEvent *pending_flip[2];
+	struct _DRI2FrameEvent *pending_flip[3];
 
 	/* Broken-out options. */
 	OptionInfoPtr Options;