glx: Allow depth-30 pbuffers to work without a depth-30 pixmap format
authorAdam Jackson <ajax@redhat.com>
Thu, 17 Sep 2020 16:38:45 +0000 (12:38 -0400)
committerAdam Jackson <ajax@redhat.com>
Thu, 17 Sep 2020 18:28:24 +0000 (14:28 -0400)
commitd74fe47101995d2659b1e59495d2f77b9dc14f3d
tree1d2a8f37321d44b4847c88dcc6fa6107fd8a61c1
parenta163cba1e3a20536377d9b0f9617f8433d580114
glx: Allow depth-30 pbuffers to work without a depth-30 pixmap format

The backing pixmap needs to be big enough to hold depth-30 rendering,
but the server doesn't necessarily have a depth-30 pixmap format. Just
round up to the 32bpp format you'd be using anyway.

Fixes: mesa/mesa#3527
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6764>
src/glx/glx_pbuffer.c