mesa/include
Dave Airlie 466a0b2e49 dri: add another get shm variant.
When Brian in 02c3dad0f3 restricted
the shm permissions it means we hit the fallback paths in some
scenarios we hadn't before.

When you use Xephyr to xdmcp from one user to another the new perms
stop the X server (running as user a) attaching to the SHM segments
from gnome-shell (running as user b).

In this case however only the GLX side of the code had insight into this,
and the dri could was meant of fall back, and it worked for put image
fine but the get image path was broken, since there was no indication
in the broken case of the need to fallback.

This adds a return type to a new interface member that lets the
caller know it has to fallback.

Fixes: 02c3dad0f3 ("Call shmget() with permission 0600 instead of 0777")

Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3823>
2020-02-25 01:23:01 +00:00
..
CL include/CL: Update OpenCL headers to latest 2020-01-23 11:12:33 +00:00
D3D9
EGL egl: use EGL_CAST() macro in eglmesaext.h 2019-11-19 22:00:24 +00:00
GL dri: add another get shm variant. 2020-02-25 01:23:01 +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 GL: drop symbols mangling support 2019-10-10 21:40:48 +01:00
KHR EGL: sync headers with Khronos 2019-08-14 21:48:23 +01:00
c11
d3dadapter
drm-uapi lima: sync lima_drm.h with kernel 2020-01-30 03:39:21 +00:00
pci_ids intel: Use similar brand strings to the Windows drivers 2020-01-13 19:42:35 -08:00
vulkan vulkan: Update the XML and headers to 1.2.133 2020-02-18 09:57:14 -06: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 c99_compat.h: Don't try to use 'restrict' in C++ code 2019-10-16 13:45:57 +01:00
c99_math.h
meson.build include/CL: Update OpenCL headers to latest 2020-01-23 11:12:33 +00:00
no_extern_c.h