egl: Pass the correct X visual depth to xcb_put_image().
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 19 Jan 2015 23:07:17 +0000 (23:07 +0000)
committerJose Fonseca <jfonseca@vmware.com>
Sat, 31 Jan 2015 09:14:36 +0000 (09:14 +0000)
commit11a955aef42730ab009490f03c03c54ed07db666
treed63b5f2b84a12bc654521531bacce4c2cb7481d2
parent5c31184cf5fe91d91d9d784a2f89b399a849a935
egl: Pass the correct X visual depth to xcb_put_image().

The dri2_x11_add_configs_for_visuals() function happily matches a 32
bits EGLconfig with a 24 bits X visual.  However it was passing 32bits
depth to xcb_put_image(), making X server unhappy:

  https://github.com/apitrace/apitrace/issues/313#issuecomment-70571911

Cc: "10.4" <mesa-stable@lists.freedesktop.org>
src/egl/drivers/dri2/platform_x11.c