summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/dri/dri_context.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-03-08 22:19:48 +0800
committerChia-I Wu <[email protected]>2010-03-18 09:43:22 +0800
commitbd1ce874728c06d08a1f9881f51edbdd2f1c9db0 (patch)
tree2a45880ccbae7208ad8cd9d2db8a7d01aa37de4c /src/gallium/state_trackers/dri/dri_context.h
parent5ff21634f3074122ed8b8e4019c8092e31be0335 (diff)
st/dri: Switch from st_public.h to st_api.h.
This is tested with demos found in progs/demos. However, only the DRI2 path is tested.
Diffstat (limited to 'src/gallium/state_trackers/dri/dri_context.h')
-rw-r--r--src/gallium/state_trackers/dri/dri_context.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gallium/state_trackers/dri/dri_context.h b/src/gallium/state_trackers/dri/dri_context.h
index f0700b9aaff..845b420cf89 100644
--- a/src/gallium/state_trackers/dri/dri_context.h
+++ b/src/gallium/state_trackers/dri/dri_context.h
@@ -51,9 +51,6 @@ struct dri_context
driOptionCache optionCache;
- unsigned int d_stamp;
- unsigned int r_stamp;
-
drmLock *lock;
boolean isLocked;
boolean stLostLock;
@@ -62,8 +59,7 @@ struct dri_context
unsigned int bind_count;
/* gallium */
- struct st_context *st;
- struct pipe_context *pipe;
+ struct st_context_iface *st;
};
static INLINE struct dri_context *
@@ -84,6 +80,9 @@ dri_make_current(__DRIcontext * driContextPriv,
__DRIdrawable * driDrawPriv,
__DRIdrawable * driReadPriv);
+struct dri_context *
+dri_get_current(void);
+
boolean
dri_create_context(const __GLcontextModes * visual,
__DRIcontext * driContextPriv,