From 4c8ec49826a46eb3b36c69d2ad3f82320c179c38 Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Thu, 4 Mar 2010 09:54:15 -0800 Subject: [PATCH] DRI2: make target_sbc signed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We need to track invalid targets as well as 0 targets, so just make it signed so our comparisons work like they should. Reviewed-by: Mario Kleiner Reported-by: Kristian Høgsberg Signed-off-by: Jesse Barnes --- hw/xfree86/dri2/dri2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/dri2/dri2.c b/hw/xfree86/dri2/dri2.c index d60bd5e18..ec4f982b4 100644 --- a/hw/xfree86/dri2/dri2.c +++ b/hw/xfree86/dri2/dri2.c @@ -62,7 +62,7 @@ typedef struct _DRI2Drawable { ClientPtr blockedClient; int swap_interval; CARD64 swap_count; - CARD64 target_sbc; /* -1 means no SBC wait outstanding */ + int64_t target_sbc; /* -1 means no SBC wait outstanding */ CARD64 last_swap_target; /* most recently queued swap target */ int swap_limit; /* for N-buffering */ } DRI2DrawableRec, *DRI2DrawablePtr;