st/dri: no need to request fake front buffer, only handle it being returned
authorBen Skeggs <bskeggs@redhat.com>
Mon, 5 Oct 2009 05:32:55 +0000 (15:32 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 5 Oct 2009 05:32:55 +0000 (15:32 +1000)
commit1336989ec60fff7bd590fefd28945a0e5dc536e3
tree985a3fbcd61592291f69a99dfa0c48d086cf95b9
parent7a2271c65963c86ec1e5d9523b2eecf9ee59fe9d
st/dri: no need to request fake front buffer, only handle it being returned

The previous behaviour was incorrect, and resulted in EXT_tfp being broken
for DDX drivers that implement the correct behaviour (intel/radeon/nouveau).

In the cases where a fake front buffer is required, the X server will
return one when requesting __DRI_BUFFER_FRONT_LEFT.

The Xorg state tracker (aka modesetting_drv) is likely broken now until
it's modified to match the other drivers.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
src/gallium/state_trackers/dri/dri_drawable.c