Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 189456 - x11-drivers/xf86-video-sis ddx interface version
Summary: x11-drivers/xf86-video-sis ddx interface version
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-19 12:37 UTC by Kai Krakow
Modified: 2007-12-01 20:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Krakow 2007-08-19 12:37:21 UTC
I got the following error message with GLX applications after upgrading to one of the newer xorg-server ebuilds:

"SiS DRI driver expected DDX version 0-0.8.x but got version 0.7.1"

After some digging through the code of xf86-video-sis I found out that the provided DDX interface version is made dependant on the Xorg version code which must be higher than 6.8.99.900.0:

(sis.h in xf86-video-sis)
#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(6,8,99,900,0)
#define SISISXORG6899900
#endif

and later:
#ifdef SISISXORG6899900
#define SIS_MINOR_VERSION       9       /* DRI changes */
#define SIS_PATCHLEVEL          1
#else
#define SIS_MINOR_VERSION       7
#define SIS_PATCHLEVEL          1
#endif

So it provides DDX version 0.7.1 on old, and 0.9.1 on new Xorgs. I have installed xorg-server-1.3 which identifies itself as 1.3 instead of 7.3 effectively switching this DDX interface version back to 0.7.1.

The version number is defined in /usr/include/xorg/xorg-server.h. I changed it to 7.3 temporarily and now GLX with my SiS driver works again after recompiling it.

I am not sure where to fix the problem (in the driver or in xorg-server) because many drivers seem to check for versions even >= 7.2 which won't work with xorg-server-1.3 altough it is indeed newer. Since thus this may break many drivers it should probably be fixed somewhere else.

Reproducible: Always

Steps to Reproduce:
1. Install xorg-server-1.3 with xf86-video-sis-0.9.3
2. Run a GLX application like GLX gears


Actual Results:  
I get the following error and GLX falls back to using software mode:

"SiS DRI driver expected DDX version 0-0.8.x but got version 0.7.1"

Expected Results:  
See the GLXgears hardware-accelerated (which worked with xorg-server < 1.3 or < 1.2 -- not sure)

I cannot actually say since which xorg-server version this problem occurs because I didn't use GLX for a longer time. But it worked with one of the earlier xorg-server versions.
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2007-12-01 20:21:07 UTC
If this isn't fixed in 0.9.4, please reopen.