summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/dri/common/dri_drawable.h
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsapountzis@gmail.com>2010-07-18 18:23:36 +0300
committerGeorge Sapountzis <gsapountzis@gmail.com>2010-07-30 23:43:26 +0300
commit873ddf547d5aeb68f37a172d73131c6bc51101f6 (patch)
treea8f9253527ccc3d1a4661438b8567ad290257995 /src/gallium/state_trackers/dri/common/dri_drawable.h
parenta30b966f8345cb99922a416fce2da6edb70f864c (diff)
st/dri: move backend hooks to appropriate object
Diffstat (limited to 'src/gallium/state_trackers/dri/common/dri_drawable.h')
-rw-r--r--src/gallium/state_trackers/dri/common/dri_drawable.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/dri/common/dri_drawable.h b/src/gallium/state_trackers/dri/common/dri_drawable.h
index 62c7b0d41a..3f2e24fc15 100644
--- a/src/gallium/state_trackers/dri/common/dri_drawable.h
+++ b/src/gallium/state_trackers/dri/common/dri_drawable.h
@@ -55,6 +55,16 @@ struct dri_drawable
/* used only by DRISW */
struct pipe_surface *drisw_surface;
+
+ /* hooks filled in by dri2 & drisw */
+ void (*allocate_textures)(struct dri_drawable *drawable,
+ const enum st_attachment_type *statts,
+ unsigned count);
+
+ void (*update_drawable_info)(struct dri_drawable *drawable);
+
+ void (*flush_frontbuffer)(struct dri_drawable *drawable,
+ enum st_attachment_type statt);
};
static INLINE struct dri_drawable *