summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/dri/dri_drawable.h
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2009-06-17 01:08:25 +0200
committerThomas Hellstrom <thellstrom@vmware.com>2009-06-17 03:07:01 +0200
commit0342229289c3bd5ed7bc595db4fc88003430209e (patch)
tree7b9b3add41596fbbe345705a6268d2f187b840eb /src/gallium/state_trackers/dri/dri_drawable.h
parentc9f19571da2673a934f6f97aeea92c5414c28925 (diff)
downloadexternal_mesa3d-0342229289c3bd5ed7bc595db4fc88003430209e.zip
external_mesa3d-0342229289c3bd5ed7bc595db4fc88003430209e.tar.gz
external_mesa3d-0342229289c3bd5ed7bc595db4fc88003430209e.tar.bz2
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>
Diffstat (limited to 'src/gallium/state_trackers/dri/dri_drawable.h')
-rw-r--r--src/gallium/state_trackers/dri/dri_drawable.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/dri/dri_drawable.h b/src/gallium/state_trackers/dri/dri_drawable.h
index 0f654d8..2fbd5f1 100644
--- a/src/gallium/state_trackers/dri/dri_drawable.h
+++ b/src/gallium/state_trackers/dri/dri_drawable.h
@@ -58,6 +58,10 @@ struct dri_drawable
unsigned int tail;
unsigned int desired_fences;
unsigned int cur_fences;
+
+ enum pipe_format color_format;
+ enum pipe_format depth_format;
+ enum pipe_format stencil_format;
};
static INLINE struct dri_drawable *