mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-04 22:36:10 +00:00
Bug #3163: Create new DRIINFO_*_VERSION macros to indicate the version
number of the DRIInfoRec, disambiguating it from the XF86DRI protocol
version number. Modify DRIQueryVersion to return the libdri version
number, which all DDXes were requesting implicitly. Fix the DDXes to
check for the DRIINFO version they were compiled against.
This commit is contained in:
parent
fddcde777f
commit
b87a32fb0e
2 changed files with 22 additions and 6 deletions
|
|
@ -1958,14 +1958,15 @@ DRIGetWrappedFuncs(ScreenPtr pScreen)
|
|||
return &(DRI_SCREEN_PRIV(pScreen)->wrap);
|
||||
}
|
||||
|
||||
/* note that this returns the library version, not the protocol version */
|
||||
void
|
||||
DRIQueryVersion(int *majorVersion,
|
||||
int *minorVersion,
|
||||
int *patchVersion)
|
||||
{
|
||||
*majorVersion = XF86DRI_MAJOR_VERSION;
|
||||
*minorVersion = XF86DRI_MINOR_VERSION;
|
||||
*patchVersion = XF86DRI_PATCH_VERSION;
|
||||
*majorVersion = DRIINFO_MAJOR_VERSION;
|
||||
*minorVersion = DRIINFO_MINOR_VERSION;
|
||||
*patchVersion = DRIINFO_PATCH_VERSION;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Reference in a new issue