Print useful version information for nouveau.

Unknown, unknown just looks bad given that we will have more
nouveau users in future. Neither the vendor, nor the renderer
nor the version string contains a version number. The information
most close to a version number is the gallium number. Other
possible number would be OpenGL version or Mesa version in the
GL version string, but those information is not used in other
Mesa drivers.

svn path=/trunk/KDE/kdebase/workspace/; revision=1184526
icc-effect-5.14.5
Martin Gräßlin 2010-10-10 17:40:43 +00:00
parent f31d32250f
commit aa4e2c0c54
1 changed files with 6 additions and 0 deletions

View File

@ -268,6 +268,12 @@ void CompositingPrefs::detectDriverAndVersion()
if (!mVersion.startsWith("20"))
mVersion = Version( mGLRenderer.split(' ')[ 5 ] );
}
else if( mGLVendor == "nouveau" )
{
mDriver = "nouveau";
// use Gallium version number as the version - second part of renderer
mVersion = Version( mGLRenderer.split(' ')[ 1 ] );
}
else if( mGLRenderer == "Software Rasterizer" )
{
mDriver = "software";