summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/common/dri_util.h
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsapountzis@gmail.com>2011-11-03 13:04:57 +0200
committerGeorge Sapountzis <gsapountzis@gmail.com>2011-11-04 23:33:04 +0200
commit875a757ddd103722cfe9a2b21035024aa5a23d32 (patch)
tree98d0473304b03638e5827746494d178e3b9ee677 /src/mesa/drivers/dri/common/dri_util.h
parent7192c37294964b3f6e1551469f161593ec8f851d (diff)
downloadexternal_mesa3d-875a757ddd103722cfe9a2b21035024aa5a23d32.zip
external_mesa3d-875a757ddd103722cfe9a2b21035024aa5a23d32.tar.gz
external_mesa3d-875a757ddd103722cfe9a2b21035024aa5a23d32.tar.bz2
dri: unify __DRIscreenRec
Also drop DriverAPI field, this is a static symbol and I don't see why it should be accessed through __DRIscreenRec
Diffstat (limited to 'src/mesa/drivers/dri/common/dri_util.h')
-rw-r--r--src/mesa/drivers/dri/common/dri_util.h33
1 files changed, 14 insertions, 19 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.h b/src/mesa/drivers/dri/common/dri_util.h
index b4f17d1..af012f1 100644
--- a/src/mesa/drivers/dri/common/dri_util.h
+++ b/src/mesa/drivers/dri/common/dri_util.h
@@ -209,18 +209,6 @@ struct __DRIscreenRec {
int myNum;
/**
- * Callback functions into the hardware-specific DRI driver code.
- */
- struct __DriverAPIRec DriverAPI;
-
- const __DRIextension **extensions;
-
- /**
- * DRM (kernel module) version information.
- */
- __DRIversion drm_version;
-
- /**
* File descriptor returned when the kernel device driver is opened.
*
* Used to:
@@ -231,15 +219,22 @@ struct __DRIscreenRec {
int fd;
/**
+ * DRM (kernel module) version information.
+ */
+ __DRIversion drm_version;
+
+ /**
* Device-dependent private information (not stored in the SAREA).
*
* This pointer is never touched by the DRI layer.
*/
-#ifdef __cplusplus
- void *priv;
-#else
- void *private;
-#endif
+ void *driverPrivate;
+
+ void *loaderPrivate;
+
+ const __DRIextension **extensions;
+
+ const __DRIswrastLoaderExtension *swrast_loader;
struct {
/* Flag to indicate that this is a DRI2 screen. Many of the above
@@ -251,8 +246,8 @@ struct __DRIscreenRec {
driOptionCache optionInfo;
driOptionCache optionCache;
- unsigned int api_mask;
- void *loaderPrivate;
+
+ unsigned int api_mask;
};
extern void