sna: Process dri wakeups first

The goal is to minimise the latency in receiving the event from the
kernel and acting upon it.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-06-11 08:54:04 +01:00
parent bcad5b21fe
commit e9397b28ef
1 changed files with 2 additions and 2 deletions

View File

@ -594,10 +594,10 @@ sna_wakeup_handler(int i, pointer data, unsigned long result, pointer read_mask)
if ((int)result < 0)
return;
sna_accel_wakeup_handler(sna);
if (FD_ISSET(sna->kgem.fd, (fd_set*)read_mask))
sna_dri_wakeup(sna);
sna_accel_wakeup_handler(sna);
}
#if HAVE_UDEV