glx/dri3: fix glXQueryContext does not return GLX_RENDER_TYPE value

Cc: mesa-stable
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13772>
(cherry picked from commit cee1dd92bd)
This commit is contained in:
Qiang Yu 2021-11-12 14:42:54 +08:00 committed by Eric Engestrom
parent 7bde2ce13f
commit b2e5b6757a
2 changed files with 3 additions and 1 deletions

View file

@ -2164,7 +2164,7 @@
"description": "glx/dri3: fix glXQueryContext does not return GLX_RENDER_TYPE value",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -306,6 +306,8 @@ dri3_create_context_attribs(struct glx_screen *base,
pcp->base.noError = GL_TRUE;
}
pcp->base.renderType = dca.render_type;
pcp->driContext =
(*psc->image_driver->createContextAttribs) (psc->driScreen,
dca.api,