CI: Only run OpenCL tests when we need to

Like the other drivers, set up rules so we don't run piglit-cl unless we
need to.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3695
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7330>
This commit is contained in:
Daniel Stone
2020-10-27 07:42:15 +00:00
committed by Marge Bot
parent 48e83f7665
commit 76f74bd653
2 changed files with 25 additions and 0 deletions

View File

@@ -1037,6 +1037,7 @@ piglit-cl:
extends: extends:
- .piglit-test - .piglit-test
- .test-cl - .test-cl
- .llvmpipe-cl-rules
variables: variables:
LP_CL: 1 LP_CL: 1
LP_NUM_THREADS: 1 LP_NUM_THREADS: 1

View File

@@ -78,6 +78,30 @@
when: on_success when: on_success
- when: never - when: never
.llvmpipe-cl-rules:
stage: llvmpipe
rules:
- *ignore_scheduled_pipelines
- changes:
- .gitlab-ci.yml
- .gitlab-ci/**/*
- meson.build
- include/**/*
- src/compiler/**/*
- src/include/**/*
- src/util/**/*
when: on_success
- changes:
*gallium_core_file_list
when: on_success
- changes:
*llvmpipe_file_list
when: on_success
- changes: &clover_file_list
- src/gallium/frontends/clover/**/*
when: on_success
- when: never
.freedreno-rules: .freedreno-rules:
stage: freedreno stage: freedreno
rules: rules: