egl/x11: don't populate dri2_dpy->dri2_loader_extension
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 16 Aug 2016 17:29:34 +0000 (18:29 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 14 Oct 2016 11:41:56 +0000 (12:41 +0100)
commit3963a5fc941b00ea8c6491599d4db6bc82c2d647
tree0ecc960eeccdd515df84af0a92090ef71dfdc809
parentd2d579da7e1ebd7bc33e7c84921eedc8b8208cda
egl/x11: don't populate dri2_dpy->dri2_loader_extension

Analogous to the earlier android and wayland patches. As we're here we
can drop exposing the old version of the extension.

Any dri loader/driver interface use lower bound checking thus exposing
dri2 loader v3 to a v2 capable driver is perfectly normal.

v2: Preserve compat with dri2_minor < 1. The driver does not know if
there is a protocol to manage getBuffersWithFormat(). It's up-to the
loader to expose the vfunc if there is one. (Kristian)

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
src/egl/drivers/dri2/platform_x11.c