Push __driDriverExtensions out of dri_util.c and into the drivers

This lets the individual drivers select which extensions to advertise.
Specifically, most drivers (tdfx, sis, savage etc) don't support DRI2
but the shared extension list in dri_util.c does list the DRI2 extension.

Pushing the list into the drivers, lets us avoid listing the DRI2
extension for drivers that don't support it.
This commit is contained in:
Kristian Høgsberg
2010-01-01 17:56:29 -05:00
parent d61f07318c
commit 39a0e4e7de
16 changed files with 101 additions and 9 deletions

View File

@@ -831,3 +831,11 @@ const struct __DriverAPIRec driDriverAPI = {
.InitScreen2 = intelInitScreen2,
};
/* This is the table of extensions that the loader will dlsym() for. */
PUBLIC const __DRIextension *__driDriverExtensions[] = {
&driCoreExtension.base,
&driLegacyExtension.base,
&driDRI2Extension.base,
NULL
};