diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2014-12-11 13:37:14 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-12-25 13:39:19 -0800 |
commit | 09230a2d435aa7f893ad5022220e3eb39ffb6db5 (patch) | |
tree | a5d11d71fb06387d996f7a947ce0b22f6ed4c60f /glamor | |
parent | 3b5be33fc55b3090d996014fa56603edb9c1d411 (diff) |
modesetting: Add vblank synchronization support when using Present.
modesetting hooked up vblank support for DRI2, but was missing support
for vblanks in Present.
This is mostly copy and pasted from Keith's code in the intel driver.
v2: Use ms_crtc_msc_to_kernel_msc in ms_present_queue_vblank to hook
up the vblank_offset workaround for bogus MSC values (which the
DRI2 code already did).
Also simplify the ms_present_get_crtc function. vblank.c already
implements the functionality; we just need to convert types.
v3: Fix ms_flush_drm_events return code. I'd copied code where 0 meant
success into a function that returned a boolean, so the return code
was always backwards.
Also add DebugPresent calls in ms_present_vblank_{handler,abort}.
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 'glamor')
0 files changed, 0 insertions, 0 deletions