dri: Reference the global driver vtable once at screen init..
authorEric Anholt <eric@anholt.net>
Thu, 26 Sep 2013 17:51:29 +0000 (10:51 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 10 Oct 2013 23:34:30 +0000 (16:34 -0700)
commit8821e9d10829778731f45e2cd2a50055f3df5193
tree2518509b11039a744a19eaa482d69c3d39a3d204
parentee8983beccfd4690e4cdd9b1d818aa284656ce88
dri: Reference the global driver vtable once at screen init..

This is part of the prep for megadrivers, which won't allow using a single
global symbol due to the fact that there will be multiple drivers built
into the same dri.so file.  For that, we'll need screen init to take a
reference to the driver to set up this vtable.

v2: Fix two missed references to driDriverAPI.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (v1)
src/mesa/drivers/dri/common/dri_util.c
src/mesa/drivers/dri/common/dri_util.h