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:
@@ -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
|
||||
};
|
||||
|
Reference in New Issue
Block a user