OSDN Git Service

st/egl: Implement swapbuffer throttling
authorThomas Hellstrom <thellstrom@vmware.com>
Fri, 25 Feb 2011 12:05:31 +0000 (13:05 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Tue, 1 Mar 2011 09:36:19 +0000 (10:36 +0100)
commit8b145e23023927ddec7839a9e4498d5a42e3ca29
tree98620a66dbbb2f9daec9064396bb69a2483b34de
parentc9febff31f1032065f96ad76fd31f31ac330fef9
st/egl: Implement swapbuffer throttling

When doing copy swapbuffers using drm, throttle on outstanding copy operations.
Introduces a new environment variable, EGL_THROTTLE_FENCES that the
user can use to indicate the desired number of outstanding swapbuffers, or
disable throttling using EGL_THROTTLE_FENCES=0.

This can and perhaps should be extended to the pageflip case as well, since
with some hardware pageflips can be pipelined. In case the pageflip syncs, the
throttle operation will be a no-op anyway.

Update copyright notices.

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