mesa/src/glx
Hal Gentz e91ee763c3 glx: Fix synthetic error generation in __glXSendError
To quote Uli Schlachter, who understands this stuff more than I do:

>   The function __glXSendError() in mesa's src/glx/glx_error.c invents an X11
> protocol error out of thin air. For the sequence number it uses dpy->request.
> This is the sequence number of the last request that was sent. _XError() will
> then update dpy->last_request_read based on the sequence number of the error
> that just "came in".
>
>   If now another something comes in with a sequence number less than
> dpy->last_request_read, since sequence numbers are monotonically increasing,
> widen() will incorrectly add 1<<32 to the sequence number and things might go
> downhill afterwards.

`__glXSendErrorForXcb` was also patched, as that's the function that
`glXCreateContextAttribsARB` actually uses.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99781
Cc: mesa-stable@lists.freedesktop.org
Fixes: ad503c41 'apple: Initial import of libGL for OSX from AppleSGLX svn repository'
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
2019-04-29 12:52:48 -04:00
..
apple Delete autotools 2019-04-15 13:44:29 -07:00
tests Delete autotools 2019-04-15 13:44:29 -07:00
windows Delete autotools 2019-04-15 13:44:29 -07:00
.gitignore
applegl_glx.c
clientattrib.c
clientinfo.c
compsize.c
create_context.c Revert "glx: Implement GLX_EXT_no_config_context (v2)" 2017-11-09 11:41:14 -05:00
dri2.c glx: remove DRI2DriverPrimeShift compile guards 2017-02-13 10:13:46 +00:00
dri2.h
dri2_glx.c glx: add support for GLX_ARB_create_context_no_error (v3) 2019-03-12 19:12:21 -04:00
dri2_priv.h glx: Add missing include guards 2018-10-30 06:19:10 -06:00
dri3_glx.c dri3: Return the current swap interval from glXGetSwapIntervalMESA(). 2019-04-01 16:06:38 -07:00
dri3_priv.h dri3: Return the current swap interval from glXGetSwapIntervalMESA(). 2019-04-01 16:06:38 -07:00
dri_common.c glx: add support for GLX_ARB_create_context_no_error (v3) 2019-03-12 19:12:21 -04:00
dri_common.h glx: add support for GLX_ARB_create_context_no_error (v3) 2019-03-12 19:12:21 -04:00
dri_common_interop.c glx/meson: use full include path for dri_interface.h 2019-03-08 18:00:19 +00:00
dri_common_query_renderer.c glx/meson: use full include path for dri_interface.h 2019-03-08 18:00:19 +00:00
dri_glx.c glx: Move DRI extensions pointer loading to driOpenDriver(). 2018-11-16 15:38:18 -08:00
dri_sarea.h
drisw_glx.c drisw: Try harder to probe whether MIT-SHM works 2019-04-09 09:50:24 +10:00
drisw_priv.h glx: Add missing include guards 2018-10-30 06:19:10 -06:00
driwindows_glx.c glx: use ARRAY_SIZE macro 2017-09-08 10:29:40 +01:00
eval.c
g_glxglvnddispatchfuncs.c glx: fix non-dri build 2018-01-16 16:27:19 +00:00
g_glxglvnddispatchindices.h glxglvnddispatch: Add missing dispatch for GetDriverConfig 2017-05-17 20:02:18 +02:00
glx_error.c glx: Fix synthetic error generation in __glXSendError 2019-04-29 12:52:48 -04:00
glx_error.h glx: Add missing include guards 2018-10-30 06:19:10 -06:00
glx_pbuffer.c glx: Prepare driFetchDrawable for no-config contexts 2017-12-01 15:53:52 -05:00
glx_query.c
glxclient.h glx: add support for GLX_ARB_create_context_no_error (v3) 2019-03-12 19:12:21 -04:00
glxcmds.c glx: Fix compilation with GLX_USE_WINDOWSGL 2018-12-15 13:49:24 +00:00
glxconfig.c glx: Remove #include <GL/glxint.h> 2017-03-28 14:48:12 -04:00
glxconfig.h
glxcurrent.c glx: Don't allow glXMakeContextCurrent() with only one valid drawable 2018-07-09 12:03:18 -04:00
glxext.c glx: be explicit about when mapping X <> GLX visuals 2018-11-01 00:05:43 +00:00
glxextensions.c glx: add support for GLX_ARB_create_context_no_error (v3) 2019-03-12 19:12:21 -04:00
glxextensions.h glx: add support for GLX_ARB_create_context_no_error (v3) 2019-03-12 19:12:21 -04:00
glxglvnd.c glx/glvnd: Use bsearch() in FindGLXFunction instead of open-coding it 2016-11-02 14:52:43 -04:00
glxglvnd.h
glxglvnddispatchfuncs.h
glxhash.c
glxhash.h
indirect_glx.c glx: Lower GLX opcode lookup into SendMakeCurrentRequest 2017-11-13 10:39:33 -05:00
indirect_init.h
indirect_texture_compression.c
indirect_transpose_matrix.c
indirect_vertex_array.c
indirect_vertex_array.h
indirect_vertex_array_priv.h
indirect_vertex_program.c
indirect_window_pos.c
meson.build glx/meson: use full include path for dri_interface.h 2019-03-08 18:00:19 +00:00
packrender.h
packsingle.h
pixel.c
pixelstore.c
query_renderer.c
render2.c
renderpix.c
SConscript glx: make xf86vidmode mandatory for direct rendering 2018-11-20 11:13:20 +00:00
single2.c
singlepix.c
vertarr.c
XF86dri.c Fix a few typos 2015-04-27 17:28:29 +03:00
xf86dri.h
xf86dristr.h
xfont.c