mesa/src/glx/tests
Adam Jackson f39fd3dce7 glx/indirect: Validate the context version in CreateContextAttribs
This is Sort Of handled by nerfing GL_VERSION in __indirect_glGetString,
but that doesn't cover GLES contexts which we also don't have any
indirect support for. Xorg's GLX would reject this for us since it has
the same limitation, but NVIDIA's GLX seems to interpret a request for
ES 2.0 as desktop, despite having the ES2 profile bit set, leading to a
very confusing GL_VERSION string and probably not the ES2-compatible
context you were hoping for.

Since we may now return NULL from indirect_create_context_attribs for
reasons other than malloc failure, we need to reasonably handle the case
where gc == NULL by the time we get to the XCB call. We rely on the
server to generate correct return values in this case, but if it
succeeds despite our client-side failure we just throw GLXBadFBConfig
(chosen to keep piglit/glx-create-context-core-profile happy, since
nothing else seems to hit it).

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7369>
2020-12-03 04:40:28 +00:00
..
clientinfo_unittest.cpp glx: Don't enclose includes inside extern "C" { }. 2016-04-26 21:28:34 +01:00
create_context_unittest.cpp glx/indirect: Validate the context version in CreateContextAttribs 2020-12-03 04:40:28 +00:00
dispatch-index-check check: add support for running test as standalone 2017-02-26 13:39:45 +00:00
enum_sizes.cpp make: Don't traverse backwards through include directories. 2017-10-09 13:42:43 -07:00
fake_glx_screen.cpp mesa: Rename GLX_USE_TLS to USE_ELF_TLS. 2019-08-03 20:18:17 +02:00
fake_glx_screen.h glx: Don't enclose includes inside extern "C" { }. 2016-04-26 21:28:34 +01:00
indirect_api.cpp glx: fix 630 times -Wlto-type-mismatch when building with LTO enabled 2020-04-04 17:46:05 +00:00
meson.build glx/meson: use full include path for dri_interface.h 2019-03-08 18:00:19 +00:00
mock_xdisplay.h
query_renderer_implementation_unittest.cpp glx: use anonymous namespace to avoid -Wodr issues when building with LTO enabled 2020-04-04 17:46:05 +00:00
query_renderer_unittest.cpp glx: Sync <GL/glxext.h> with Khronos 2019-08-22 13:29:04 -04:00