mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
glx: guard glx_screen frontend_screen member
Guards workaround code with the same conditions as glx_screen`s frontend_screen member. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Fixes:67eeee43e0("driconf: add a way to override GLX_CONTEXT_RESET_ISOLATION_BIT_ARB") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/15021 (cherry picked from commitbd42f62b0f) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40359>
This commit is contained in:
parent
836a22d1a2
commit
b5304ffef7
2 changed files with 3 additions and 2 deletions
|
|
@ -934,7 +934,7 @@
|
|||
"description": "glx: guard glx_screen frontend_screen member",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "67eeee43e07ddd3ba56fd546468dfd0c570af74c",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -98,10 +98,11 @@ glXCreateContextAttribsARB(Display *dpy, GLXFBConfig config,
|
|||
attrib_list = malloc(sizeof(int) * num_attribs * 2);
|
||||
|
||||
uint8_t clear_ctx_reset_isolation_bit = false;
|
||||
#if defined(GLX_DIRECT_RENDERING) && (!defined(GLX_USE_APPLEGL) || defined(GLX_USE_APPLE))
|
||||
dri2GalliumConfigQueryb(psc->frontend_screen,
|
||||
"glx_clear_context_reset_isolation_bit",
|
||||
&clear_ctx_reset_isolation_bit);
|
||||
|
||||
#endif
|
||||
for (unsigned i = 0; i < num_attribs; i++) {
|
||||
attrib_list[i * 2] = orig_attrib_list[i * 2];
|
||||
if (clear_ctx_reset_isolation_bit &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue