diff options
author | George Sapountzis <[email protected]> | 2011-11-03 13:04:57 +0200 |
---|---|---|
committer | George Sapountzis <[email protected]> | 2011-11-04 23:33:04 +0200 |
commit | 875a757ddd103722cfe9a2b21035024aa5a23d32 (patch) | |
tree | 98d0473304b03638e5827746494d178e3b9ee677 /src/mesa/drivers/dri/radeon | |
parent | 7192c37294964b3f6e1551469f161593ec8f851d (diff) |
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/radeon')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_common_context.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_context.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_screen.c | 14 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_common_context.c b/src/mesa/drivers/dri/radeon/radeon_common_context.c index e6c7f94af06..87f4776ccf5 100644 --- a/src/mesa/drivers/dri/radeon/radeon_common_context.c +++ b/src/mesa/drivers/dri/radeon/radeon_common_context.c @@ -169,7 +169,7 @@ GLboolean radeonInitContext(radeonContextPtr radeon, void *sharedContextPrivate) { __DRIscreen *sPriv = driContextPriv->driScreenPriv; - radeonScreenPtr screen = (radeonScreenPtr) (sPriv->private); + radeonScreenPtr screen = (radeonScreenPtr) (sPriv->driverPrivate); struct gl_context* ctx; struct gl_context* shareCtx; int fthrottle_mode; diff --git a/src/mesa/drivers/dri/radeon/radeon_context.c b/src/mesa/drivers/dri/radeon/radeon_context.c index 46dcafa6876..e7d461f8d06 100644 --- a/src/mesa/drivers/dri/radeon/radeon_context.c +++ b/src/mesa/drivers/dri/radeon/radeon_context.c @@ -165,7 +165,7 @@ r100CreateContext( gl_api api, void *sharedContextPrivate) { __DRIscreen *sPriv = driContextPriv->driScreenPriv; - radeonScreenPtr screen = (radeonScreenPtr)(sPriv->private); + radeonScreenPtr screen = (radeonScreenPtr)(sPriv->driverPrivate); struct dd_function_table functions; r100ContextPtr rmesa; struct gl_context *ctx; diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/radeon_screen.c index 84b0b5a20e3..cd85595ebfe 100644 --- a/src/mesa/drivers/dri/radeon/radeon_screen.c +++ b/src/mesa/drivers/dri/radeon/radeon_screen.c @@ -208,7 +208,7 @@ radeon_create_image_from_name(__DRIscreen *screen, int name, int pitch, void *loaderPrivate) { __DRIimage *image; - radeonScreenPtr radeonScreen = screen->private; + radeonScreenPtr radeonScreen = screen->driverPrivate; if (name == 0) return NULL; @@ -309,7 +309,7 @@ radeon_create_image(__DRIscreen *screen, void *loaderPrivate) { __DRIimage *image; - radeonScreenPtr radeonScreen = screen->private; + radeonScreenPtr radeonScreen = screen->driverPrivate; image = CALLOC(sizeof *image); if (image == NULL) @@ -1126,7 +1126,7 @@ radeonCreateScreen2(__DRIscreen *sPriv) static void radeonDestroyScreen( __DRIscreen *sPriv ) { - radeonScreenPtr screen = (radeonScreenPtr)sPriv->private; + radeonScreenPtr screen = (radeonScreenPtr)sPriv->driverPrivate; if (!screen) return; @@ -1140,7 +1140,7 @@ radeonDestroyScreen( __DRIscreen *sPriv ) driDestroyOptionInfo (&screen->optionCache); FREE( screen ); - sPriv->private = NULL; + sPriv->driverPrivate = NULL; } @@ -1149,8 +1149,8 @@ radeonDestroyScreen( __DRIscreen *sPriv ) static GLboolean radeonInitDriver( __DRIscreen *sPriv ) { - sPriv->private = (void *) radeonCreateScreen2( sPriv ); - if ( !sPriv->private ) { + sPriv->driverPrivate = (void *) radeonCreateScreen2( sPriv ); + if ( !sPriv->driverPrivate ) { radeonDestroyScreen( sPriv ); return GL_FALSE; } @@ -1172,7 +1172,7 @@ radeonCreateBuffer( __DRIscreen *driScrnPriv, const struct gl_config *mesaVis, GLboolean isPixmap ) { - radeonScreenPtr screen = (radeonScreenPtr) driScrnPriv->private; + radeonScreenPtr screen = (radeonScreenPtr) driScrnPriv->driverPrivate; const GLboolean swDepth = GL_FALSE; const GLboolean swAlpha = GL_FALSE; |