st/dri: always allocate private depth-stencil buffers
authorMarek Olšák <maraeo@gmail.com>
Mon, 3 Dec 2012 00:26:22 +0000 (01:26 +0100)
committerMarek Olšák <maraeo@gmail.com>
Fri, 7 Dec 2012 13:19:28 +0000 (14:19 +0100)
commit39737e17e7a61535a35669756161005a7a5c887b
tree099e690f28060bd08d011d578ededdd82abb7459
parent976b832e9ae199c0a89b0e04e93088da3c829307
st/dri: always allocate private depth-stencil buffers

This disables DRI2 sharing of zbuffers. The window zbuffer is allocated just
like any other texture - through resource_create.

The idea of allocating a zbuffer through DRI2 isn't very useful with MSAA,
where a single-sample zbuffer is useless.

IIRC, the Intel driver does the same thing.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/state_trackers/dri/drm/dri2.c