summaryrefslogtreecommitdiff
diff options
authorPMR <pmr@pmr-lander>2017-09-05 15:55:26 +0000
committerPMR <pmr@pmr-lander>2017-09-05 15:55:26 +0000
commit8b2015c52f692b3613ba81f7b2861aeed98b33f3 (patch)
treecabeedc4f50daa45ae7bc56e8435bfe590b2dee4
parent8ad9b4b3a77273bc4c6cffee609ee7f205667f28 (diff)
parentce824e12e3f4d544506a4eb2d6ffcdb0325c4126 (diff)
Merge #329375 from ~sylvain-pineau/plainbox-provider-checkbox:fix-1712018
-rw-r--r--jobs/graphics.txt.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/jobs/graphics.txt.in b/jobs/graphics.txt.in
index 036c1386..a7af65a4 100644
--- a/jobs/graphics.txt.in
+++ b/jobs/graphics.txt.in
@@ -279,6 +279,22 @@ _summary: Test Unity 3D support for {vendor} {product}
unit: template
template-resource: graphics_card
+template-filter: graphics_card.driver in ['amdgpu', 'amdgpu-pro']
+plugin: shell
+category_id: com.canonical.plainbox::graphics
+id: graphics/{index}_valid_opengl_renderer_{product_slug}
+requires: package.name == 'mesa-utils'
+command:
+ renderer=`DRI_PRIME=1 glxinfo | grep "OpenGL re"`
+ echo $renderer
+ if grep -qi 'Intel' <<<$renderer; then
+ echo 'ERROR: renderer is Intel when DRI_PRIME=1'
+ exit 1
+ fi
+_summary: Check the OpenGL renderer (AMD GPU and DRI_PRIME=1)
+
+unit: template
+template-resource: graphics_card
plugin: user-interact-verify
category_id: com.canonical.plainbox::graphics
id: graphics/{index}_glxgears_{product_slug}