gallium dri st: Probe the driver for supported surface formats.
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 16 Jun 2009 23:08:25 +0000 (01:08 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 17 Jun 2009 01:07:01 +0000 (03:07 +0200)
commit0342229289c3bd5ed7bc595db4fc88003430209e
tree7b9b3add41596fbbe345705a6268d2f187b840eb
parentc9f19571da2673a934f6f97aeea92c5414c28925
gallium dri st: Probe the driver for supported surface formats.

This is done when constructing the fbconfigs, and the result is saved
for window system framebuffer creation.

Note: For dri2 the server needs to have an identical format selection
logic. Otherwise the dri state-tracker and the xorg driver (state-tracker)
will disagree on which format to use for the attachments. Some more work
is needed in this area.

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