dri3: Don't fail on version mismatch
authorDaniel Stone <daniels@collabora.com>
Mon, 19 Mar 2018 15:03:22 +0000 (15:03 +0000)
committerDaniel Stone <daniels@collabora.com>
Tue, 20 Mar 2018 08:52:59 +0000 (08:52 +0000)
commit478fc2d2a1a392108f48a3ed9aa21b10be72b4a2
tree1d4a23a66bd2897ce6b98783c26ab1b7ab0faec8
parent9a243eccae618e85aa7af762a4c40ecd8a2e4882
dri3: Don't fail on version mismatch

The previous commit to make DRI3 modifier support optional, breaks with
an updated server and old client.

Make sure we never set multibuffers_available unless we also support it
locally. Make sure we don't call stubs of new-DRI3 functions (or empty
branches) which will never succeed.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Fixes: 7aeef2d4efdc ("dri3: allow building against older xcb (v3)")
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/platform_x11_dri3.c
src/glx/dri3_glx.c
src/loader/loader_dri3_helper.c
src/vulkan/wsi/wsi_common_x11.c