diff options
author | Chia-I Wu <olv@lunarg.com> | 2010-03-16 10:31:40 +0800 |
---|---|---|
committer | Chia-I Wu <olv@lunarg.com> | 2010-03-18 08:48:13 +0800 |
commit | 61631a89a3268925c89934c77ed7c2482eaa1fd1 (patch) | |
tree | b3ebcfe5acb615a69f90ca3b963519b1dec078ed /src/gallium/state_trackers/dri/dri_context.h | |
parent | a437bc50f2f8ff6e91fdf4dc9758b35cff35645a (diff) |
st/dri: Move DRI1 bits in dri_context.c to dri1.c.
Diffstat (limited to 'src/gallium/state_trackers/dri/dri_context.h')
-rw-r--r-- | src/gallium/state_trackers/dri/dri_context.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/gallium/state_trackers/dri/dri_context.h b/src/gallium/state_trackers/dri/dri_context.h index 13f497462f..f0700b9aaf 100644 --- a/src/gallium/state_trackers/dri/dri_context.h +++ b/src/gallium/state_trackers/dri/dri_context.h @@ -72,33 +72,9 @@ dri_context(__DRIcontext * driContextPriv) return (struct dri_context *)driContextPriv->driverPrivate; } -static INLINE void -dri_lock(struct dri_context *ctx) -{ - drm_context_t hw_context = ctx->cPriv->hHWContext; - char ret = 0; - - DRM_CAS(ctx->lock, hw_context, DRM_LOCK_HELD | hw_context, ret); - if (ret) { - drmGetLock(ctx->sPriv->fd, hw_context, 0); - ctx->stLostLock = TRUE; - ctx->wsLostLock = TRUE; - } - ctx->isLocked = TRUE; -} - -static INLINE void -dri_unlock(struct dri_context *ctx) -{ - ctx->isLocked = FALSE; - DRM_UNLOCK(ctx->sPriv->fd, ctx->lock, ctx->cPriv->hHWContext); -} - /*********************************************************************** * dri_context.c */ -extern struct dri1_api_lock_funcs dri1_lf; - void dri_destroy_context(__DRIcontext * driContextPriv); boolean dri_unbind_context(__DRIcontext * driContextPriv); |