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:
parent
f31d32250f
commit
aa4e2c0c54
1 changed files with 6 additions and 0 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue