x11: Only report supported DRI3/Present versions
authorDaniel Stone <daniels@collabora.com>
Thu, 22 Mar 2018 15:23:49 +0000 (15:23 +0000)
committerDaniel Stone <daniels@collabora.com>
Fri, 30 Mar 2018 15:53:51 +0000 (16:53 +0100)
commit696762eef57e83b4027acbdf0a6e74d1f75083b0
treef4538cee9b0141b7c89d4085c7e51dec5dba7a37
parent2a329f4ada27d22e8fdb9cd6924d1da7364c3336
x11: Only report supported DRI3/Present versions

The version passed to QueryVersion requests is the version that the
client supports. We were just passing in whatever version of XCB was
present on the system, which may not be a version that Mesa actually
explicitly supports, e.g. it might bring unwanted semantics.

Set specific protocol versions which we support, and only pass those.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Fixes: 7aeef2d4efd ("dri3: allow building against older xcb (v3)")
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/platform_x11_dri3.c
src/glx/dri3_glx.c