dri3: Fix dri3_open API change by adding new dri3_open_client
authorKeith Packard <keithp@keithp.com>
Fri, 4 Apr 2014 23:28:43 +0000 (16:28 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 8 Apr 2014 20:53:58 +0000 (13:53 -0700)
commit6ec04a75deb1695820e337abbefe1929d5928f15
tree0903165f7fd9a33057ca57f4ead137c1d7d2b1c6
parent901fbfbbbd71c0d82080957f8ba09eebbc786f2b
dri3: Fix dri3_open API change by adding new dri3_open_client

Xwayland will eventually need the current client in dri3_open. Simply
changing that API is not an option though as other drivers that
implement DRI3 will not have a matching function signature and will
crash when called.

Add a new dri3_open_client function pointer and bump
DRI3_SCREEN_INFO_VERSION so that drivers can be aware of the new
function which will be used in preference to the old function when
available.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Eric Anhole <eric@anholt.net>
dri3/dri3.h
dri3/dri3_screen.c
glamor/glamor_egl.c