st/dri: Use depth instead of bpp when communicating formats with the X server v3
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 6 Dec 2011 09:16:13 +0000 (10:16 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 7 Dec 2011 19:05:24 +0000 (20:05 +0100)
commit576161289df68eedade591fbca4013329c9e5ded
tree7e44f394ca67c45a3f16aec8f1b1daf5bf77fd1c
parent6781fd05e9ea2ba45a615dacafca57291a220bb0
st/dri: Use depth instead of bpp when communicating formats with the X server v3

Some hardware can't reinterpret the format of hardware buffers and thus
the X server needs to know the format when the buffer is created.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Michel Daenzer <michel@daenzer.net>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
src/gallium/state_trackers/dri/drm/dri2.c