glx/drisw: add getImageShm2 path
authorDave Airlie <airlied@redhat.com>
Fri, 14 Feb 2020 05:03:24 +0000 (15:03 +1000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 25 Feb 2020 01:23:01 +0000 (01:23 +0000)
commit8d0bab8a9352bbb780bae6e7a432e73f7204f66a
tree86098f3ec42781e838ed33786cd340457a7af2bc
parent466a0b2e4953018646ee344f5f6f6e9e84b66a1a
glx/drisw: add getImageShm2 path

This adds return values to the get image path, so the caller can fallback.

Fixes: 02c3dad0f3b4 ("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>
src/glx/drisw_glx.c