mesa/include
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
..
CL CL: update CL headers to 3.0 2020-11-06 17:02:54 +10:00
D3D9
EGL egl: sync eglext.h & egl.xml from Khronos 2021-10-12 21:40:54 +00:00
GL dri: Epoch how no-error context creation works 2022-02-04 18:36:24 +00:00
GLES include: update GL headers from the registry 2019-06-21 19:00:52 -04:00
GLES2 include/GLES2: Sync GLES2 headers with Khronos 2019-10-08 13:53:01 -07:00
GLES3 include: update GL headers from the registry 2019-06-21 19:00:52 -04:00
HaikuGL hgl: Major refactor and cleanup 2021-01-09 20:51:35 -06:00
KHR EGL: sync headers with Khronos 2019-08-14 21:48:23 +01:00
android_stub android_stub: update platform headers to include atrace 2021-10-09 00:42:32 +00:00
c11 includes: add windows lean and mean guard. 2022-01-19 21:54:58 +00:00
d3dadapter
drm-uapi drm-uapi/v3d: extend interface for multiple semaphores support 2022-01-21 10:59:17 +00:00
pci_ids intel/dev: Add device info for RPL 2022-01-25 12:47:44 +00:00
vk_video vulkan/include: import the video codec headers. 2021-11-09 04:33:06 +00:00
vulkan vulkan: Update the XML and headers to 1.3.204 2022-01-25 15:57:53 +00:00
winddk d3d10umd,d3d10sw: Initial import. 2021-05-19 13:50:07 +00:00
c11_compat.h introduce c11_compat.h to provide C11 things in C99 2019-08-04 11:14:25 +01:00
c99_alloca.h
c99_compat.h Remove Scons leftovers 2021-03-30 20:17:19 +00:00
c99_math.h
meson.build anv: Remove vkCreateDmaBufINTEL (v4) 2021-04-08 14:15:55 +00:00
no_extern_c.h no_extern_c.h: fix typo in comment 2020-05-21 14:23:41 +00:00