[autotest/libkwineffects] Add more test data for the glplatform test

Example data harvested from bugs.kde.org: open bugs against kwin with
a comment containing supportInformation.

We can see that especially detecting modern radeon gpus is not working.
This commit is contained in:
Martin Gräßlin 2016-08-08 17:40:04 +02:00
parent a79dc5585a
commit 0778cab42d
18 changed files with 339 additions and 0 deletions

View file

@ -0,0 +1,18 @@
[Driver]
Vendor=ATI Technologies Inc.
Renderer=AMD Radeon HD 7700M Series
Version=3.1.13399 Compatibility Profile Context FireGL 15.201.1151
ShadingLanguageVersion=4.40
[Settings]
LooseBinding=false
GLSL=true
TextureNPOT=true
Catalyst=true
Radeon=true
GLVersion=3,1,13399
GLSLVersion=4,40
DriverVersion=15,201,1151
Driver=9
ChipClass=999
Compositor=9

View file

@ -0,0 +1,21 @@
[Driver]
Vendor=X.Org
Renderer=Gallium 0.4 on AMD BONAIRE (DRM 2.43.0, LLVM 3.8.0)
Version=3.0 Mesa 11.2.2
ShadingLanguageVersion=1.30
[Settings]
LooseBinding=true
GLSL=true
TextureNPOT=true
Mesa=true
Gallium=true
Radeon=true
GLVersion=3,0
GLSLVersion=1,30
MesaVersion=11,2,2
GalliumVersion=0,4
DriverVersion=11,2,2
Driver=5
ChipClass=999
Compositor=9

View file

@ -0,0 +1,22 @@
[Driver]
Vendor=X.Org
Renderer=Gallium 0.4 on AMD CAYMAN (DRM 2.43.0, LLVM 3.8.0)
Version=OpenGL ES 3.0 Mesa 11.2.2
ShadingLanguageVersion=OpenGL ES GLSL ES 3.00
[Settings]
LooseBinding=true
GLSL=true
TextureNPOT=true
Mesa=true
Gallium=true
Radeon=true
GLVersion=3,0
GLSLVersion=3,0
GLES=true
MesaVersion=11,2,2
GalliumVersion=0,4
DriverVersion=11,2,2
Driver=5
ChipClass=8
Compositor=9

View file

@ -0,0 +1,21 @@
[Driver]
Vendor=X.Org
Renderer=Gallium 0.4 on AMD HAWAII (DRM 2.43.0, LLVM 3.7.1)
Version=3.0 Mesa 11.1.2
ShadingLanguageVersion=1.30
[Settings]
LooseBinding=true
GLSL=true
TextureNPOT=true
Mesa=true
Gallium=true
Radeon=true
GLVersion=3,0
GLSLVersion=1,30
MesaVersion=11,1,2
GalliumVersion=0,4
DriverVersion=11,1,2
Driver=5
ChipClass=999
Compositor=9

View file

@ -0,0 +1,21 @@
[Driver]
Vendor=X.Org
Renderer=Gallium 0.4 on AMD REDWOOD (DRM 2.43.0 / 4.6.4-1-ARCH, LLVM 3.8.0)
Version=3.0 Mesa 12.0.1
ShadingLanguageVersion=1.30
[Settings]
LooseBinding=true
GLSL=true
TextureNPOT=true
Mesa=true
Gallium=true
Radeon=true
GLVersion=3,0
GLSLVersion=1,30
MesaVersion=12,0,1
GalliumVersion=0,4
DriverVersion=12,0,1
Driver=5
ChipClass=7
Compositor=9

View file

@ -0,0 +1,21 @@
[Driver]
Vendor=X.Org
Renderer=Gallium 0.4 on AMD TONGA (DRM 3.2.0 / 4.7.0-0-MANJARO, LLVM 3.8.0)
Version=4.1 (Core Profile) Mesa 12.0.1
ShadingLanguageVersion=4.10
[Settings]
LooseBinding=true
GLSL=true
TextureNPOT=true
Mesa=true
Gallium=true
Radeon=true
GLVersion=4,1
GLSLVersion=4,10
MesaVersion=12,0,1
GalliumVersion=0,4
DriverVersion=12,0,1
Driver=5
ChipClass=999
Compositor=9

View file

@ -0,0 +1,19 @@
[Driver]
Vendor=Intel Open Source Technology Center
Renderer=Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2)
Version=3.3 (Core Profile) Mesa 11.2.2
ShadingLanguageVersion=3.30
[Settings]
LooseBinding=true
GLSL=true
TextureNPOT=true
Mesa=true
Intel=true
GLVersion=3,3
GLSLVersion=3,30
MesaVersion=11,2,2
DriverVersion=11,2,2
Driver=7
ChipClass=2999
Compositor=9

View file

@ -0,0 +1,19 @@
[Driver]
Vendor=Intel Open Source Technology Center
Renderer=Mesa DRI Intel(R) Haswell Mobile
Version=3.3 (Core Profile) Mesa 11.2.2
ShadingLanguageVersion=3.30
[Settings]
LooseBinding=true
GLSL=true
TextureNPOT=true
Mesa=true
Intel=true
GLVersion=3,3
GLSLVersion=3,30
MesaVersion=11,2,2
DriverVersion=11,2,2
Driver=7
ChipClass=2005
Compositor=9

View file

@ -0,0 +1,20 @@
[Driver]
Vendor=Intel Open Source Technology Center
Renderer=Mesa DRI Intel(R) Ivybridge Desktop
Version=3.0 Mesa 11.1.0 (git-525f3c2)
ShadingLanguageVersion=1.30
[Settings]
LooseBinding=true
GLSL=true
TextureNPOT=true
Mesa=true
Intel=true
GLVersion=3,0
GLSLVersion=1,30
MesaVersion=11,1,0
DriverVersion=11,1,0
Driver=7
ChipClass=2004
Compositor=9

View file

@ -0,0 +1,19 @@
[Driver]
Vendor=Intel Open Source Technology Center
Renderer=Mesa DRI Intel(R) Ivybridge Mobile
Version=3.3 (Core Profile) Mesa 12.0.1
ShadingLanguageVersion=3.30
[Settings]
LooseBinding=true
GLSL=true
TextureNPOT=true
Mesa=true
Intel=true
GLVersion=3,3
GLSLVersion=3,30
MesaVersion=12,0,1
DriverVersion=12,0,1
Driver=7
ChipClass=2004
Compositor=9

View file

@ -0,0 +1,19 @@
[Driver]
Vendor=Intel Open Source Technology Center
Renderer=Mesa DRI Intel(R) Sandybridge Mobile
Version=3.3 (Core Profile) Mesa 12.0.1
ShadingLanguageVersion=3.30
[Settings]
LooseBinding=true
GLSL=true
TextureNPOT=true
Mesa=true
Intel=true
GLVersion=3,3
GLSLVersion=3,30
MesaVersion=12,0,1
DriverVersion=12,0,1
Driver=7
ChipClass=2003
Compositor=9

View file

@ -0,0 +1,19 @@
[Driver]
Vendor=NVIDIA Corporation
Renderer=GeForce GTX 560/PCIe/SSE2
Version=4.5.0 NVIDIA 361.28
ShadingLanguageVersion=4.50 NVIDIA
[Settings]
LooseBinding=true
GLSL=true
TextureNPOT=true
Nvidia=true
PreferBufferSubData=true
GLVersion=4,5
GLSLVersion=4,50
DriverVersion=361,28
Driver=8
ChipClass=1005
Compositor=9

View file

@ -0,0 +1,18 @@
[Driver]
Vendor=NVIDIA Corporation
Renderer=GeForce GTX 660/PCIe/SSE2
Version=3.1.0 NVIDIA 367.27
ShadingLanguageVersion=1.40 NVIDIA via Cg compiler
[Settings]
LooseBinding=true
GLSL=true
TextureNPOT=true
Nvidia=true
PreferBufferSubData=true
GLVersion=3,1
GLSLVersion=1,40
DriverVersion=367,27
Driver=8
ChipClass=1999
Compositor=9

View file

@ -0,0 +1,18 @@
[Driver]
Vendor=NVIDIA Corporation
Renderer=GeForce GTX 950/PCIe/SSE2
Version=4.5.0 NVIDIA 364.19
ShadingLanguageVersion=4.50 NVIDIA
[Settings]
LooseBinding=true
GLSL=true
TextureNPOT=true
Nvidia=true
PreferBufferSubData=true
GLVersion=4,5
GLSLVersion=4,50
DriverVersion=364,19
Driver=8
ChipClass=1999
Compositor=9

View file

@ -0,0 +1,18 @@
[Driver]
Vendor=NVIDIA Corporation
Renderer=GeForce GTX 970/PCIe/SSE2
Version=3.1.0 NVIDIA 367.35
ShadingLanguageVersion=1.40 NVIDIA via Cg compiler
[Settings]
LooseBinding=true
GLSL=true
TextureNPOT=true
Nvidia=true
PreferBufferSubData=true
GLVersion=3,1
GLSLVersion=1,40
DriverVersion=367,35
Driver=8
ChipClass=1999
Compositor=9

View file

@ -0,0 +1,18 @@
[Driver]
Vendor=NVIDIA Corporation
Renderer=GeForce GTX 970M/PCIe/SSE2
Version=3.1.0 NVIDIA 364.12
ShadingLanguageVersion=1.40 NVIDIA via Cg compiler
[Settings]
LooseBinding=true
GLSL=true
TextureNPOT=true
Nvidia=true
PreferBufferSubData=true
GLVersion=3,1
GLSLVersion=1,40
DriverVersion=364,12
Driver=8
ChipClass=1999
Compositor=9

View file

@ -0,0 +1,18 @@
[Driver]
Vendor=NVIDIA Corporation
Renderer=GeForce GTX 980/PCIe/SSE2
Version=3.1.0 NVIDIA 364.19
ShadingLanguageVersion=1.40 NVIDIA via Cg compiler
[Settings]
LooseBinding=true
GLSL=true
TextureNPOT=true
Nvidia=true
PreferBufferSubData=true
GLVersion=3,1
GLSLVersion=1,40
DriverVersion=364,19
Driver=8
ChipClass=1999
Compositor=9

View file

@ -161,13 +161,23 @@ void GLPlatformTest::testDetect()
QCOMPARE(gl->mesaVersion(), readVersion(settingsGroup, "MesaVersion")); QCOMPARE(gl->mesaVersion(), readVersion(settingsGroup, "MesaVersion"));
QCOMPARE(gl->galliumVersion(), readVersion(settingsGroup, "GalliumVersion")); QCOMPARE(gl->galliumVersion(), readVersion(settingsGroup, "GalliumVersion"));
QCOMPARE(gl->serverVersion(), 0); QCOMPARE(gl->serverVersion(), 0);
QEXPECT_FAIL("amd-catalyst-radeonhd-7700M-3.1.13399", "Detects GL version instead of driver version", Continue);
QCOMPARE(gl->driverVersion(), readVersion(settingsGroup, "DriverVersion")); QCOMPARE(gl->driverVersion(), readVersion(settingsGroup, "DriverVersion"));
QEXPECT_FAIL("amd-gallium-bonaire-3.0", "Not detected as a radeon driver", Continue);
QEXPECT_FAIL("amd-gallium-hawaii-3.0", "Not detected as a radeon driver", Continue);
QEXPECT_FAIL("amd-gallium-tonga-4.1", "Not detected as a radeon driver", Continue);
QCOMPARE(gl->driver(), Driver(settingsGroup.readEntry("Driver", int(Driver_Unknown)))); QCOMPARE(gl->driver(), Driver(settingsGroup.readEntry("Driver", int(Driver_Unknown))));
QEXPECT_FAIL("amd-gallium-bonaire-3.0", "Not detected as a radeon driver", Continue);
QEXPECT_FAIL("amd-gallium-hawaii-3.0", "Not detected as a radeon driver", Continue);
QEXPECT_FAIL("amd-gallium-tonga-4.1", "Not detected as a radeon driver", Continue);
QCOMPARE(gl->chipClass(), ChipClass(settingsGroup.readEntry("ChipClass", int(UnknownChipClass)))); QCOMPARE(gl->chipClass(), ChipClass(settingsGroup.readEntry("ChipClass", int(UnknownChipClass))));
QCOMPARE(gl->isMesaDriver(), settingsGroup.readEntry("Mesa", false)); QCOMPARE(gl->isMesaDriver(), settingsGroup.readEntry("Mesa", false));
QCOMPARE(gl->isGalliumDriver(), settingsGroup.readEntry("Gallium", false)); QCOMPARE(gl->isGalliumDriver(), settingsGroup.readEntry("Gallium", false));
QEXPECT_FAIL("amd-gallium-bonaire-3.0", "Not detected as a radeon driver", Continue);
QEXPECT_FAIL("amd-gallium-hawaii-3.0", "Not detected as a radeon driver", Continue);
QEXPECT_FAIL("amd-gallium-tonga-4.1", "Not detected as a radeon driver", Continue);
QCOMPARE(gl->isRadeon(), settingsGroup.readEntry("Radeon", false)); QCOMPARE(gl->isRadeon(), settingsGroup.readEntry("Radeon", false));
QCOMPARE(gl->isNvidia(), settingsGroup.readEntry("Nvidia", false)); QCOMPARE(gl->isNvidia(), settingsGroup.readEntry("Nvidia", false));
QCOMPARE(gl->isIntel(), settingsGroup.readEntry("Intel", false)); QCOMPARE(gl->isIntel(), settingsGroup.readEntry("Intel", false));