glx/drisw: fix shm put image fallback
authorDave Airlie <airlied@redhat.com>
Mon, 24 Feb 2020 00:29:46 +0000 (10:29 +1000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 25 Feb 2020 01:23:01 +0000 (01:23 +0000)
commit84395190ec8cae6158737777c8def7cc3304eb3f
treed6bc2b348bac177f04131499a7ee651f60d45b81
parent246e4aeaef4c1f1071c64e9681fc9229aac22020
glx/drisw: fix shm put image fallback

The fallback to the non-shm put path used the wrong width here
as the pixmap is still allocated in a shared segment, so the
width needs to reflect that.

Fixes: 02c3dad0f3b4 ("Call shmget() with permission 0600 instead of 0777")
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3823>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3823>
src/glx/drisw_glx.c