diff options
author | Ian Romanick <idr@us.ibm.com> | 2004-05-07 22:46:37 +0000 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2004-05-07 22:46:37 +0000 |
commit | c94a96bae4225f6c31b5908f633703c03aee7079 (patch) | |
tree | b36bd89a611780b2a79f93de4b099339386d5f2d /src/mesa/drivers/dri/i830/i830_context.h | |
parent | 3d769b81faea6a066c07c4e5ee0df9cf12870b92 (diff) |
Add support for GLX_SGI_make_current_read.
Diffstat (limited to 'src/mesa/drivers/dri/i830/i830_context.h')
-rw-r--r-- | src/mesa/drivers/dri/i830/i830_context.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i830/i830_context.h b/src/mesa/drivers/dri/i830/i830_context.h index 6dcaf1febe..99d2a39c78 100644 --- a/src/mesa/drivers/dri/i830/i830_context.h +++ b/src/mesa/drivers/dri/i830/i830_context.h @@ -212,12 +212,26 @@ struct i830_context_t drm_clip_rect_t scissor_rect; drmContext hHWContext; - drm_hw_lock_t *driHwLock; + drmLock *driHwLock; int driFd; - __DRIdrawablePrivate *driDrawable; + __DRIdrawablePrivate *driDrawable; /**< DRI drawable bound to this + * context for drawing. + */ + __DRIdrawablePrivate *driReadable; /**< DRI drawable bound to this + * context for reading. + */ + + /** + * Drawable used by Mesa for software fallbacks for reading and + * writing. It is set by Mesa's \c SetBuffer callback, and will always be + * either \c i830_context_t::driDrawable or \c i830_context_t::driReadable. + */ + + __DRIdrawablePrivate * mesa_drawable; + __DRIscreenPrivate *driScreen; - i830ScreenPrivate *i830Screen; + i830ScreenPrivate *i830Screen; I830SAREAPtr sarea; /** |