summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/common/dri_util.h
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsapountzis@gmail.com>2011-11-03 13:11:55 +0200
committerGeorge Sapountzis <gsapountzis@gmail.com>2011-11-04 23:33:04 +0200
commite438a36d8379d2ccb06aab2fa53fb52ae100198c (patch)
treef38938c6e48c673cb34673a2ed55626ea9fbe590 /src/mesa/drivers/dri/common/dri_util.h
parent875a757ddd103722cfe9a2b21035024aa5a23d32 (diff)
dri: unify __DRIcontextRec, __DRIdrawableRec
Diffstat (limited to 'src/mesa/drivers/dri/common/dri_util.h')
-rw-r--r--src/mesa/drivers/dri/common/dri_util.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.h b/src/mesa/drivers/dri/common/dri_util.h
index af012f15010..3a33d275541 100644
--- a/src/mesa/drivers/dri/common/dri_util.h
+++ b/src/mesa/drivers/dri/common/dri_util.h
@@ -113,7 +113,7 @@ extern const struct __DriverAPIRec driDriverAPI;
*/
struct __DRIdrawableRec {
/**
- * Driver's private drawable information.
+ * Driver's private drawable information.
*
* This structure is opaque.
*/
@@ -126,8 +126,18 @@ struct __DRIdrawableRec {
void *loaderPrivate;
/**
+ * Pointer to context to which this drawable is currently bound.
+ */
+ __DRIcontext *driContextPriv;
+
+ /**
+ * Pointer to screen on which this drawable was created.
+ */
+ __DRIscreen *driScreenPriv;
+
+ /**
* Reference count for number of context's currently bound to this
- * drawable.
+ * drawable.
*
* Once it reaches zero, the drawable can be destroyed.
*
@@ -147,16 +157,6 @@ struct __DRIdrawableRec {
int w, h;
/**
- * Pointer to context to which this drawable is currently bound.
- */
- __DRIcontext *driContextPriv;
-
- /**
- * Pointer to screen on which this drawable was created.
- */
- __DRIscreen *driScreenPriv;
-
- /**
* Drawable timestamp. Increased when the loader calls invalidate.
*/
struct {
@@ -174,6 +174,11 @@ struct __DRIcontextRec {
void *driverPrivate;
/**
+ * The loaders's private context data. This structure is opaque.
+ */
+ void *loaderPrivate;
+
+ /**
* Pointer to drawable currently bound to this context for drawing.
*/
__DRIdrawable *driDrawablePriv;
@@ -188,11 +193,6 @@ struct __DRIcontextRec {
*/
__DRIscreen *driScreenPriv;
- /**
- * The loaders's private context data. This structure is opaque.
- */
- void *loaderPrivate;
-
struct {
int draw_stamp;
int read_stamp;