sna/present: Restrict vblank.sequence range to 31bits

Graphics / X.Org / xf86-video-intel - Chris Wilson [chris-wilson.co.uk] - 24 March 2016 13:30 UTC

The kernel checks for past vblanks using an int32_t comparison, so we can only program up to 31bits into the future (and similarly programing a timer that large would also overflow).

References: https://bugs.freedesktop.org/show_bug.cgi?id=94685

c186d4d sna/present: Restrict vblank.sequence range to 31bits
src/sna/sna_present.c | 10 +++---
test/present-test.c | 83 +++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 89 insertions(+), 4 deletions(-)

Upstream: cgit.freedesktop.org


  • Share