From: Kristian Høgsberg Date: Thu, 11 Feb 2010 22:10:19 +0000 (-0500) Subject: dri: Store the loader private passed in at dri context creation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=93931d9e684cd5a5659c3f28f8da7294ac174542;p=mesa.git dri: Store the loader private passed in at dri context creation We just threw it away before, but we haven't had a use for it yet. --- diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 3649c296662..f5e7923835f 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -581,7 +581,8 @@ driCreateNewContext(__DRIscreen *psp, const __DRIconfig *config, pcp->driScreenPriv = psp; pcp->driDrawablePriv = NULL; - + pcp->loaderPrivate = data; + /* When the first context is created for a screen, initialize a "dummy" * context. */ diff --git a/src/mesa/drivers/dri/common/dri_util.h b/src/mesa/drivers/dri/common/dri_util.h index 95df702f1ae..e9d5a9d9864 100644 --- a/src/mesa/drivers/dri/common/dri_util.h +++ b/src/mesa/drivers/dri/common/dri_util.h @@ -413,6 +413,11 @@ struct __DRIcontextRec { * Pointer to screen on which this context was created. */ __DRIscreen *driScreenPriv; + + /** + * The loaders's private context data. This structure is opaque. + */ + void *loaderPrivate; }; /**