OSDN Git Service

dri3: allow building against older xcb (v3)
authorDave Airlie <airlied@redhat.com>
Tue, 13 Mar 2018 20:06:00 +0000 (06:06 +1000)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 16 Mar 2018 17:19:45 +0000 (13:19 -0400)
commit7aeef2d4efdc809a698e9b983c8be8e4ccb27134
tree600be5aa6efe62480995686d8c740ec6f58bbba7
parentf099c3aef1635f05f295969d296375fe9983a53a
dri3: allow building against older xcb (v3)

I'm not sure everyone wants to be updating their dri3 in a forced
march setting, this allows a nicer approach, esp when you want
to build on distro that aren't brand new.

I'm sure there are plenty of ways this patch could be cleaner,
and I've also not built it against an updated dri3.

For meson I've just left it alone, since if you are using meson
you probably don't mind xcb updates, and if you are using meson
you can fix this better than me.

v3: just don't put a version in for dri3/present without
modifiers, should allow building with 1.11 as well

(feel free to supply meson followups)

Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
configure.ac
meson.build
src/egl/drivers/dri2/platform_x11_dri3.c
src/loader/loader_dri3_helper.c
src/loader/loader_dri3_helper.h
src/vulkan/wsi/wsi_common_x11.c