diff options
Diffstat (limited to 'src/gallium/state_trackers/glx/dri/dri_lock.c')
-rw-r--r-- | src/gallium/state_trackers/glx/dri/dri_lock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/glx/dri/dri_lock.c b/src/gallium/state_trackers/glx/dri/dri_lock.c index 9d7bd61e28..b272ab55f3 100644 --- a/src/gallium/state_trackers/glx/dri/dri_lock.c +++ b/src/gallium/state_trackers/glx/dri/dri_lock.c @@ -37,7 +37,7 @@ dri_contended_lock(struct dri_context *ctx) { __DRIdrawablePrivate *dPriv = ctx->dPriv; __DRIcontextPrivate *cPriv = ctx->cPriv; - __DRIscreenPrivate *sPriv = ctx->sPriv; + __DRIscreenPrivate *sPriv = cPriv->driScreenPriv; drmGetLock(sPriv->fd, cPriv->hHWContext, 0); @@ -53,8 +53,8 @@ dri_contended_lock(struct dri_context *ctx) */ void dri_lock_hardware( struct dri_context *ctx ) { - __DRIscreenPrivate *sPriv = ctx->sPriv; __DRIcontextPrivate *cPriv = ctx->cPriv; + __DRIscreenPrivate *sPriv = cPriv->driScreenPriv; char __ret = 0; pipe_mutex_lock(lockMutex); @@ -76,8 +76,8 @@ void dri_lock_hardware( struct dri_context *ctx ) */ void dri_unlock_hardware( struct dri_context *ctx ) { - __DRIscreenPrivate *sPriv = ctx->sPriv; __DRIcontextPrivate *cPriv = ctx->cPriv; + __DRIscreenPrivate *sPriv = cPriv->driScreenPriv; assert(ctx->locked); ctx->locked = FALSE; |