st/egl/drm: Rework swapbuffers
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 24 Feb 2011 14:09:45 +0000 (15:09 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Tue, 1 Mar 2011 09:36:19 +0000 (10:36 +0100)
commitc9febff31f1032065f96ad76fd31f31ac330fef9
tree93ec07acb4687c3ebe90401779ee672f7e9db945
parent2b079485f6092051ebb7fec0e6210d6743926064
st/egl/drm: Rework swapbuffers

Use the pageflip ioctl when available.
Otherwise, or when the backbuffer contents need to be preserved,
fall back to a copy operation.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
src/gallium/state_trackers/egl/drm/modeset.c
src/gallium/state_trackers/egl/drm/native_drm.h