diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2014-12-18 17:22:00 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-12-25 13:39:04 -0800 |
commit | b51f804b1ca826699296aff9de27d19257d78dae (patch) | |
tree | 1a263162aae965fe8e9d9819be7e8da94270962c /xkb/xkbPrKeyEv.c | |
parent | f9e22cefcb9684bf495ada3ec4b0231ab2dc6cff (diff) |
present: If present_queue_vblank() fails, do present_execute().
Previously, if present_queue_vblank() failed, we simply dropped the
present request on the floor, and returned an error. This was rather
mean to clients - after presenting, they wait for a PresentComplete
event to come back. But since the present never happens, they end up
waiting forever, and lock up in poll().
This patch falls back to present_execute if present_queue_vblank fails.
We still print a debugging message to warn when queueing fails, which
allows us to continue debugging problems, but makes Present robust
enough to not lock up people's compositing manager when vblank bugs
happen.
v2: Don't do present_queue_vblank() /and/ present_execute() (a bug that
snuck in during last minute tidying).
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Keith Packard <keithp@keithp.com>
Tested-by: Jason Ekstrand <jason.ekstrand@intel.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'xkb/xkbPrKeyEv.c')
0 files changed, 0 insertions, 0 deletions