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:
parent
bcad5b21fe
commit
e9397b28ef
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue