summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i830/i830_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri/i830/i830_context.h')
-rw-r--r--src/mesa/drivers/dri/i830/i830_context.h20
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;
/**