Revert "st/dri: no need to request fake front buffer, only handle it being returned"
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 11 Jan 2010 20:32:13 +0000 (21:32 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Mon, 11 Jan 2010 20:36:51 +0000 (21:36 +0100)
commitcb51f0267853dad419d169587aecbecf1800e8c3
tree21a5d59105d61cc415fc6040488b2a7cfef2fe83
parent01eff0e6d23f90650de7c563f74a1aec3de112a6
Revert "st/dri: no need to request fake front buffer, only handle it being returned"

This reverts commit 1336989ec60fff7bd590fefd28945a0e5dc536e3.

The commit breaks frontbuffer rendering and the possibility to do
on-demand frontbuffer requests on all Xservers prior to 1.7.

The commit should be conditioned on a dri2 version check.
I've submitted a patch to Xserver to bump dri2 minor, and it's acked by Ian.

To be able to check the version from within the state tracker, we will
probably need another dri2 extension function that returns the server
version. The protocol has support for it.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
src/gallium/state_trackers/dri/dri_drawable.c