xserver/dri3
Mario Kleiner 55db3c9cfc dri3: Robustly clamp to 1.0 if not all screens support 1.2
Checking for dri3_screen_info_rec.version >= 2 is insufficient,
as some shipping drivers, e.g., intel-ddx, nouveau-ddx, set the
version to DRI3_SCREEN_INFO_VERSION, ie. to whatever version the
installed servers headers define. On server 1.20 that would
be version 2, but the drivers still don't support the v1.2
hooks. Make sure all hooks are defined before reporting v1.2.

Also make clamping of reported version to minimum of client
or server robust against possible future clients with possible
majorVersion >= 2.0.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Cc: Daniel Stone <daniels@collabora.com>
2018-04-30 13:48:00 -04:00
..
Makefile.am dri3: Add DRI3 extension 2013-10-31 16:58:30 -07:00
dri3.c dri3: annotate the dri3_screen_info data as const 2018-04-10 15:42:23 -04:00
dri3.h dri3: annotate fds/strides/offsets arrays as const 2018-04-10 15:42:40 -04:00
dri3_priv.h dri3: annotate fds/strides/offsets arrays as const 2018-04-10 15:42:40 -04:00
dri3_request.c dri3: Robustly clamp to 1.0 if not all screens support 1.2 2018-04-30 13:48:00 -04:00
dri3_screen.c dri3: Fix DRI3.2 support for drivers other than modesetting-ddx. 2018-04-25 14:48:58 -04:00
meson.build meson: Distribute more SDK headers 2018-04-02 13:42:08 -04:00