DRI2: make target_sbc signed
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 <mario.kleiner@tuebingen.mpg.de> Reported-by: Kristian Høgsberg <krh@bitplanet.net> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
parent
c4d54816f2
commit
4c8ec49826
|
@ -62,7 +62,7 @@ typedef struct _DRI2Drawable {
|
||||||
ClientPtr blockedClient;
|
ClientPtr blockedClient;
|
||||||
int swap_interval;
|
int swap_interval;
|
||||||
CARD64 swap_count;
|
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 */
|
CARD64 last_swap_target; /* most recently queued swap target */
|
||||||
int swap_limit; /* for N-buffering */
|
int swap_limit; /* for N-buffering */
|
||||||
} DRI2DrawableRec, *DRI2DrawablePtr;
|
} DRI2DrawableRec, *DRI2DrawablePtr;
|
||||||
|
|
Loading…
Reference in New Issue