mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 10:50:10 +01:00
remove driScrnPriv field from intel_screen
This commit is contained in:
parent
cd360b7d60
commit
736baf22e9
3 changed files with 4 additions and 6 deletions
|
|
@ -102,7 +102,7 @@ intelCreateContext(const __GLcontextModes * mesaVis,
|
|||
* memory pools
|
||||
*/
|
||||
DRM_LIGHT_LOCK(sPriv->fd, &sPriv->pSAREA->lock, driContextPriv->hHWContext);
|
||||
havePools = intelCreatePools(intelScreen);
|
||||
havePools = intelCreatePools(sPriv);
|
||||
DRM_UNLOCK(sPriv->fd, &sPriv->pSAREA->lock, driContextPriv->hHWContext);
|
||||
if (!havePools)
|
||||
return GL_FALSE;
|
||||
|
|
|
|||
|
|
@ -157,10 +157,10 @@ intelUpdateScreenRotation(__DRIscreenPrivate * sPriv, drmI830Sarea * sarea)
|
|||
|
||||
|
||||
GLboolean
|
||||
intelCreatePools(intelScreenPrivate *intelScreen)
|
||||
intelCreatePools(__DRIscreenPrivate * sPriv)
|
||||
{
|
||||
unsigned batchPoolSize = 1024*1024;
|
||||
__DRIscreenPrivate * sPriv = intelScreen->driScrnPriv;
|
||||
intelScreenPrivate *intelScreen = sPriv->private;
|
||||
|
||||
if (intelScreen->havePools)
|
||||
return GL_TRUE;
|
||||
|
|
@ -221,7 +221,6 @@ intelInitDriver(__DRIscreenPrivate * sPriv)
|
|||
driParseOptionInfo(&intelScreen->optionCache,
|
||||
__driConfigOptions, __driNConfigOptions);
|
||||
|
||||
intelScreen->driScrnPriv = sPriv;
|
||||
sPriv->private = (void *) intelScreen;
|
||||
|
||||
intelScreen->sarea = (drmI830Sarea *) (((GLubyte *) sPriv->pSAREA) +
|
||||
|
|
|
|||
|
|
@ -55,7 +55,6 @@ struct intel_screen
|
|||
int deviceID;
|
||||
int drmMinor;
|
||||
|
||||
__DRIscreenPrivate *driScrnPriv;
|
||||
drmI830Sarea *sarea;
|
||||
|
||||
/**
|
||||
|
|
@ -92,7 +91,7 @@ extern struct _DriBufferPool *driBatchPoolInit(int fd, unsigned flags,
|
|||
unsigned checkDelayed);
|
||||
|
||||
extern GLboolean
|
||||
intelCreatePools(intelScreenPrivate *intelScreen);
|
||||
intelCreatePools(__DRIscreenPrivate *sPriv);
|
||||
|
||||
extern GLboolean
|
||||
intelCreateContext(const __GLcontextModes * mesaVis,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue