diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2009-06-17 01:08:25 +0200 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2009-06-17 03:07:01 +0200 |
commit | 0342229289c3bd5ed7bc595db4fc88003430209e (patch) | |
tree | 7b9b3add41596fbbe345705a6268d2f187b840eb /src/gallium/state_trackers/dri/dri_drawable.h | |
parent | c9f19571da2673a934f6f97aeea92c5414c28925 (diff) |
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.h | 4 |
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 0f654d804a..2fbd5f1eb7 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 * |