dri2: Implement a throttle dri extension.
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 10 Oct 2011 14:38:19 +0000 (16:38 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 14 Oct 2011 07:52:53 +0000 (09:52 +0200)
commit511dc295f82c61acefe026d0f4de43d4a31dbf90
treebb70c67a7eea68d7cc426a90d3fe158f3779a3ff
parent718cbe4ba95439c074144ea2ce06ebf0915a660c
dri2: Implement a throttle dri extension.

The X server has limited throttle support on the server side,
but doing this in the client has some benefits:

1) X server throttling is per client. Client side throttling can be done
per drawable.

2) It's easier to control the throttling based on what client is run,
for example using "driconf".

3) X server throttling requires drm swap complete events.

So implement a dri2 throttling extension intended to be used by direct
rendering clients.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by: Michel Dänzer <michel@daenzer.net>
include/GL/internal/dri_interface.h
src/glx/dri2_glx.c