st/dri, st/xorg: fix buffers that have attachements of different depth
authorZack Rusin <zackr@vmware.com>
Thu, 11 Feb 2010 00:00:35 +0000 (19:00 -0500)
committerZack Rusin <zack@kde.org>
Fri, 12 Feb 2010 21:00:22 +0000 (16:00 -0500)
commit59b4146a5dbeb108b53fc9c4132095e264ba04be
treee396484a38a7cbdea49172a21be5e2e8682688b0
parent7082c47d1499bdc9348cf7a80ff3749d299898fa
st/dri, st/xorg: fix buffers that have attachements of different depth

we actually need to specify the formats for different attachements, otherwise
if the color buffer is 24bpp and the app asks for 16bpp depth buffer than
we end up fetching the depth from the drawable which is 24bpp and end up
creating the wrong depth buffer. use the new getBuffersWithFormat extension
to pass the depth correctly.
src/gallium/state_trackers/dri/dri_drawable.c
src/gallium/state_trackers/xorg/xorg_dri2.c