Fix XCreateWindow BadMatch with depth 32 visuals
authorRobert Morell <rmorell@nvidia.com>
Wed, 10 Jan 2018 21:31:33 +0000 (13:31 -0800)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 22 Mar 2018 17:38:15 +0000 (13:38 -0400)
commit973bfb5abad037143ee970d85f89549513b5d894
treeb8ec86c48636beca7bad2ea848d2c6f855efa5ca
parent533ff7bd77475bb5f499a2e73a74fb8209b1001c
Fix XCreateWindow BadMatch with depth 32 visuals

For the common case of a depth 24 root window, when creating a window
with a visual of depth 32, attempting to use a depth of CopyFromParent
will result in a BadMatch error.

Fix this by passing the visual's depth to XCreateWindow explicitly --
fortunately the VisualInfo structure was already queried.

Components: Framework

VK-GL-CTS issue: 938

Change-Id: I54b142b6105c7f328e76d7ea0f9b01e635380e4e
(cherry picked from commit af57c99056538393e99925d6c3bee0253889a7c3)
framework/platform/lnx/X11/tcuLnxX11.cpp