d3dadapter: make state and setting more visible to users

Signed-off-by: David Heidelberger <david.heidelberger@ixit.cz>
d3dadapter: Begin DRI3 implementation

Signed-off-by: Axel Davy <axel.davy@ens.fr>
d3dadapter: typo fixes (trivial)

Signed-off-by: Nick Sarnie <commendsarnex@gmail.com>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
d3dadapter: workaround libxcb bug

Signed-off-by: Axel Davy <axel.davy@ens.fr>
d3dadapter: Rework serial handling

Signed-off-by: Axel Davy <axel.davy@ens.fr>
d3dadapter: Fix a bug when the pixmap is released before being presented

Signed-off-by: Axel Davy <axel.davy@ens.fr>
d3dadapter: Use new interface

Signed-off-by: Axel Davy <axel.davy@ens.fr>
d3dadapter: Rework of the xcb connection

. Remove the Xlib calls by Xcb ones
. Use two xcb connections to avoid libxcb threading bugs

Signed-off-by: Axel Davy <axel.davy@ens.fr>
d3dadapter: Implement new interface

Signed-off-by: Axel Davy <axel.davy@ens.fr>
d3dadapter: restore basic autoconfiguration, use pkg-config

At this moment we should be able detect d3d directory.

Signed-off-by: David Heidelberg <david@ixit.cz>

TODO:

1. Get the "WINE_CHECK_SONAME" working ? Perhaps one would like to drop that
   and use PKG_CHECK_MODULES(d3d...)
4. If WINE_CHECK_SONAME is dropped, audit the SONAME_LIBD3D....

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
d3dadapter: implement DRI3PresentGroup_CreateAdditionalPresent

The implementation is probably not optimal, there are the following questions:

. what if two swapchain render to the same X drawable (even if different Win HWND)
Current implementation is going to behave very badly there
. spec is not precise here: on which screen should we be on ? Since we don't support
multiple screen/displays yet, this is not yet pb.
. What about focus window ?

Signed-off-by: Axel Davy <axel.davy@ens.fr>