diff options
author | Dave Airlie <[email protected]> | 2008-05-15 13:47:47 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2008-05-15 18:40:07 +1000 |
commit | 350c80fa99c759d3080d3c3876e525ae130d1b04 (patch) | |
tree | b6832ef39c7215ef5058ceb3ca85cc3136c4b276 /src/mesa | |
parent | e1bffd03188479f85f09eba2b478d36d77a70264 (diff) |
r300: set screen so that context init can find out chip ids
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/r300/radeon_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/radeon_context.c b/src/mesa/drivers/dri/r300/radeon_context.c index 9c0a5868b5f..3fc724a5531 100644 --- a/src/mesa/drivers/dri/r300/radeon_context.c +++ b/src/mesa/drivers/dri/r300/radeon_context.c @@ -135,6 +135,7 @@ GLboolean radeonInitContext(radeonContextPtr radeon, /* Fill in additional standard functions. */ radeonInitDriverFuncs(functions); + radeon->radeonScreen = screen; /* Allocate and initialize the Mesa context */ if (sharedContextPrivate) shareCtx = ((radeonContextPtr)sharedContextPrivate)->glCtx; @@ -158,7 +159,6 @@ GLboolean radeonInitContext(radeonContextPtr radeon, radeon->dri.fd = sPriv->fd; radeon->dri.drmMinor = sPriv->drm_version.minor; - radeon->radeonScreen = screen; radeon->sarea = (drm_radeon_sarea_t *) ((GLubyte *) sPriv->pSAREA + screen->sarea_priv_offset); |