diff options
author | Tomasz Lis <tomasz.lis@intel.com> | 2013-07-17 13:49:14 +0200 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2013-07-18 16:03:42 -0700 |
commit | 36259a16fe9b1ab60c7cb4fbf41077fb480a2bec (patch) | |
tree | 1d75497e5e714945f30ec500cf5b2ce5a5e643d7 /src/glx/dri2_glx.c | |
parent | 7791c9869b233e45a9089eae124dc9aa4f4e519a (diff) | |
download | external_mesa3d-36259a16fe9b1ab60c7cb4fbf41077fb480a2bec.zip external_mesa3d-36259a16fe9b1ab60c7cb4fbf41077fb480a2bec.tar.gz external_mesa3d-36259a16fe9b1ab60c7cb4fbf41077fb480a2bec.tar.bz2 |
glx: Store the value of renderType while creating context
Make sure that renderType property value is stored in GLX context while
it's being created. Further patches will be provided to make the value
correspond to fbconfig's renderType.
v2 (idr): Move a hunk from the next patch to this patch to prevent a
build break.
Signed-off-by: Tomasz Lis <tomasz.lis@intel.com>
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/glx/dri2_glx.c')
-rw-r--r-- | src/glx/dri2_glx.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index 7ce5775..cc75b91 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -226,6 +226,8 @@ dri2_create_context(struct glx_screen *base, return NULL; } + pcp->base.renderType = renderType; + pcp->driContext = (*psc->dri2->createNewContext) (psc->driScreen, config->driConfig, shared, pcp); @@ -256,6 +258,7 @@ dri2_create_context_attribs(struct glx_screen *base, uint32_t minor_ver = 1; uint32_t major_ver = 2; + uint32_t renderType = GLX_RGBA_TYPE; uint32_t flags = 0; unsigned api; int reset = __DRI_CTX_RESET_NO_NOTIFICATION; @@ -311,6 +314,11 @@ dri2_create_context_attribs(struct glx_screen *base, ctx_attribs[num_ctx_attribs++] = flags; } + /* The renderType is retrieved from attribs, or set to default + * of GLX_RGBA_TYPE. + */ + pcp->base.renderType = renderType; + pcp->driContext = (*psc->dri2->createContextAttribs) (psc->driScreen, api, |