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
This commit is contained in:
Martin Gräßlin 2010-10-10 17:40:43 +00:00
parent f31d32250f
commit aa4e2c0c54

View file

@ -268,6 +268,12 @@ void CompositingPrefs::detectDriverAndVersion()
if (!mVersion.startsWith("20")) if (!mVersion.startsWith("20"))
mVersion = Version( mGLRenderer.split(' ')[ 5 ] ); 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" ) else if( mGLRenderer == "Software Rasterizer" )
{ {
mDriver = "software"; mDriver = "software";