mesa/include/GL
Adam Jackson 3e3d75d16a dri: Epoch how no-error context creation works
The bug here is that the DRI context "flags" are intended to alias the
GLX context flag values, and they don't, DRI's no-error flag is GLX's
reset-isolation flag. GLX (and EGL!) treat no-error as a context
attribute, and reset isolation predates Mesa's no-error implementation
by several years. The GL_KHR_no_error spec does describe it as a
"context flag", though, so maybe that's why we do it as a (DRI) context
flag.

In order to unalias these we need a new contract with the loader. We
remove the old __DRI_NO_ERROR extension, and add a new
__DRI_RENDERER_HAS_CONTEXT_NO_ERROR value to query. Loaders can key on
that to know to pass no-error-ness through as a context attribute,
matching the GLX/EGL calling convention. We go ahead and define
__DRI_CTX_FLAG_RESET_ISOLATION as well, and update the drivers to refuse
it since we don't support it yet.

This means mismatched drivers/loaders will not be able to create
no-error contexts. Too bad. If you want performance that badly you can
build both things at once.

Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12474>
2022-02-04 18:36:24 +00:00
..
internal dri: Epoch how no-error context creation works 2022-02-04 18:36:24 +00:00
gl.h gl.h: Remove dllimport 2021-09-08 18:42:57 +00:00
glcorearb.h mesa/gl: Sync with Khronos registry 2019-09-16 16:50:43 +01:00
glext.h mesa/gl: Sync with Khronos registry 2019-09-16 16:50:43 +01:00
glx.h GL: drop symbols mangling support 2019-10-10 21:40:48 +01:00
glxext.h mesa/gl: Sync with Khronos registry 2019-09-16 16:50:43 +01:00
mesa_glinterop.h egl: Fix inclusion of egl.h+mesa_glinterop.h 2017-08-21 14:45:44 -07:00
osmesa.h
wglext.h include: sync GL headers with registry 2019-09-05 09:26:15 +02:00