vulkan/wsi/wayland: Respect non-blocking AcquireNextImage
[mesa.git] / .gitlab-ci.yml
1 # This is the tag of the docker image used for the build jobs. If the
2 # image doesn't exist yet, the containers-build stage generates it.
3 #
4 # In order to generate a new image, one should generally change the tag.
5 # While removing the image from the registry would also work, that's not
6 # recommended except for ephemeral images during development: Replacing
7 # an image after a significant amount of time might pull in newer
8 # versions of gcc/clang or other packages, which might break the build
9 # with older commits using the same tag.
10 #
11 # After merging a change resulting in generating a new image to the
12 # main repository, it's recommended to remove the image from the source
13 # repository's container registry, so that the image from the main
14 # repository's registry will be used there as well.
15 #
16 # The format of the tag is "%Y-%m-%d-${counter}" where ${counter} stays
17 # at "01" unless you have multiple updates on the same day :)
18 variables:
19 UPSTREAM_REPO: mesa/mesa
20 DEBIAN_TAG: "2019-04-16"
21 DEBIAN_VERSION: stretch-slim
22 DEBIAN_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG"
23
24 include:
25 - project: 'wayland/ci-templates'
26 ref: c73dae8b84697ef18e2dbbf4fed7386d9652b0cd
27 file: '/templates/debian.yml'
28
29 stages:
30 - containers-build
31 - build+test
32
33
34 # When to automatically run the CI
35 .ci-run-policy: &ci-run-policy
36 only:
37 - branches@mesa/mesa
38 - merge_requests
39 - /^ci([-/].*)?$/
40 retry:
41 max: 2
42 when:
43 - runner_system_failure
44
45
46 # CONTAINERS
47
48 debian:
49 extends: .debian@container-ifnot-exists
50 stage: containers-build
51 <<: *ci-run-policy
52 variables:
53 GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
54 DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
55
56
57 # BUILD
58
59 .build:
60 <<: *ci-run-policy
61 image: $DEBIAN_IMAGE
62 stage: build+test
63 cache:
64 paths:
65 - ccache
66 artifacts:
67 when: on_failure
68 untracked: true
69 variables:
70 CCACHE_COMPILERCHECK: "content"
71 # Use ccache transparently, and print stats before/after
72 before_script:
73 - export PATH="/usr/lib/ccache:$PATH"
74 - export CCACHE_BASEDIR="$PWD"
75 - export CCACHE_DIR="$PWD/ccache"
76 - ccache --zero-stats || true
77 - ccache --show-stats || true
78 after_script:
79 - export CCACHE_DIR="$PWD/ccache"
80 - ccache --show-stats
81
82 .meson-build:
83 extends: .build
84 script:
85 # We need to control the version of llvm-config we're using, so we'll
86 # generate a native file to do so. This requires meson >=0.49
87 - if test -n "$LLVM_VERSION"; then
88 LLVM_CONFIG="llvm-config-${LLVM_VERSION}";
89 echo -e "[binaries]\nllvm-config = '`which $LLVM_CONFIG`'" > native.file;
90 $LLVM_CONFIG --version;
91 else
92 touch native.file;
93 fi
94 - meson --version
95 - meson _build
96 --native-file=native.file
97 -D buildtype=debug
98 -D build-tests=true
99 -D libunwind=${UNWIND}
100 ${DRI_LOADERS}
101 -D dri-drivers=${DRI_DRIVERS:-[]}
102 ${GALLIUM_ST}
103 -D gallium-drivers=${GALLIUM_DRIVERS:-[]}
104 -D vulkan-drivers=${VULKAN_DRIVERS:-[]}
105 -D I-love-half-baked-turnips=true
106 - cd _build
107 - meson configure
108 - ninja -j4
109 - LC_ALL=C.UTF-8 ninja test
110
111 .scons-build:
112 extends: .build
113 variables:
114 SCONSFLAGS: "-j4"
115 script:
116 - if test -n "$LLVM_VERSION"; then
117 export LLVM_CONFIG="llvm-config-${LLVM_VERSION}";
118 fi
119 - scons $SCONS_TARGET
120 - eval $SCONS_CHECK_COMMAND
121
122 # NOTE: Building SWR is 2x (yes two) times slower than all the other
123 # gallium drivers combined.
124 # Start this early so that it doesn't limit the total run time.
125 meson-gallium-swr:
126 extends: .meson-build
127 variables:
128 UNWIND: "true"
129 DRI_LOADERS: >
130 -D glx=disabled
131 -D egl=false
132 -D gbm=false
133 GALLIUM_ST: >
134 -D dri3=false
135 -D gallium-vdpau=false
136 -D gallium-xvmc=false
137 -D gallium-omx=disabled
138 -D gallium-va=false
139 -D gallium-xa=false
140 -D gallium-nine=false
141 -D gallium-opencl=disabled
142 GALLIUM_DRIVERS: "swr"
143 LLVM_VERSION: "6.0"
144
145 meson-clang:
146 extends: .meson-build
147 variables:
148 UNWIND: "true"
149 DRI_DRIVERS: "auto"
150 GALLIUM_DRIVERS: "auto"
151 VULKAN_DRIVERS: intel,amd,freedreno
152 CC: "ccache clang-8"
153 CXX: "ccache clang++-8"
154 before_script:
155 - export CCACHE_BASEDIR="$PWD" CCACHE_DIR="$PWD/ccache"
156 - ccache --zero-stats --show-stats || true
157 # clang++ breaks if it picks up the GCC 8 directory without libstdc++.so
158 - apt-get remove -y libgcc-8-dev
159
160 meson-vulkan:
161 extends: .meson-build
162 variables:
163 UNWIND: "false"
164 DRI_LOADERS: >
165 -D glx=disabled
166 -D gbm=false
167 -D egl=false
168 -D platforms=x11,wayland,drm
169 -D osmesa=none
170 GALLIUM_ST: >
171 -D dri3=true
172 -D gallium-vdpau=false
173 -D gallium-xvmc=false
174 -D gallium-omx=disabled
175 -D gallium-va=false
176 -D gallium-xa=false
177 -D gallium-nine=false
178 -D gallium-opencl=disabled
179 VULKAN_DRIVERS: intel,amd,freedreno
180 LLVM_VERSION: "7"
181
182 meson-loader-classic-dri:
183 extends: .meson-build
184 variables:
185 UNWIND: "false"
186 DRI_LOADERS: >
187 -D glx=dri
188 -D gbm=true
189 -D egl=true
190 -D platforms=x11,wayland,drm,surfaceless
191 -D osmesa=classic
192 DRI_DRIVERS: "i915,i965,r100,r200,swrast,nouveau"
193 GALLIUM_ST: >
194 -D dri3=true
195 -D gallium-vdpau=false
196 -D gallium-xvmc=false
197 -D gallium-omx=disabled
198 -D gallium-va=false
199 -D gallium-xa=false
200 -D gallium-nine=false
201 -D gallium-opencl=disabled
202
203 meson-glvnd:
204 extends: .meson-build
205 variables:
206 UNWIND: "true"
207 DRI_LOADERS: >
208 -D glvnd=true
209 -D egl=true
210 -D gbm=true
211 -D glx=dri
212 DRI_DRIVERS: "i965"
213 GALLIUM_ST: >
214 -D gallium-vdpau=false
215 -D gallium-xvmc=false
216 -D gallium-omx=disabled
217 -D gallium-va=false
218 -D gallium-xa=false
219 -D gallium-nine=false
220 -D gallium-opencl=disabled
221
222 meson-gallium-radeonsi:
223 extends: .meson-build
224 variables:
225 UNWIND: "true"
226 DRI_LOADERS: >
227 -D glx=disabled
228 -D egl=false
229 -D gbm=false
230 GALLIUM_ST: >
231 -D dri3=false
232 -D gallium-vdpau=false
233 -D gallium-xvmc=false
234 -D gallium-omx=disabled
235 -D gallium-va=false
236 -D gallium-xa=false
237 -D gallium-nine=false
238 -D gallium-opencl=disabled
239 GALLIUM_DRIVERS: "radeonsi"
240 LLVM_VERSION: "7"
241
242 meson-gallium-drivers-other:
243 extends: .meson-build
244 variables:
245 UNWIND: "true"
246 DRI_LOADERS: >
247 -D glx=disabled
248 -D egl=false
249 -D gbm=false
250 GALLIUM_ST: >
251 -D dri3=false
252 -D gallium-vdpau=false
253 -D gallium-xvmc=false
254 -D gallium-omx=disabled
255 -D gallium-va=false
256 -D gallium-xa=false
257 -D gallium-nine=false
258 -D gallium-opencl=disabled
259 GALLIUM_DRIVERS: "i915,iris,nouveau,kmsro,r300,r600,freedreno,svga,swrast,v3d,vc4,virgl,etnaviv,panfrost,lima"
260 LLVM_VERSION: "5.0"
261
262 meson-gallium-clover-llvm:
263 extends: .meson-build
264 variables:
265 UNWIND: "true"
266 DRI_LOADERS: >
267 -D glx=disabled
268 -D egl=false
269 -D gbm=false
270 GALLIUM_ST: >
271 -D dri3=false
272 -D gallium-vdpau=false
273 -D gallium-xvmc=false
274 -D gallium-omx=disabled
275 -D gallium-va=false
276 -D gallium-xa=false
277 -D gallium-nine=false
278 -D gallium-opencl=icd
279 GALLIUM_DRIVERS: "r600,radeonsi"
280
281 meson-gallium-clover-llvm39:
282 extends: meson-gallium-clover-llvm
283 variables:
284 GALLIUM_DRIVERS: "r600"
285 LLVM_VERSION: "3.9"
286
287 meson-gallium-st-other:
288 extends: .meson-build
289 variables:
290 UNWIND: "true"
291 DRI_LOADERS: >
292 -D glx=disabled
293 -D egl=false
294 -D gbm=false
295 GALLIUM_ST: >
296 -D dri3=true
297 -D gallium-extra-hud=true
298 -D gallium-vdpau=true
299 -D gallium-xvmc=true
300 -D gallium-omx=bellagio
301 -D gallium-va=true
302 -D gallium-xa=true
303 -D gallium-nine=true
304 -D gallium-opencl=disabled
305 -D osmesa=gallium
306 GALLIUM_DRIVERS: "nouveau,swrast"
307 LLVM_VERSION: "5.0"
308
309 scons-nollvm:
310 extends: .scons-build
311 variables:
312 SCONS_TARGET: "llvm=0"
313 SCONS_CHECK_COMMAND: "scons llvm=0 check"
314
315 scons-llvm:
316 extends: .scons-build
317 variables:
318 SCONS_TARGET: "llvm=1"
319 SCONS_CHECK_COMMAND: "scons llvm=1 check"
320 LLVM_VERSION: "3.4"
321 # LLVM 3.4 packages were built with an old libstdc++ ABI
322 CXX: "g++ -D_GLIBCXX_USE_CXX11_ABI=0"
323
324 scons-swr:
325 extends: .scons-build
326 variables:
327 SCONS_TARGET: "swr=1"
328 SCONS_CHECK_COMMAND: "true"
329 LLVM_VERSION: "6.0"