Debian Codegraph @

infra/bots/gen_tasks_logic/dm_flags.go

raw
1 // Copyright 2020 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package gen_tasks_logic
6
7 import (
8 "fmt"
9 "sort"
10 "strconv"
11 "strings"
12
13 "github.com/golang/glog"
14 "go.skia.org/infra/task_scheduler/go/specs"
15 )
16
17 // keyParams generates the key used by DM for Gold results.
18 func keyParams(parts map[string]string) []string {
19 // Don't bother to include role, which is always Test.
20 ignored := []string{"role", "test_filter"}
21 keys := make([]string, 0, len(parts))
22 for key := range parts {
23 found := false
24 for _, b := range ignored {
25 if key == b {
26 found = true
27 break
28 }
29 }
30 if !found {
31 keys = append(keys, key)
32 }
33 }
34 sort.Strings(keys)
35 rv := make([]string, 0, 2*len(keys))
36 for _, key := range keys {
37 rv = append(rv, key, parts[key])
38 }
39 return rv
40 }
41
42 // dmFlags generates flags to DM based on the given task properties.
43 func (b *TaskBuilder) dmFlags(internalHardwareLabel string) {
44 properties := map[string]string{
45 "gitHash": specs.PLACEHOLDER_REVISION,
46 "builder": b.Name,
47 "buildbucket_build_id": specs.PLACEHOLDER_BUILDBUCKET_BUILD_ID,
48 "task_id": specs.PLACEHOLDER_TASK_ID,
49 "issue": specs.PLACEHOLDER_ISSUE,
50 "patchset": specs.PLACEHOLDER_PATCHSET,
51 "patch_storage": specs.PLACEHOLDER_PATCH_STORAGE,
52 "swarming_bot_id": "${SWARMING_BOT_ID}",
53 "swarming_task_id": "${SWARMING_TASK_ID}",
54 }
55
56 args := []string{
57 "dm",
58 "--nameByHash",
59 }
60
61 configs := []string{}
62 skipped := []string{}
63
64 hasConfig := func(cfg string) bool {
65 for _, c := range configs {
66 if c == cfg {
67 return true
68 }
69 }
70 return false
71 }
72 filter := func(slice []string, elems ...string) []string {
73 m := make(map[string]bool, len(elems))
74 for _, e := range elems {
75 m[e] = true
76 }
77 rv := make([]string, 0, len(slice))
78 for _, e := range slice {
79 if m[e] {
80 rv = append(rv, e)
81 }
82 }
83 return rv
84 }
85 remove := func(slice []string, elem string) []string {
86 rv := make([]string, 0, len(slice))
87 for _, e := range slice {
88 if e != elem {
89 rv = append(rv, e)
90 }
91 }
92 return rv
93 }
94 removeContains := func(slice []string, elem string) []string {
95 rv := make([]string, 0, len(slice))
96 for _, e := range slice {
97 if !strings.Contains(e, elem) {
98 rv = append(rv, e)
99 }
100 }
101 return rv
102 }
103 suffix := func(slice []string, sfx string) []string {
104 rv := make([]string, 0, len(slice))
105 for _, e := range slice {
106 rv = append(rv, e+sfx)
107 }
108 return rv
109 }
110
111 // When matching skip logic, _ is a wildcard that matches all parts for the field.
112 // For example, "8888 _ _ _" means everything that is part of an 8888 config and
113 // "_ skp _ SomeBigDraw" means the skp named SomeBigDraw on all config and options.
114 const ALL = "_"
115 // The inputs here are turned into a --skip flag which represents a
116 // "Space-separated config/src/srcOptions/name quadruples to skip."
117 // See DM.cpp for more, especially should_skip(). ~ negates the match.
118 skip := func(config, src, srcOptions, name string) {
119 // config is also called "sink" in DM
120 if config == "_" ||
121 hasConfig(config) ||
122 (config[0] == '~' && hasConfig(config[1:])) {
123 skipped = append(skipped, config, src, srcOptions, name)
124 }
125 }
126
127 // Keys.
128 keys := keyParams(b.Parts)
129 if b.ExtraConfig("Lottie") {
130 keys = append(keys, "renderer", "skottie")
131 }
132 if b.MatchExtraConfig("DDL") {
133 // 'DDL' style means "--skpViewportSize 2048"
134 keys = append(keys, "style", "DDL")
135 } else {
136 keys = append(keys, "style", "default")
137 }
138 args = append(args, "--key")
139 args = append(args, keys...)
140
141 // This enables non-deterministic random seeding of the GPU FP optimization
142 // test.
143 // Not Android due to:
144 // - https://skia.googlesource.com/skia/+/5910ed347a638ded8cd4c06dbfda086695df1112/BUILD.gn#160
145 // - https://skia.googlesource.com/skia/+/ce06e261e68848ae21cac1052abc16bc07b961bf/tests/ProcessorTest.cpp#307
146 // Not MSAN due to:
147 // - https://skia.googlesource.com/skia/+/0ac06e47269a40c177747310a613d213c95d1d6d/infra/bots/recipe_modules/flavor/gn_flavor.py#80
148 if !b.MatchOs("Android") && !b.ExtraConfig("MSAN") {
149 args = append(args, "--randomProcessorTest")
150 }
151
152 threadLimit := -1
153 const MAIN_THREAD_ONLY = 0
154
155 // 32-bit desktop machines tend to run out of memory, because they have relatively
156 // far more cores than RAM (e.g. 32 cores, 3G RAM). Hold them back a bit.
157 if b.Arch("x86") {
158 threadLimit = 4
159 }
160
161 // These devices run out of memory easily.
162 if b.Model("MotoG4", "Nexus7") {
163 threadLimit = MAIN_THREAD_ONLY
164 }
165
166 // Avoid issues with dynamically exceeding resource cache limits.
167 if b.MatchExtraConfig("DISCARDABLE") {
168 threadLimit = MAIN_THREAD_ONLY
169 }
170
171 if threadLimit >= 0 {
172 args = append(args, "--threads", strconv.Itoa(threadLimit))
173 }
174
175 sampleCount := 0
176 glPrefix := ""
177 if b.ExtraConfig("SwiftShader") {
178 if b.ExtraConfig("Graphite") {
179 configs = append(configs, "grvk")
180 // b/441484662
181 skip(ALL, "test", ALL, "BigImage")
182 skip(ALL, "test", ALL, "PaintParamsKey")
183 skip(ALL, "test", ALL, "AndroidPrecompile")
184 skip(ALL, "test", ALL, "MultisampleRetain")
185 skip(ALL, "gm", ALL, "lcd")
186 } else {
187 configs = append(configs, "vk", "vkdmsaa")
188 }
189 // skbug.com/40043920
190 skip(ALL, "test", ALL, "GrThreadSafeCache16Verts")
191 // b/296440036
192 skip(ALL, "test", ALL, "ImageAsyncReadPixels")
193 // skbug.com/40043921
194 skip(ALL, "test", ALL, "image_subset")
195 } else if b.CPU() {
196 args = append(args, "--nogpu")
197
198 configs = append(configs, "8888")
199
200 if b.ExtraConfig("BonusConfigs") {
201 configs = []string{
202 "r8", "565",
203 "pic-8888", "serialize-8888"}
204 }
205
206 if b.ExtraConfig("PDF") {
207 configs = []string{"pdf"}
208 args = append(args, "--rasterize_pdf") // Works only on Mac.
209 // Take ~forever to rasterize:
210 skip("pdf", "gm", ALL, "lattice2")
211 skip("pdf", "gm", ALL, "hairmodes")
212 skip("pdf", "gm", ALL, "longpathdash")
213 }
214
215 if b.ExtraConfig("OldestSupportedSkpVersion") {
216 // For triaging convenience, make the old-skp job's output match the size of the DDL jobs' output
217 args = append(args, "--skpViewportSize", "2048")
218 }
219
220 } else if b.GPU() {
221 args = append(args, "--nocpu")
222
223 // Add in either gles or gl configs to the canonical set based on OS
224 glPrefix = "gl"
225 // Use 4x MSAA for all our testing. It's more consistent and 8x MSAA is nondeterministic (by
226 // design) on NVIDIA hardware. The problem is especially bad on ANGLE. skbug.com/40038032 skbug.com/40037753
227 sampleCount = 4
228 if b.MatchOs("Android") || b.Os("iOS") {
229 glPrefix = "gles"
230 // MSAA is disabled on Pixel3a (https://b.corp.google.com/issues/143074513).
231 // MSAA is disabled on Pixel5 (https://skbug.com/40042528).
232 if b.Model("Pixel3a", "Pixel5") {
233 sampleCount = 0
234 }
235
236 // Disable failing OpenGLES SkSL test for Pixel 10 devices (b/452352214).
237 // Also see b/370739986; could be an issue on all IMG GPUs.
238 if b.Model("Pixel10") {
239 skip(ALL, "test", ALL, "SkSLIntrinsicModf_Ganesh")
240 }
241 } else if b.MatchGpu("Intel") {
242 // MSAA doesn't work well on Intel GPUs chromium:527565, chromium:983926
243 if b.GPU("IntelIrisXe") && b.MatchOs("Win") && b.ExtraConfig("ANGLE") {
244 // Make an exception for newer GPUs + D3D
245 args = append(args, "--allowMSAAOnNewIntel", "true")
246 } else {
247 sampleCount = 0
248 }
249 } else if b.Os("ChromeOS") {
250 glPrefix = "gles"
251 }
252
253 if b.ExtraConfig("NativeFonts") {
254 configs = append(configs, glPrefix)
255 } else {
256 configs = append(configs, glPrefix, glPrefix+"dft")
257 if sampleCount > 0 {
258 configs = append(configs, fmt.Sprintf("%smsaa%d", glPrefix, sampleCount))
259 // Temporarily limit the machines we test dynamic MSAA on.
260 if b.GPU("QuadroP400", "MaliG77") || b.MatchOs("Mac") {
261 configs = append(configs, fmt.Sprintf("%sdmsaa", glPrefix))
262 }
263 }
264 }
265
266 if b.ExtraConfig("Protected") {
267 args = append(args, "--createProtected")
268 // The Protected jobs (for now) only run the unit tests
269 skip(ALL, "gm", ALL, ALL)
270 skip(ALL, "image", ALL, ALL)
271 skip(ALL, "lottie", ALL, ALL)
272 skip(ALL, "colorImage", ALL, ALL)
273 skip(ALL, "svg", ALL, ALL)
274 skip(ALL, "skp", ALL, ALL)
275
276 // These unit tests attempt to readback
277 skip(ALL, "test", ALL, "ApplyGamma")
278 skip(ALL, "test", ALL, "BigImageTest_Ganesh")
279 skip(ALL, "test", ALL, "BigImageTest_Graphite")
280 skip(ALL, "test", ALL, "BlendRequiringDstReadWithLargeCoordinates")
281 skip(ALL, "test", ALL, "BlurMaskBiggerThanDest")
282 skip(ALL, "test", ALL, "ClearOp")
283 skip(ALL, "test", ALL, "ColorTypeBackendAllocationTest")
284 skip(ALL, "test", ALL, "ComposedImageFilterBounds_Gpu")
285 skip(ALL, "test", ALL, "CompressedBackendAllocationTest")
286 skip(ALL, "test", ALL, "CopySurface")
287 skip(ALL, "test", ALL, "crbug_1271431")
288 skip(ALL, "test", ALL, "DashPathEffectTest_2PiInterval")
289 skip(ALL, "test", ALL, "DeviceTestVertexTransparency")
290 skip(ALL, "test", ALL, "DDLMultipleDDLs")
291 skip(ALL, "test", ALL, "DefaultPathRendererTest")
292 skip(ALL, "test", ALL, "DMSAA_aa_dst_read_after_dmsaa")
293 skip(ALL, "test", ALL, "DMSAA_dst_read")
294 skip(ALL, "test", ALL, "DMSAA_dst_read_with_existing_barrier")
295 skip(ALL, "test", ALL, "DMSAA_dual_source_blend_disable")
296 skip(ALL, "test", ALL, "DMSAA_preserve_contents")
297 skip(ALL, "test", ALL, "EGLImageTest")
298 skip(ALL, "test", ALL, "ES2BlendWithNoTexture")
299 skip(ALL, "test", ALL, "ExtendedSkColorTypeTests_gpu")
300 skip(ALL, "test", ALL, "F16DrawTest")
301 skip(ALL, "test", ALL, "FilterResult_ganesh") // knocks out a bunch
302 skip(ALL, "test", ALL, "FullScreenClearWithLayers")
303 skip(ALL, "test", ALL, "GLBackendAllocationTest")
304 skip(ALL, "test", ALL, "GLReadPixelsUnbindPBO")
305 skip(ALL, "test", ALL, "GrAHardwareBuffer_BasicDrawTest")
306 skip(ALL, "test", ALL, "GrGpuBufferTransferTest")
307 skip(ALL, "test", ALL, "GrGpuBufferUpdateDataTest")
308 skip(ALL, "test", ALL, "GrMeshTest")
309 skip(ALL, "test", ALL, "GrPipelineDynamicStateTest")
310 skip(ALL, "test", ALL, "GrTextBlobScaleAnimation")
311 skip(ALL, "test", ALL, "HalfFloatAlphaTextureTest")
312 skip(ALL, "test", ALL, "HalfFloatRGBATextureTest")
313 skip(ALL, "test", ALL, "ImageAsyncReadPixels")
314 skip(ALL, "test", ALL, "ImageAsyncReadPixelsGraphite")
315 skip(ALL, "test", ALL, "ImageBackendTextureTest")
316 skip(ALL, "test", ALL, "ImageEncode_Gpu")
317 skip(ALL, "test", ALL, "ImageFilterFailAffectsTransparentBlack_Gpu")
318 skip(ALL, "test", ALL, "ImageFilterNegativeBlurSigma_Gpu")
319 skip(ALL, "test", ALL, "ImageFilterZeroBlurSigma_Gpu")
320 skip(ALL, "test", ALL, "ImageLegacyBitmap_Gpu")
321 skip(ALL, "test", ALL, "ImageNewShader_GPU")
322 skip(ALL, "test", ALL, "ImageOriginTest_drawImage_Graphite")
323 skip(ALL, "test", ALL, "ImageOriginTest_imageShader_Graphite")
324 skip(ALL, "test", ALL, "ImageProviderTest_Graphite_Default")
325 skip(ALL, "test", ALL, "ImageProviderTest_Graphite_Testing")
326 skip(ALL, "test", ALL, "ImageReadPixels_Gpu")
327 skip(ALL, "test", ALL, "ImageScalePixels_Gpu")
328 skip(ALL, "test", ALL, "ImageShaderTest")
329 skip(ALL, "test", ALL, "ImageWrapTextureMipmapsTest")
330 skip(ALL, "test", ALL, "MatrixColorFilter_TransparentBlack")
331 skip(ALL, "test", ALL, "MorphologyFilterRadiusWithMirrorCTM_Gpu")
332 skip(ALL, "test", ALL, "MultisampleRetainTest")
333 skip(ALL, "test", ALL, "MultisampleClearThenLoad")
334 skip(ALL, "test", ALL, "MutableImagesTest")
335 skip(ALL, "test", ALL, "NotifyInUseTestAsImage")
336 skip(ALL, "test", ALL, "NotifyInUseTestLayerClear")
337 skip(ALL, "test", ALL, "NotifyInUseTestLayerColor")
338 skip(ALL, "test", ALL, "NotifyInUseTestLayerColorBurn")
339 skip(ALL, "test", ALL, "NotifyInUseTestLayerColorDodge")
340 skip(ALL, "test", ALL, "NotifyInUseTestLayerDarken")
341 skip(ALL, "test", ALL, "NotifyInUseTestLayerDifference")
342 skip(ALL, "test", ALL, "NotifyInUseTestLayerDst")
343 skip(ALL, "test", ALL, "NotifyInUseTestLayerDstATop")
344 skip(ALL, "test", ALL, "NotifyInUseTestLayerDstIn")
345 skip(ALL, "test", ALL, "NotifyInUseTestLayerDstOut")
346 skip(ALL, "test", ALL, "NotifyInUseTestLayerDstOver")
347 skip(ALL, "test", ALL, "NotifyInUseTestLayerExclusion")
348 skip(ALL, "test", ALL, "NotifyInUseTestLayerHardLight")
349 skip(ALL, "test", ALL, "NotifyInUseTestLayerHue")
350 skip(ALL, "test", ALL, "NotifyInUseTestLayerLighten")
351 skip(ALL, "test", ALL, "NotifyInUseTestLayerLuminosity")
352 skip(ALL, "test", ALL, "NotifyInUseTestLayerModulate")
353 skip(ALL, "test", ALL, "NotifyInUseTestLayerMultiply")
354 skip(ALL, "test", ALL, "NotifyInUseTestLayerOverlay")
355 skip(ALL, "test", ALL, "NotifyInUseTestLayerPlus")
356 skip(ALL, "test", ALL, "NotifyInUseTestLayerSaturation")
357 skip(ALL, "test", ALL, "NotifyInUseTestLayerScreen")
358 skip(ALL, "test", ALL, "NotifyInUseTestLayerSoftLight")
359 skip(ALL, "test", ALL, "NotifyInUseTestLayerSrc")
360 skip(ALL, "test", ALL, "NotifyInUseTestLayerSrcATop")
361 skip(ALL, "test", ALL, "NotifyInUseTestLayerSrcIn")
362 skip(ALL, "test", ALL, "NotifyInUseTestLayerSrcOut")
363 skip(ALL, "test", ALL, "NotifyInUseTestLayerSrcOver")
364 skip(ALL, "test", ALL, "NotifyInUseTestLayerXor")
365 skip(ALL, "test", ALL, "NotifyInUseTestSnapshot")
366 skip(ALL, "test", ALL, "OpsTaskFlushCount")
367 skip(ALL, "test", ALL, "OverdrawSurface_Gpu")
368 skip(ALL, "test", ALL, "PinnedImageTest")
369 skip(ALL, "test", ALL, "RecordingOrderTest_Graphite")
370 skip(ALL, "test", ALL, "RecordingSurfacesTest")
371 skip(ALL, "test", ALL, "ReimportImageTextureWithMipLevels")
372 skip(ALL, "test", ALL, "ReplaceSurfaceBackendTexture")
373 skip(ALL, "test", ALL, "ResourceCacheCache")
374 skip(ALL, "test", ALL, "SaveLayerOrigin")
375 skip(ALL, "test", ALL, "ShaderTestNestedBlendsGanesh")
376 skip(ALL, "test", ALL, "ShaderTestNestedBlendsGraphite")
377 skip(ALL, "test", ALL, "SimplifyPaintTest")
378 skip(ALL, "test", ALL, "skbug6653")
379 skip(ALL, "test", ALL, "SkImage_makeNonTextureImage")
380 skip(ALL, "test", ALL, "SkipCopyTaskTest")
381 skip(ALL, "test", ALL, "SkipOpsTaskTest")
382 skip(ALL, "test", ALL, "SkColorSpaceXform_Ganesh")
383 skip(ALL, "test", ALL, "SkColorSpaceXform_Graphite")
384 skip(ALL, "test", ALL, "SkRuntimeBlender_Ganesh")
385 skip(ALL, "test", ALL, "SkRuntimeBlender_Graphite")
386 skip(ALL, "test", ALL, "SkRuntimeEffect") // knocks out a bunch
387 skip(ALL, "test", ALL, "SkRuntimeShaderImageFilter_GPU")
388 skip(ALL, "test", ALL, "SkRuntimeShader_TransformedCoords_Ganesh")
389 skip(ALL, "test", ALL, "SkRuntimeShader_TransformedCoords_Graphite")
390 skip(ALL, "test", ALL, "SkSLCross")
391 skip(ALL, "test", ALL, "SkSL") // knocks out a bunch
392 skip(ALL, "test", ALL, "SpecialImage_Gpu")
393 skip(ALL, "test", ALL, "SRGBReadWritePixels")
394 skip(ALL, "test", ALL, "SurfaceAsyncReadPixels")
395 skip(ALL, "test", ALL, "SurfaceBackendTextureTest")
396 skip(ALL, "test", ALL, "SurfaceClear_Gpu")
397 skip(ALL, "test", ALL, "SurfaceContextReadPixels")
398 skip(ALL, "test", ALL, "SurfaceContextWritePixelsMipped")
399 skip(ALL, "test", ALL, "SurfaceDrawContextTest")
400 skip(ALL, "test", ALL, "SurfaceResolveTest")
401 skip(ALL, "test", ALL, "SurfaceSemaphores")
402 skip(ALL, "test", ALL, "TestSweepGradientZeroXGanesh")
403 skip(ALL, "test", ALL, "TiledDrawCacheTest_Ganesh")
404 skip(ALL, "test", ALL, "TiledDrawCacheTest_Graphite")
405 skip(ALL, "test", ALL, "UnpremulTextureImage")
406 skip(ALL, "test", ALL, "VkBackendAllocationTest")
407 skip(ALL, "test", ALL, "VkDrawableTest")
408 skip(ALL, "test", ALL, "VkDrawableImportTest")
409 skip(ALL, "test", ALL, "VkYCbcrSampler_DrawImageWithYcbcrSampler")
410 skip(ALL, "test", ALL, "WritePixels_Gpu")
411 skip(ALL, "test", ALL, "WritePixels_Graphite")
412 skip(ALL, "test", ALL, "WritePixelsMSAA_Gpu")
413 skip(ALL, "test", ALL, "WritePixelsNonTexture_Gpu")
414 skip(ALL, "test", ALL, "WritePixelsNonTextureMSAA_Gpu")
415 skip(ALL, "test", ALL, "WritePixelsPendingIO")
416 skip(ALL, "test", ALL, "XfermodeImageFilterCroppedInput_Gpu")
417
418 // These unit tests require some debugging (skbug.com/319229312)
419 skip(ALL, "test", ALL, "GrTextBlobMoveAround") // a lot of AllocImageMemory failures
420 skip(ALL, "test", ALL, "Programs") // Perlin Noise FP violating protected constraints
421 skip(ALL, "test", ALL, "Protected_SmokeTest") // Ganesh/Vulkan disallow creating Unprotected Image
422 skip(ALL, "test", ALL, "ReadOnlyTexture") // crashes device!
423 skip(ALL, "test", ALL, "RepeatedClippedBlurTest") // blurs not creating expected # of resources
424 skip(ALL, "test", ALL, "CharacterizationVkSCBnessTest") // DDL Validation failure for Vk SCBs
425
426 // These unit tests are very slow and probably don't benefit from Protected testing
427 skip(ALL, "test", ALL, "PaintParamsKeyTest")
428 skip(ALL, "test", ALL, "ProcessorCloneTest")
429 skip(ALL, "test", ALL, "ProcessorOptimizationValidationTest")
430 skip(ALL, "test", ALL, "TextBlobAbnormal")
431 skip(ALL, "test", ALL, "TextBlobStressAbnormal")
432
433 // b/399342221
434 skip(ALL, "test", ALL, "UserDefinedStableKeyTest")
435 }
436
437 // The Tegra3 doesn't support MSAA
438 if b.GPU("Tegra3") ||
439 // We aren't interested in fixing msaa bugs on current iOS devices.
440 b.Model("iPad4", "iPadPro", "iPhone7") ||
441 // skbug.com/40036997
442 b.GPU("IntelHD530", "IntelIris540") {
443 configs = removeContains(configs, "msaa")
444 }
445
446 // We want to test both the OpenGL config and the GLES config on Linux Intel:
447 // GL is used by Chrome, GLES is used by ChromeOS.
448 if b.MatchGpu("Intel") && b.IsLinux() {
449 configs = append(configs, "gles", "glesdft")
450 }
451
452 // The FailFlushTimeCallbacks tasks only run the 'gl' config
453 if b.ExtraConfig("FailFlushTimeCallbacks") {
454 configs = []string{"gl"}
455 }
456
457 // Graphite task *only* runs the gr*** configs
458 if b.ExtraConfig("Graphite") {
459 args = append(args, "--nogpu") // disable non-Graphite tests
460
461 // This gm is just meant for local debugging
462 skip(ALL, "test", ALL, "PaintParamsKeyTestReduced")
463
464 if b.ExtraConfig("Dawn") {
465 baseConfig := ""
466 if b.ExtraConfig("D3D11") {
467 baseConfig = "grdawn_d3d11"
468 } else if b.ExtraConfig("D3D12") {
469 baseConfig = "grdawn_d3d12"
470 } else if b.ExtraConfig("Metal") {
471 baseConfig = "grdawn_mtl"
472 } else if b.ExtraConfig("Vulkan") {
473 baseConfig = "grdawn_vk"
474 } else if b.ExtraConfig("GL") {
475 baseConfig = "grdawn_gl"
476 } else if b.ExtraConfig("GLES") {
477 baseConfig = "grdawn_gles"
478 }
479
480 configs = []string{baseConfig}
481
482 if b.ExtraConfig("FakeWGPU") {
483 args = append(args, "--neverYieldToWebGPU")
484 args = append(args, "--useWGPUTextureView")
485 }
486
487 // Shader doesn't compile
488 // https://skbug.com/40045181
489 skip(ALL, "gm", ALL, "runtime_intrinsics_matrix")
490 // Crashes and failures
491 // https://skbug.com/40045181
492 skip(ALL, "test", ALL, "BackendTextureTest")
493
494 if b.MatchOs("Win") {
495 // Enable MSAA tiling on Windows
496 args = append(args, "--internalMSAATileSize", "256")
497 }
498
499 if b.MatchOs("Win10") || b.MatchGpu("Adreno620", "MaliG78", "QuadroP400") {
500 // The Dawn Win10 and some Android/Linux device jobs OOMs (skbug.com/40045484, b/318725123)
501 skip(ALL, "test", ALL, "BigImageTest_Graphite")
502 }
503 if b.MatchGpu("Adreno620") {
504 // The Dawn Pixel5 device job fails one compute test (b/318725123)
505 skip(ALL, "test", ALL, "Compute_AtomicOperationsOverArrayAndStructTest")
506 }
507
508 if b.ExtraConfig("GL") || b.ExtraConfig("GLES") {
509 // These GMs currently have rendering issues in Dawn compat.
510 skip(ALL, "gm", ALL, "glyph_pos_n_s")
511 skip(ALL, "gm", ALL, "persptext")
512 skip(ALL, "gm", ALL, "persptext_minimal")
513 skip(ALL, "gm", ALL, "pictureshader_persp")
514 skip(ALL, "gm", ALL, "wacky_yuv_formats_frompixmaps")
515
516 // This GM is larger than Dawn compat's max texture size.
517 skip(ALL, "gm", ALL, "wacky_yuv_formats_domain")
518
519 // b/389701894 - The Dawn/GLES backend is hard crashing on this test
520 skip(ALL, "test", ALL, "ThreadedPipelineCompilePurgingTest")
521
522 // b/405970498 - The Dawn/GLES backend is failing these two tests
523 skip(ALL, "test", ALL, "ThreadedPipelinePrecompileCompileTest")
524 skip(ALL, "test", ALL, "ThreadedPipelinePrecompileCompilePurgingTest")
525
526 // b/425434638 - PaintParamsKeyTest failing on Release Dawn_GLES
527 skip(ALL, "test", ALL, "PaintParamsKeyTest")
528 }
529
530 if b.ExtraConfig("Vulkan") {
531 // b/425434638 - PaintParamsKeyTest failing on Release Dawn_Vulkan
532 skip(ALL, "test", ALL, "PaintParamsKeyTest")
533
534 if b.ExtraConfig("TSAN") {
535 // The TSAN_Graphite_Dawn_Vulkan job goes off into space on this test
536 skip(ALL, "test", ALL, "BigImageTest_Graphite")
537 // b/389706939 - Dawn/Vulkan reports a data race for LazyClearCountForTesting w/ TSAN
538 skip(ALL, "test", ALL, "ThreadedPipelineCompilePurgingTest")
539 }
540 }
541
542 if b.ExtraConfig("Metal") {
543 if b.ExtraConfig("TSAN") {
544 // b/389706939 - Dawn/Metal reports a data race for LazyClearCountForTesting w/ TSAN
545 skip(ALL, "test", ALL, "ThreadedPipelineCompilePurgingTest")
546 // The TSAN_Graphite_Dawn_Metal job seems to consistently get stuck on this unit test
547 skip(ALL, "test", ALL, "BigImageTest_Graphite")
548 }
549 }
550 } else if b.ExtraConfig("Native") {
551 if b.ExtraConfig("Metal") {
552 if b.ExtraConfig("TestPrecompile") {
553 configs = []string{"grmtltestprecompile"}
554 } else {
555 configs = []string{"grmtl"}
556 }
557
558 if b.GPU("IntelIrisPlus") {
559 // We get some 27/255 RGB diffs on the 45 degree
560 // rotation case on this device (skbug.com/40045482)
561 skip(ALL, "test", ALL, "BigImageTest_Graphite")
562 }
563 }
564 if b.ExtraConfig("Vulkan") {
565 if b.ExtraConfig("TestPrecompile") {
566 configs = []string{"grvktestprecompile"}
567 } else {
568 configs = []string{"grvk"}
569 }
570
571 // Couldn't readback
572 skip(ALL, "gm", ALL, "aaxfermodes")
573 // Could not instantiate texture proxy for UploadTask!
574 skip(ALL, "test", ALL, "BigImageTest_Graphite")
575 // Test failures
576 skip(ALL, "test", ALL, "PaintParamsKeyTest")
577 if b.MatchOs("Android") {
578 // Currently broken on Android Vulkan (skbug.com/310180104)
579 skip(ALL, "test", ALL, "ImageAsyncReadPixelsGraphite")
580 skip(ALL, "test", ALL, "SurfaceAsyncReadPixelsGraphite")
581 }
582
583 // b/380049954 Graphite Native Vulkan has a thread race issue
584 skip(ALL, "test", ALL, "ThreadedPipelinePrecompileCompileTest")
585 skip(ALL, "test", ALL, "ThreadedPipelinePrecompileCompilePurgingTest")
586 skip(ALL, "test", ALL, "ThreadedPipelinePrecompilePurgingTest")
587
588 if b.GPU("QuadroP400") || b.MatchOs("Ubuntu24.04") {
589 // Neither the nVidia driver on the P400s nor the Ubuntu24.04 driver
590 // correctly support pipeline caching control (i.e., they *never* return
591 // VK_PIPELINE_COMPILE_REQUIRED from CreateGraphicsPipelines)
592 skip(ALL, "test", ALL, "PersistentPipelineStorageTest")
593 }
594
595 if b.MatchOs("Win11") && b.GPU("RTX3060", "GTX1660", "IntelIrisXe", "IntelUHDGraphics770") {
596 // These GPUs are failing this test on Win11 (b/462240488)
597 skip(ALL, "test", ALL, "PersistentPipelineStorageTest")
598 }
599 if b.MatchOs("Win11") && b.GPU("IntelIrisXe", "IntelUHDGraphics770") {
600 // skbug.com/470073298
601 skip(ALL, "gm", ALL, "ycbcrimage")
602 }
603 }
604 }
605 } else {
606 if b.GPU("QuadroP400") && b.MatchOs("Ubuntu24.04") {
607 if b.ExtraConfig("Vulkan") {
608 // skbug.com/40045530
609 skip(ALL, "test", ALL, "VkYCbcrSampler_DrawImageWithYcbcrSampler")
610 } else {
611 // skbug.com/458193911
612 skip(ALL, "test", ALL, "SkRuntimeBlender_Ganesh")
613 }
614 }
615 if b.GPU("IntelUHDGraphics770") && b.Os("Win11") && b.ExtraConfig("Vulkan") {
616 // skbug.com/40045530
617 skip(ALL, "test", ALL, "VkYCbcrSampler_DrawImageWithYcbcrSampler")
618 }
619 }
620
621 // ANGLE bot *only* runs the angle ES3 configs
622 if b.ExtraConfig("ANGLE") {
623 if b.MatchOs("Win") {
624 configs = []string{"angle_d3d11_es3"}
625 if sampleCount > 0 {
626 configs = append(configs, fmt.Sprintf("angle_d3d11_es3_msaa%d", sampleCount))
627 configs = append(configs, fmt.Sprintf("angle_d3d11_es3_dmsaa"))
628 }
629 if b.Model("NUC5i7RYH") {
630 // skbug.com/40038570
631 skip(ALL, "test", ALL, "ProcessorCloneTest")
632 }
633 if b.MatchGpu("Intel") {
634 // Debug-ANGLE-All on Intel frequently timeout, and the FilterResult test suite
635 // produces many test cases, that are multiplied by the number of configs (of
636 // which ANGLE has many variations). There is not a lot of value gained by
637 // running these if they are the source of long 'dm' time on Xe hardware given
638 // many other tasks are executing them.
639 skip(ALL, "test", ALL, "FilterResult")
640 }
641 } else if b.MatchOs("Mac") {
642 configs = []string{"angle_mtl_es3"}
643
644 // anglebug.com/7245
645 skip("angle_mtl_es3", "gm", ALL, "runtime_intrinsics_common_es3")
646
647 if b.MatchGpu("AppleM") {
648 // M1 Macs fail this test for sRGB color types
649 // skbug.com/40044370
650 skip(ALL, "test", ALL, "TransferPixelsToTextureTest")
651 }
652 }
653 }
654
655 if b.Model("AndroidOne", "Nexus5", "Nexus7", "JioNext") {
656 // skbug.com/40040304
657 skip(ALL, "test", ALL, "ProcessorCloneTest")
658 skip(ALL, "test", ALL, "Programs")
659 skip(ALL, "test", ALL, "ProcessorOptimizationValidationTest")
660 }
661
662 if b.Model("GalaxyS20") {
663 // skbug.com/40041940
664 skip(ALL, "test", ALL, "ProcessorCloneTest")
665 }
666
667 if b.Model("MotoG73") {
668 // https://g-issues.skia.org/issues/370739986
669 skip(ALL, "test", ALL, "SkSLSwizzleIndexStore_Ganesh")
670 skip(ALL, "test", ALL, "SkSLMatrixScalarMath_Ganesh")
671 skip(ALL, "test", ALL, "SkSLMatrixOpEqualsES3_Ganesh")
672 skip(ALL, "test", ALL, "SkSLMatrixScalarNoOpFolding_Ganesh")
673
674 skip(ALL, "test", ALL, "SkSLIncrementDisambiguation_Ganesh")
675 skip(ALL, "test", ALL, "SkSLArrayFolding_Ganesh")
676 skip(ALL, "test", ALL, "SkSLIntrinsicModf_Ganesh")
677 }
678
679 if b.Model("MacMini8.1") && b.ExtraConfig("Metal") {
680 // https://g-issues.skia.org/issues/391573668
681 skip(ALL, "test", ALL, "SkSLIntrinsicAll_Graphite")
682 skip(ALL, "test", ALL, "SkSLIntrinsicAny_Graphite")
683 skip(ALL, "test", ALL, "SkSLIntrinsicNot_Graphite")
684 skip(ALL, "test", ALL, "SkSLIntrinsicMixFloatES3_Graphite")
685 skip(ALL, "test", ALL, "SkSLIntrinsicAll_Ganesh")
686 skip(ALL, "test", ALL, "SkSLIntrinsicAny_Ganesh")
687 skip(ALL, "test", ALL, "SkSLIntrinsicNot_Ganesh")
688 skip(ALL, "test", ALL, "SkSLIntrinsicMixFloatES3_Ganesh")
689 }
690
691 // skbug.com/40040327 - these devices render this test incorrectly
692 // when opList splitting reduction is enabled
693 if b.GPU() && b.ExtraConfig("Vulkan") && (b.GPU("RadeonR9M470X", "RadeonHD7770")) {
694 skip(ALL, "tests", ALL, "VkDrawableImportTest")
695 }
696 if b.ExtraConfig("Vulkan") && !b.ExtraConfig("Graphite") {
697 configs = []string{"vk"}
698 // MSAA doesn't work well on Intel GPUs chromium:527565, chromium:983926, skbug.com/40040308
699 // MSAA4 is not supported on the MotoG73
700 // "Configuration 'vkmsaa4' sample count 4 is not a supported sample count."
701 // In Ganesh we currently disable msaa on imagination GPUs. Newer GPUs
702 // probably support MSAA fine, but we currently don't plan on enabling
703 // MSAA at all for Ganesh to reduce correctness and performance churn on
704 // clients as we're trying to move away from Ganesh.
705 if !b.MatchGpu("Intel") && !b.Model("MotoG73") && !b.MatchGpu("IMG") {
706 configs = append(configs, "vkmsaa4")
707 }
708
709 // Temporarily limit the machines we test dynamic MSAA on.
710 if b.GPU("QuadroP400", "MaliG77") && !b.ExtraConfig("TSAN") {
711 configs = append(configs, "vkdmsaa")
712 }
713 }
714 if b.ExtraConfig("Metal") && !b.ExtraConfig("Graphite") {
715 configs = []string{"mtl"}
716 // MSAA doesn't work well on Intel GPUs chromium:527565, chromium:983926
717 if !b.MatchGpu("Intel") {
718 configs = append(configs, "mtlmsaa4")
719 }
720 }
721 if b.ExtraConfig("Slug") {
722 // Test slug drawing
723 configs = []string{"glslug", "glserializeslug", "glremoteslug"}
724 // glremoteslug does not handle layers right. Exclude the tests for now.
725 skip("glremoteslug", "gm", ALL, "rtif_distort")
726 skip("glremoteslug", "gm", ALL, "textfilter_image")
727 skip("glremoteslug", "gm", ALL, "textfilter_color")
728 skip("glremoteslug", "gm", ALL, "savelayerpreservelcdtext")
729 skip("glremoteslug", "gm", ALL, "typefacerendering_pfa")
730 skip("glremoteslug", "gm", ALL, "typefacerendering_pfb")
731 skip("glremoteslug", "gm", ALL, "typefacerendering")
732 }
733 if b.ExtraConfig("Direct3D") {
734 configs = []string{"d3d"}
735 }
736
737 // Test 1010102 on our Linux/NVIDIA tasks and the persistent cache config
738 // on the GL tasks.
739 if b.GPU("QuadroP400") && !b.ExtraConfig("PreAbandonGpuContext") && !b.ExtraConfig("TSAN") && b.IsLinux() &&
740 !b.ExtraConfig("FailFlushTimeCallbacks") && !b.ExtraConfig("Graphite") {
741 if b.ExtraConfig("Vulkan") {
742 configs = append(configs, "vk1010102")
743 // Decoding transparent images to 1010102 just looks bad
744 skip("vk1010102", "image", ALL, ALL)
745 } else {
746 configs = append(configs, "gl1010102", "gltestpersistentcache", "gltestglslcache", "gltestprecompile")
747 // Decoding transparent images to 1010102 just looks bad
748 skip("gl1010102", "image", ALL, ALL)
749 // These tests produce slightly different pixels run to run on NV.
750 skip("gltestpersistentcache", "gm", ALL, "atlastext")
751 skip("gltestpersistentcache", "gm", ALL, "dftext")
752 skip("gltestpersistentcache", "gm", ALL, "glyph_pos_h_b")
753 skip("gltestpersistentcache", "gm", ALL, "glyph_pos_h_f")
754 skip("gltestpersistentcache", "gm", ALL, "glyph_pos_n_f")
755 skip("gltestglslcache", "gm", ALL, "atlastext")
756 skip("gltestglslcache", "gm", ALL, "dftext")
757 skip("gltestglslcache", "gm", ALL, "glyph_pos_h_b")
758 skip("gltestglslcache", "gm", ALL, "glyph_pos_h_f")
759 skip("gltestglslcache", "gm", ALL, "glyph_pos_n_f")
760 skip("gltestprecompile", "gm", ALL, "atlastext")
761 skip("gltestprecompile", "gm", ALL, "dftext")
762 skip("gltestprecompile", "gm", ALL, "glyph_pos_h_b")
763 skip("gltestprecompile", "gm", ALL, "glyph_pos_h_f")
764 skip("gltestprecompile", "gm", ALL, "glyph_pos_n_f")
765 // Tessellation shaders do not yet participate in the persistent cache.
766 skip("gltestpersistentcache", "gm", ALL, "tessellation")
767 skip("gltestglslcache", "gm", ALL, "tessellation")
768 skip("gltestprecompile", "gm", ALL, "tessellation")
769 }
770 }
771
772 // We also test the SkSL precompile config on Pixel2XL as a representative
773 // Android device - this feature is primarily used by Flutter.
774 if b.Model("Pixel2XL") && !b.ExtraConfig("Vulkan") {
775 configs = append(configs, "glestestprecompile")
776 }
777
778 // Test SkSL precompile on iPhone 8 as representative iOS device
779 if b.Model("iPhone8") && b.ExtraConfig("Metal") {
780 configs = append(configs, "mtltestprecompile")
781 // avoid tests that can generate slightly different pixels per run
782 skip("mtltestprecompile", "gm", ALL, "atlastext")
783 skip("mtltestprecompile", "gm", ALL, "circular_arcs_hairline")
784 skip("mtltestprecompile", "gm", ALL, "dashcircle")
785 skip("mtltestprecompile", "gm", ALL, "dftext")
786 skip("mtltestprecompile", "gm", ALL, "encode-platform")
787 skip("mtltestprecompile", "gm", ALL, "fontmgr_bounds")
788 skip("mtltestprecompile", "gm", ALL, "fontmgr_bounds_1_-0.25")
789 skip("mtltestprecompile", "gm", ALL, "glyph_pos_h_b")
790 skip("mtltestprecompile", "gm", ALL, "glyph_pos_h_f")
791 skip("mtltestprecompile", "gm", ALL, "glyph_pos_n_f")
792 skip("mtltestprecompile", "gm", ALL, "persp_images")
793 skip("mtltestprecompile", "gm", ALL, "ovals")
794 skip("mtltestprecompile", "gm", ALL, "roundrects")
795 skip("mtltestprecompile", "gm", ALL, "shadow_utils_occl")
796 skip("mtltestprecompile", "gm", ALL, "strokedlines")
797 skip("mtltestprecompile", "gm", ALL, "strokerect")
798 skip("mtltestprecompile", "gm", ALL, "strokes3")
799 skip("mtltestprecompile", "gm", ALL, "texel_subset_linear_mipmap_nearest_down")
800 skip("mtltestprecompile", "gm", ALL, "texel_subset_linear_mipmap_linear_down")
801 skip("mtltestprecompile", "gm", ALL, "textblobmixedsizes_df")
802 skip("mtltestprecompile", "gm", ALL, "yuv420_odd_dim_repeat")
803 skip("mtltestprecompile", "svg", ALL, "A_large_blank_world_map_with_oceans_marked_in_blue.svg")
804 skip("mtltestprecompile", "svg", ALL, "Chalkboard.svg")
805 skip("mtltestprecompile", "svg", ALL, "Ghostscript_Tiger.svg")
806 skip("mtltestprecompile", "svg", ALL, "Seal_of_American_Samoa.svg")
807 skip("mtltestprecompile", "svg", ALL, "Seal_of_Illinois.svg")
808 skip("mtltestprecompile", "svg", ALL, "cartman.svg")
809 skip("mtltestprecompile", "svg", ALL, "desk_motionmark_paths.svg")
810 skip("mtltestprecompile", "svg", ALL, "rg1024_green_grapes.svg")
811 skip("mtltestprecompile", "svg", ALL, "shapes-intro-02-f.svg")
812 skip("mtltestprecompile", "svg", ALL, "tiger-8.svg")
813 }
814 // Test reduced shader mode on iPhone 11 as representative iOS device
815 if b.Model("iPhone11") && b.ExtraConfig("Metal") && !b.ExtraConfig("Graphite") {
816 configs = append(configs, "mtlreducedshaders")
817 }
818
819 if b.Model(DONT_REDUCE_OPS_TASK_SPLITTING_MODELS...) {
820 args = append(args, "--dontReduceOpsTaskSplitting", "true")
821 }
822
823 // Test reduceOpsTaskSplitting fallback when over budget.
824 if b.Model("NUC7i5BNK") && b.ExtraConfig("ASAN") {
825 args = append(args, "--gpuResourceCacheLimit", "16777216")
826 }
827
828 // Test rendering to wrapped dsts on a few tasks
829 if b.ExtraConfig("BonusConfigs") {
830 configs = []string{"glbetex", "glbert", "glreducedshaders", "glr8"}
831 }
832
833 if b.Os("ChromeOS") {
834 // Just run GLES for now - maybe add gles_msaa4 in the future
835 configs = []string{"gles"}
836 }
837
838 // Test GPU tessellation path renderer.
839 if b.ExtraConfig("GpuTess") {
840 configs = []string{glPrefix + "msaa4"}
841 // Use fixed count tessellation path renderers as much as possible.
842 args = append(args, "--pr", "atlas", "tess")
843 }
844
845 // DDL is a GPU-only feature
846 if b.ExtraConfig("DDL1") {
847 // This bot generates comparison images for the large skps and the gms
848 configs = filter(configs, "gl", "vk", "mtl")
849 args = append(args, "--skpViewportSize", "2048")
850 }
851 if b.ExtraConfig("DDL3") {
852 // This bot generates the real ddl images for the large skps and the gms
853 configs = suffix(filter(configs, "gl", "vk", "mtl"), "ddl")
854 args = append(args, "--skpViewportSize", "2048")
855 args = append(args, "--gpuThreads", "0")
856 }
857 }
858
859 if b.MatchExtraConfig("ColorSpaces") {
860 // Here we're going to generate a bunch of configs with the format:
861 // <colorspace> <backend> <targetFormat>
862 // Where: <colorspace> is one of: "", "linear-", "narrow-", p3-", "rec2020-", "srgb2-"
863 // <backend> is one of: "gl, "gles", "mtl", "vk"
864 // their "gr" prefixed versions
865 // and "" (for raster)
866 // <targetFormat> is one of: "f16", { "" (for gpus) or "rgba" (for raster) }
867 //
868 // We also add on two configs with the format:
869 // narrow-<backend>f16norm
870 // linear-<backend>srgba
871 colorSpaces := []string{"", "linear-", "narrow-", "p3-", "rec2020-", "srgb2-"}
872
873 backendStr := ""
874 if b.GPU() {
875 if b.ExtraConfig("Graphite") {
876 if b.ExtraConfig("GL") {
877 backendStr = "grgl"
878 } else if b.ExtraConfig("GLES") {
879 backendStr = "grgles"
880 } else if b.ExtraConfig("Metal") {
881 backendStr = "grmtl"
882 } else if b.ExtraConfig("Vulkan") {
883 backendStr = "grvk"
884 }
885 } else {
886 if b.ExtraConfig("GL") {
887 backendStr = "gl"
888 } else if b.ExtraConfig("GLES") {
889 backendStr = "gles"
890 } else if b.ExtraConfig("Metal") {
891 backendStr = "mtl"
892 } else if b.ExtraConfig("Vulkan") {
893 backendStr = "vk"
894 }
895 }
896 }
897
898 targetFormats := []string{"f16"}
899 if b.GPU() {
900 targetFormats = append(targetFormats, "")
901 } else {
902 targetFormats = append(targetFormats, "rgba")
903 }
904
905 configs = []string{}
906
907 for _, cs := range colorSpaces {
908 for _, tf := range targetFormats {
909 configs = append(configs, cs+backendStr+tf)
910 }
911 }
912
913 configs = append(configs, "narrow-"+backendStr+"f16norm")
914 configs = append(configs, "linear-"+backendStr+"srgba")
915 }
916
917 // Sharding.
918 tf := b.Parts["test_filter"]
919 if tf != "" && tf != "All" {
920 // Expected format: shard_XX_YY
921 split := strings.Split(tf, ALL)
922 if len(split) == 3 {
923 args = append(args, "--shard", split[1])
924 args = append(args, "--shards", split[2])
925 } else {
926 glog.Fatalf("Invalid task name - bad shards: %s", tf)
927 }
928 }
929
930 args = append(args, "--config")
931 args = append(args, configs...)
932
933 removeFromArgs := func(arg string) {
934 args = remove(args, arg)
935 }
936
937 // Run tests, gms, and image decoding tests everywhere.
938 args = append(args, "--src", "tests", "gm", "image", "lottie", "colorImage", "svg", "skp")
939 if b.GPU() {
940 // Don't run the "svgparse_*" svgs on GPU.
941 skip(ALL, "svg", ALL, "svgparse_")
942 } else if b.Name == "Test-Debian10-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN" {
943 // Only run the CPU SVGs on 8888.
944 skip("~8888", "svg", ALL, ALL)
945 } else {
946 // On CPU SVGs we only care about parsing. Only run them on the above bot.
947 removeFromArgs("svg")
948 }
949
950 // Eventually I'd like these to pass, but for now just skip 'em.
951 if b.ExtraConfig("SK_FORCE_RASTER_PIPELINE_BLITTER") {
952 removeFromArgs("tests")
953 }
954
955 if b.ExtraConfig("NativeFonts") { // images won't exercise native font integration :)
956 removeFromArgs("image")
957 removeFromArgs("colorImage")
958 }
959
960 if b.MatchExtraConfig("Graphite") {
961 removeFromArgs("image")
962 removeFromArgs("lottie")
963 removeFromArgs("colorImage")
964 removeFromArgs("svg")
965 }
966
967 if b.MatchExtraConfig("Fontations") {
968 // The only fontations code is exercised via gms and tests
969 removeFromArgs("image")
970 removeFromArgs("lottie")
971 removeFromArgs("colorImage")
972 removeFromArgs("svg")
973 }
974
975 // Remove skps for all tasks except for a select few. On tasks that will run SKPs remove some of
976 // their other tests.
977 if b.MatchExtraConfig("DDL", "PDF") {
978 // The DDL and PDF tasks just render the large skps and the gms
979 removeFromArgs("tests")
980 removeFromArgs("image")
981 removeFromArgs("colorImage")
982 removeFromArgs("svg")
983 } else if b.MatchExtraConfig("OldestSupportedSkpVersion") {
984 // The OldestSupportedSkpVersion bot only renders skps.
985 removeFromArgs("tests")
986 removeFromArgs("gm")
987 removeFromArgs("image")
988 removeFromArgs("colorImage")
989 removeFromArgs("svg")
990 } else if b.MatchExtraConfig("FailFlushTimeCallbacks") {
991 // The FailFlushTimeCallbacks bot only runs skps, gms and svgs
992 removeFromArgs("tests")
993 removeFromArgs("image")
994 removeFromArgs("colorImage")
995 } else if b.ExtraConfig("Protected") {
996 // Currently the Protected jobs only run the unit tests
997 removeFromArgs("gm")
998 removeFromArgs("image")
999 removeFromArgs("lottie")
1000 removeFromArgs("colorImage")
1001 removeFromArgs("svg")
1002 removeFromArgs("skp")
1003 } else {
1004 // No other tasks render the .skps.
1005 removeFromArgs("skp")
1006 }
1007
1008 if b.ExtraConfig("Lottie") {
1009 // Only run the lotties on Lottie tasks.
1010 removeFromArgs("tests")
1011 removeFromArgs("gm")
1012 removeFromArgs("image")
1013 removeFromArgs("colorImage")
1014 removeFromArgs("svg")
1015 removeFromArgs("skp")
1016 } else {
1017 removeFromArgs("lottie")
1018 }
1019
1020 if b.ExtraConfig("TSAN") {
1021 // skbug.com/40042212
1022 removeFromArgs("svg")
1023 // skbug.com/40043998 avoid OOM on
1024 // Test-Ubuntu18-Clang-Golo-GPU-QuadroP400-x86_64-Release-All-TSAN_Vulkan
1025 // Avoid lots of spurious TSAN failures on
1026 // Test-Debian11-Clang-NUC11TZi5-GPU-IntelIrisXe-x86_64-Release-All-TSAN_Vulkan
1027 // Test-Debian11-Clang-NUC11TZi5-GPU-IntelIrisXe-x86_64-Release-All-DDL3_TSAN_Vulkan
1028 if b.Name == "Test-Ubuntu18-Clang-Golo-GPU-QuadroP400-x86_64-Release-All-TSAN_Vulkan" ||
1029 b.Name == "Test-Debian11-Clang-NUC11TZi5-GPU-IntelIrisXe-x86_64-Release-All-TSAN_Vulkan" ||
1030 b.Name == "Test-Debian11-Clang-NUC11TZi5-GPU-IntelIrisXe-x86_64-Release-All-DDL3_TSAN_Vulkan" {
1031 skip("_", "test", "_", "_")
1032 }
1033 }
1034
1035 // TODO: ???
1036 skip("f16", ALL, ALL, "dstreadshuffle")
1037
1038 // --src image --config r8 means "decode into R8", which isn't supported.
1039 skip("r8", "image", ALL, ALL)
1040 skip("r8", "colorImage", ALL, ALL)
1041
1042 if b.Model("TecnoSpark3Pro", "Wembley") {
1043 // skbug.com/40040743
1044 skip(ALL, "test", ALL, "InitialTextureClear")
1045 }
1046
1047 if b.Model("Wembley", "JioNext") {
1048 // These tests run forever on the Wembley.
1049 skip(ALL, "gm", ALL, "async_rescale_and_read")
1050 }
1051
1052 if b.Model("Wembley") {
1053 // These tests run forever or use too many resources on the Wembley.
1054 skip(ALL, "gm", ALL, "wacky_yuv_formats")
1055 skip(ALL, "gm", ALL, "wacky_yuv_formats_cs")
1056 skip(ALL, "gm", ALL, "wacky_yuv_formats_cubic")
1057 skip(ALL, "gm", ALL, "wacky_yuv_formats_domain")
1058 skip(ALL, "gm", ALL, "wacky_yuv_formats_fromimages")
1059 skip(ALL, "gm", ALL, "wacky_yuv_formats_frompixmaps")
1060 skip(ALL, "gm", ALL, "wacky_yuv_formats_imggen")
1061 skip(ALL, "gm", ALL, "wacky_yuv_formats_limited")
1062 skip(ALL, "gm", ALL, "wacky_yuv_formats_limited_cs")
1063 skip(ALL, "gm", ALL, "wacky_yuv_formats_limited_fromimages")
1064 }
1065
1066 if b.Os("iOS") {
1067 skip(glPrefix, "skp", ALL, ALL)
1068 }
1069
1070 if b.MatchOs("Mac", "iOS") {
1071 // CG fails on questionable bmps
1072 skip(ALL, "image", "gen_platf", "rgba32abf.bmp")
1073 skip(ALL, "image", "gen_platf", "rgb24prof.bmp")
1074 skip(ALL, "image", "gen_platf", "rgb24lprof.bmp")
1075 skip(ALL, "image", "gen_platf", "8bpp-pixeldata-cropped.bmp")
1076 skip(ALL, "image", "gen_platf", "4bpp-pixeldata-cropped.bmp")
1077 skip(ALL, "image", "gen_platf", "32bpp-pixeldata-cropped.bmp")
1078 skip(ALL, "image", "gen_platf", "24bpp-pixeldata-cropped.bmp")
1079
1080 // CG has unpredictable behavior on this questionable gif
1081 // It's probably using uninitialized memory
1082 skip(ALL, "image", "gen_platf", "frame_larger_than_image.gif")
1083
1084 // CG has unpredictable behavior on incomplete pngs
1085 // skbug.com/40036984
1086 skip(ALL, "image", "gen_platf", "inc0.png")
1087 skip(ALL, "image", "gen_platf", "inc1.png")
1088 skip(ALL, "image", "gen_platf", "inc2.png")
1089 skip(ALL, "image", "gen_platf", "inc3.png")
1090 skip(ALL, "image", "gen_platf", "inc4.png")
1091 skip(ALL, "image", "gen_platf", "inc5.png")
1092 skip(ALL, "image", "gen_platf", "inc6.png")
1093 skip(ALL, "image", "gen_platf", "inc7.png")
1094 skip(ALL, "image", "gen_platf", "inc8.png")
1095 skip(ALL, "image", "gen_platf", "inc9.png")
1096 skip(ALL, "image", "gen_platf", "inc10.png")
1097 skip(ALL, "image", "gen_platf", "inc11.png")
1098 skip(ALL, "image", "gen_platf", "inc12.png")
1099 skip(ALL, "image", "gen_platf", "inc13.png")
1100 skip(ALL, "image", "gen_platf", "inc14.png")
1101 skip(ALL, "image", "gen_platf", "incInterlaced.png")
1102
1103 // These images fail after Mac 10.13.1 upgrade.
1104 skip(ALL, "image", "gen_platf", "incInterlaced.gif")
1105 skip(ALL, "image", "gen_platf", "inc1.gif")
1106 skip(ALL, "image", "gen_platf", "inc0.gif")
1107 skip(ALL, "image", "gen_platf", "butterfly.gif")
1108 }
1109
1110 // WIC fails on questionable bmps
1111 if b.MatchOs("Win") {
1112 skip(ALL, "image", "gen_platf", "pal8os2v2.bmp")
1113 skip(ALL, "image", "gen_platf", "pal8os2v2-16.bmp")
1114 skip(ALL, "image", "gen_platf", "rgba32abf.bmp")
1115 skip(ALL, "image", "gen_platf", "rgb24prof.bmp")
1116 skip(ALL, "image", "gen_platf", "rgb24lprof.bmp")
1117 skip(ALL, "image", "gen_platf", "8bpp-pixeldata-cropped.bmp")
1118 skip(ALL, "image", "gen_platf", "4bpp-pixeldata-cropped.bmp")
1119 skip(ALL, "image", "gen_platf", "32bpp-pixeldata-cropped.bmp")
1120 skip(ALL, "image", "gen_platf", "24bpp-pixeldata-cropped.bmp")
1121 if b.Arch("x86_64") && b.CPU() {
1122 // This GM triggers a SkSmallAllocator assert.
1123 skip(ALL, "gm", ALL, "composeshader_bitmap")
1124 }
1125 }
1126
1127 if !b.MatchOs("Win", "Debian11", "Ubuntu18") || b.GPU("IntelIris655", "IntelIris540") {
1128 // This test requires a decent max texture size so just run it on the desktops.
1129 // The OS list should include Mac but Mac10.13 doesn't work correctly.
1130 // The IntelIris655 and IntelIris540 GPUs don't work correctly in the Vk backend
1131 skip(ALL, "test", ALL, "BigImageTest_Ganesh")
1132 }
1133
1134 if b.MatchOs("Win", "Mac") {
1135 // WIC and CG fail on arithmetic jpegs
1136 skip(ALL, "image", "gen_platf", "testimgari.jpg")
1137 // More questionable bmps that fail on Mac, too. skbug.com/40038213
1138 skip(ALL, "image", "gen_platf", "rle8-height-negative.bmp")
1139 skip(ALL, "image", "gen_platf", "rle4-height-negative.bmp")
1140 }
1141
1142 if b.MatchOs("Mac14") {
1143 // These images are very large
1144 skip(ALL, "image", "gen_platf", "rgb24largepal.bmp")
1145 skip(ALL, "image", "gen_platf", "pal8oversizepal.bmp")
1146
1147 if b.ExtraConfig("ANGLE") && b.MatchGpu("IntelUHDGraphics630") {
1148 // b/405918638
1149 skip(ALL, "tests", ALL, "TransferPixelsToTextureTest")
1150 }
1151 }
1152
1153 // These PNGs have CRC errors. The platform generators seem to draw
1154 // uninitialized memory without reporting an error, so skip them to
1155 // avoid lots of images on Gold.
1156 skip(ALL, "image", "gen_platf", "error")
1157
1158 if b.MatchOs("Android") || b.Os("iOS") {
1159 // This test crashes the N9 (perhaps because of large malloc/frees). It also
1160 // is fairly slow and not platform-specific. So we just disable it on all of
1161 // Android and iOS. skbug.com/40036610
1162 skip(ALL, "test", ALL, "GrStyledShape")
1163 }
1164
1165 if internalHardwareLabel == "5" {
1166 // http://b/118312149#comment9
1167 skip(ALL, "test", ALL, "SRGBReadWritePixels")
1168 }
1169
1170 // skbug.com/40035245
1171 badSerializeGMs := []string{
1172 "strict_constraint_batch_no_red_allowed", // skbug.com/40041632
1173 "strict_constraint_no_red_allowed", // skbug.com/40041632
1174 "fast_constraint_red_is_allowed", // skbug.com/40041632
1175 "c_gms",
1176 "colortype",
1177 "colortype_xfermodes",
1178 "drawfilter",
1179 "fontmgr_bounds_0.75_0",
1180 "fontmgr_bounds_1_-0.25",
1181 "fontmgr_bounds",
1182 "fontmgr_match",
1183 "fontmgr_iter",
1184 "imagemasksubset",
1185 "wacky_yuv_formats_domain",
1186 "imagemakewithfilter",
1187 "imagemakewithfilter_crop",
1188 "imagemakewithfilter_crop_ref",
1189 "imagemakewithfilter_ref",
1190 "imagefilterstransformed",
1191 }
1192
1193 // skbug.com/40036770
1194 badSerializeGMs = append(badSerializeGMs,
1195 "bitmapfilters",
1196 "bitmapshaders",
1197 "convex_poly_clip",
1198 "extractalpha",
1199 "filterbitmap_checkerboard_32_32_g8",
1200 "filterbitmap_image_mandrill_64",
1201 "shadows",
1202 "simpleaaclip_aaclip",
1203 )
1204
1205 // skbug.com/40036776
1206 badSerializeGMs = append(badSerializeGMs,
1207 "composeshader_bitmap",
1208 "scaled_tilemodes_npot",
1209 "scaled_tilemodes",
1210 )
1211
1212 // skbug.com/40036988
1213 badSerializeGMs = append(badSerializeGMs, "typefacerendering_pfaMac")
1214 // skbug.com/40037140
1215 badSerializeGMs = append(badSerializeGMs, "parsedpaths")
1216
1217 // these use a custom image generator which doesn't serialize
1218 badSerializeGMs = append(badSerializeGMs, "ImageGeneratorExternal_rect")
1219 badSerializeGMs = append(badSerializeGMs, "ImageGeneratorExternal_shader")
1220
1221 // skbug.com/40037391
1222 badSerializeGMs = append(badSerializeGMs, "shadow_utils")
1223 badSerializeGMs = append(badSerializeGMs, "graphitestart")
1224
1225 // skbug.com/40039190
1226 badSerializeGMs = append(badSerializeGMs, "persp_images")
1227
1228 // Not expected to round trip encoding/decoding.
1229 badSerializeGMs = append(badSerializeGMs, "all_bitmap_configs")
1230 badSerializeGMs = append(badSerializeGMs, "makecolorspace")
1231 badSerializeGMs = append(badSerializeGMs, "readpixels")
1232 badSerializeGMs = append(badSerializeGMs, "draw_image_set_rect_to_rect")
1233 badSerializeGMs = append(badSerializeGMs, "draw_image_set_alpha_only")
1234 badSerializeGMs = append(badSerializeGMs, "compositor_quads_shader")
1235 badSerializeGMs = append(badSerializeGMs, "wacky_yuv_formats_qtr")
1236 badSerializeGMs = append(badSerializeGMs, "runtime_effect_image")
1237 badSerializeGMs = append(badSerializeGMs, "ctmpatheffect")
1238 badSerializeGMs = append(badSerializeGMs, "image_out_of_gamut")
1239
1240 // This GM forces a path to be convex. That property doesn't survive
1241 // serialization.
1242 badSerializeGMs = append(badSerializeGMs, "analytic_antialias_convex")
1243
1244 for _, test := range badSerializeGMs {
1245 skip("serialize-8888", "gm", ALL, test)
1246 }
1247
1248 // We skip these to avoid out-of-memory failures.
1249 if b.MatchOs("Win", "Android") {
1250 for _, test := range []string{"verylargebitmap", "verylarge_picture_image"} {
1251 skip("serialize-8888", "gm", ALL, test)
1252 }
1253 }
1254 if b.MatchOs("Mac") && b.CPU() {
1255 // skbug.com/40038221
1256 skip("pic-8888", "gm", ALL, "encode-platform")
1257 skip("serialize-8888", "gm", ALL, "encode-platform")
1258 }
1259
1260 // skbug.com/40045485 -- images are visibly identical, not interested in diagnosing non-determinism here
1261 skip("pic-8888", "gm", ALL, "perlinnoise_layered")
1262 skip("serialize-8888", "gm", ALL, "perlinnoise_layered")
1263 if b.GPU("IntelIrisXe") && !b.ExtraConfig("Vulkan") {
1264 skip(ALL, "gm", ALL, "perlinnoise_layered") // skbug.com/40045485
1265 }
1266
1267 if b.GPU("IntelIrisXe") && b.MatchOs("Win") && b.ExtraConfig("Vulkan") {
1268 skip(ALL, "tests", ALL, "VkYCbcrSampler_DrawImageWithYcbcrSampler") // skbug.com/40045530
1269 }
1270
1271 // skbug.com/40035927
1272 skip("pic-8888", "gm", ALL, "drawfilter")
1273
1274 // skbug.com/40035857
1275 for _, test := range []string{"image-cacherator-from-picture",
1276 "image-cacherator-from-raster",
1277 "image-cacherator-from-ctable"} {
1278 skip("pic-8888", "gm", ALL, test)
1279 skip("serialize-8888", "gm", ALL, test)
1280 }
1281
1282 // GM that requires raster-backed canvas
1283 for _, test := range []string{"complexclip4_bw", "complexclip4_aa", "p3",
1284 "async_rescale_and_read_text_up_large",
1285 "async_rescale_and_read_text_up",
1286 "async_rescale_and_read_text_down",
1287 "async_rescale_and_read_dog_up",
1288 "async_rescale_and_read_dog_down",
1289 "async_rescale_and_read_rose",
1290 "async_rescale_and_read_no_bleed",
1291 "async_rescale_and_read_alpha_type",
1292 "blurrect_compare", // GM requires canvas->makeSurface() to return a valid surface.
1293 "rrect_blurs"} {
1294 skip("pic-8888", "gm", ALL, test)
1295 skip("serialize-8888", "gm", ALL, test)
1296 }
1297
1298 // Extensions for RAW images
1299 r := []string{
1300 "arw", "cr2", "dng", "nef", "nrw", "orf", "raf", "rw2", "pef", "srw",
1301 "ARW", "CR2", "DNG", "NEF", "NRW", "ORF", "RAF", "RW2", "PEF", "SRW",
1302 }
1303
1304 // skbug.com/40035846
1305 // Skip RAW images (and a few large PNGs) on GPU tasks
1306 // until we can resolve failures.
1307 if b.GPU() {
1308 skip(ALL, "image", ALL, "interlaced1.png")
1309 skip(ALL, "image", ALL, "interlaced2.png")
1310 skip(ALL, "image", ALL, "interlaced3.png")
1311 for _, rawExt := range r {
1312 skip(ALL, "image", ALL, "."+rawExt)
1313 }
1314 }
1315
1316 if b.Model("Nexus5", "Nexus5x", "JioNext") && b.GPU() {
1317 // skbug.com/40037071
1318 skip(ALL, "gm", ALL, "encode-platform")
1319 }
1320
1321 if b.Model("AndroidOne") && b.GPU() { // skbug.com/40035852, skbug.com/40035858, skbug.com/40035849, skbug.com/40035859, skbug.com/40042506
1322 skip(ALL, "gm", ALL, "bigblurs")
1323 skip(ALL, "gm", ALL, "strict_constraint_no_red_allowed")
1324 skip(ALL, "gm", ALL, "fast_constraint_red_is_allowed")
1325 skip(ALL, "gm", ALL, "dropshadowimagefilter")
1326 skip(ALL, "gm", ALL, "filterfastbounds")
1327 skip(glPrefix, "gm", ALL, "imageblurtiled")
1328 skip(ALL, "gm", ALL, "imagefiltersclipped")
1329 skip(ALL, "gm", ALL, "imagefiltersscaled")
1330 skip(ALL, "gm", ALL, "imageresizetiled")
1331 skip(ALL, "gm", ALL, "matrixconvolution")
1332 skip(ALL, "gm", ALL, "strokedlines")
1333 skip(ALL, "gm", ALL, "runtime_intrinsics_matrix")
1334 if sampleCount > 0 {
1335 glMsaaConfig := fmt.Sprintf("%smsaa%d", glPrefix, sampleCount)
1336 skip(glMsaaConfig, "gm", ALL, "imageblurtiled")
1337 skip(glMsaaConfig, "gm", ALL, "imagefiltersbase")
1338 }
1339 }
1340
1341 // b/416733454
1342 if (b.Model("AndroidOne") || b.Model("JioNext") || b.Model("GalaxyS7_G930FD")) && b.GPU() {
1343 skip(ALL, "svg", ALL, "desk_motionmark_paths.svg")
1344 }
1345
1346 // b/296440036
1347 // disable broken tests on Adreno 5/6xx Vulkan or API30
1348 if b.MatchGpu("Adreno[56]") && (b.ExtraConfig("Vulkan") || b.ExtraConfig("API30")) {
1349 skip(ALL, "tests", ALL, "ImageAsyncReadPixels_Renderable_BottomLeft")
1350 skip(ALL, "tests", ALL, "ImageAsyncReadPixels_Renderable_TopLeft")
1351 skip(ALL, "tests", ALL, "ImageAsyncReadPixels_NonRenderable_BottomLeft")
1352 skip(ALL, "tests", ALL, "ImageAsyncReadPixels_NonRenderable_TopLeft")
1353 skip(ALL, "tests", ALL, "SurfaceAsyncReadPixels")
1354 }
1355
1356 if b.MatchGpu("Adreno[56]") && b.ExtraConfig("Vulkan") {
1357 skip(ALL, "gm", ALL, "mesh_with_image")
1358 skip(ALL, "gm", ALL, "mesh_with_paint_color")
1359 skip(ALL, "gm", ALL, "mesh_with_paint_image")
1360 }
1361
1362 if b.MatchGpu("Mali400") {
1363 skip(ALL, "tests", ALL, "BlendRequiringDstReadWithLargeCoordinates")
1364 skip(ALL, "tests", ALL, "SkSLCross") // despite the name, it's not in SkSLTest.cpp
1365 }
1366
1367 if b.MatchOs("Mac") && (b.GPU("IntelIrisPlus") || b.GPU("IntelHD6000")) &&
1368 b.ExtraConfig("Metal") {
1369 // TODO(b/296960708): The IntelIrisPlus+Metal config hangs on this test, but passes
1370 // SurfaceContextWritePixelsMipped so let that one keep running.
1371 skip(ALL, "tests", ALL, "SurfaceContextWritePixels")
1372 skip(ALL, "tests", ALL, "SurfaceContextWritePixelsMipped")
1373 skip(ALL, "tests", ALL, "ImageAsyncReadPixels")
1374 skip(ALL, "tests", ALL, "SurfaceAsyncReadPixels")
1375 }
1376
1377 if b.ExtraConfig("ANGLE") && b.MatchOs("Win") && b.MatchGpu("IntelIris(540|655|Xe)") {
1378 skip(ALL, "tests", ALL, "ImageFilterCropRect_Gpu") // b/294080402
1379 }
1380
1381 if b.MatchOs("Mac15") && b.MatchGpu("IntelUHDGraphics630") {
1382 if !b.ExtraConfig("Graphite") {
1383 if b.ExtraConfig("ANGLE") {
1384 // b/405918638
1385 skip(ALL, "tests", ALL, "TransferPixelsFromTextureTest")
1386 skip(ALL, "tests", ALL, "ImageAsyncReadPixels_Renderable_BottomLeft")
1387 skip(ALL, "tests", ALL, "ImageAsyncReadPixels_Renderable_TopLeft")
1388 skip(ALL, "tests", ALL, "ImageAsyncReadPixels_NonRenderable_BottomLeft")
1389 skip(ALL, "tests", ALL, "ImageAsyncReadPixels_NonRenderable_TopLeft")
1390 skip(ALL, "tests", ALL, "SurfaceAsyncReadPixels")
1391 skip(ALL, "tests", ALL, "TransferPixelsToTextureTest")
1392 } else if b.ExtraConfig("Metal") {
1393 // b/438450848
1394 skip(ALL, "tests", ALL, "DMSAA_aa_dst_read_after_dmsaa")
1395 skip(ALL, "tests", ALL, "DMSAA_dst_read")
1396 skip(ALL, "tests", ALL, "SurfacePartialDraw_Gpu")
1397 skip(ALL, "tests", ALL, "FilterResult_ganesh_RescaleWithColorFilter")
1398 skip(ALL, "tests", ALL, "FilterResult_ganesh_RescaleWithTransform")
1399 skip(ALL, "tests", ALL, "FilterResult_ganesh_RescaleWithTileMode")
1400 skip(ALL, "tests", ALL, "FilterResult_ganesh_ColorFilterBetweenCrops")
1401 skip(ALL, "tests", ALL, "FilterResult_ganesh_TransformAndTile")
1402 skip(ALL, "tests", ALL, "FilterResult_ganesh_PeriodicTileCrops")
1403 skip(ALL, "tests", ALL, "FilterResult_ganesh_IntersectingCrops")
1404 skip(ALL, "tests", ALL, "FilterResult_ganesh_CropDisjointFromSourceAndOutput")
1405 skip(ALL, "tests", ALL, "FilterResult_ganesh_Crop")
1406 } else {
1407 // These two are also broken for OpenGL configs b/405918638
1408 skip(ALL, "tests", ALL, "TransferPixelsFromTextureTest")
1409 skip(ALL, "tests", ALL, "TransferPixelsToTextureTest")
1410 }
1411 } else {
1412 if b.ExtraConfig("Metal") {
1413 skip(ALL, "tests", ALL, "NotifyInUseTestLayerDarken") // b/449171614
1414 skip(ALL, "tests", ALL, "NotifyInUseTestLayerLighten") // b/449171614
1415 }
1416 }
1417 }
1418
1419 if b.GPU("RTX3060") && b.ExtraConfig("Vulkan") && b.MatchOs("Win") {
1420 skip(ALL, "gm", ALL, "blurcircles2") // skbug.com/40044425
1421 }
1422
1423 if b.GPU("QuadroP400") && b.MatchOs("Win10") && b.MatchModel("Golo") {
1424 // Times out with driver 30.0.15.1179
1425 skip("vkmsaa4", "gm", ALL, "shadow_utils")
1426 }
1427
1428 if b.GPU("RadeonR9M470X") && !b.ExtraConfig("Graphite") {
1429 // Currently, RadeonR9M470X implies Win11/AlphaR2
1430 if b.ExtraConfig("ANGLE") {
1431 // skbug.com/40045379 - ANGLE D3D9 ES2 has flaky texture sampling that leads to fuzzy diff errors
1432 skip(ALL, "tests", ALL, "FilterResult")
1433 // skbug.com/40044914 - Flaky failures on ANGLE D3D9 ES2
1434 skip(ALL, "tests", ALL, "SkRuntimeEffectSimple_Ganesh")
1435 skip(ALL, "tests", ALL, "TestSweepGradientZeroXGanesh")
1436
1437 // b/438680092
1438 skip(ALL, "tests", ALL, "SkSLPrefixExpressionsES2_Ganesh")
1439 skip(ALL, "tests", ALL, "SkSLForLoopMultipleInitES3_Ganesh")
1440 skip(ALL, "tests", ALL, "SkSLLoopFloat_Ganesh")
1441 } else if b.ExtraConfig("Vulkan") {
1442 // No suppressions for Vulkan yet
1443 } else {
1444 // b/438680092
1445 skip(ALL, "tests", ALL, "SkSLPrefixExpressionsES2_Ganesh")
1446 skip(ALL, "tests", ALL, "SkSLForLoopMultipleInitES3_Ganesh")
1447 skip(ALL, "tests", ALL, "SkSLLoopFloat_Ganesh")
1448 }
1449 }
1450
1451 if b.ExtraConfig("Vulkan") && b.GPU("RadeonVega6") {
1452 skip(ALL, "gm", ALL, "ycbcrimage") // skbug.com/40044345
1453 skip(ALL, "test", ALL, "VkYCbcrSampler_DrawImageWithYcbcrSampler") // skbug.com/40044345
1454 }
1455
1456 if b.GPU("RadeonVega8") && b.ExtraConfig("ANGLE") {
1457 // skbug.com/470037199
1458 skip(ALL, "test", ALL, "TransferPixelsFromTextureTest")
1459 skip(ALL, "test", ALL, "ES2BlendWithNoTexture")
1460 skip(ALL, "test", ALL, "SkRuntimeBlender_Ganesh")
1461 skip(ALL, "test", ALL, "SkImage_MakeCrossContextFromPixmapRelease")
1462 skip(ALL, "test", ALL, "Programs")
1463 skip(ALL, "test", ALL, "BlendRequiringDstReadWithLargeCoordinates")
1464 skip(ALL, "test", ALL, "ColorTypeBackendAllocationTest")
1465 }
1466
1467 match := []string{}
1468
1469 if b.ExtraConfig("Graphite") {
1470 // Graphite doesn't do auto-image-tiling so these GMs should remain disabled
1471 match = append(match, "~^verylarge_picture_image$")
1472 match = append(match, "~^verylargebitmap$")
1473 match = append(match, "~^path_huge_aa$")
1474 match = append(match, "~^fast_constraint_red_is_allowed$")
1475 match = append(match, "~^strict_constraint_batch_no_red_allowed$")
1476 match = append(match, "~^strict_constraint_no_red_allowed$")
1477 }
1478
1479 if b.Model("AndroidOne") {
1480 match = append(match, "~WritePixels") // skbug.com/40035865
1481 match = append(match, "~PremulAlphaRoundTrip_Gpu") // skbug.com/40038744
1482 match = append(match, "~ReimportImageTextureWithMipLevels") // skbug.com/40039349
1483 match = append(match, "~MorphologyFilterRadiusWithMirrorCTM_Gpu") // skbug.com/40041719
1484 }
1485
1486 if b.GPU("IntelIrisXe") {
1487 match = append(match, "~ReimportImageTextureWithMipLevels")
1488 }
1489
1490 if b.ExtraConfig("MSAN") {
1491 match = append(match, "~Once", "~Shared") // Not sure what's up with these tests.
1492 }
1493
1494 // By default, we test with GPU threading enabled, unless specifically
1495 // disabled.
1496 if b.ExtraConfig("NoGPUThreads") {
1497 args = append(args, "--gpuThreads", "0")
1498 }
1499
1500 if b.ExtraConfig("Vulkan") && b.GPU("Adreno530") {
1501 // skbug.com/40036986
1502 match = append(match, "~CopySurface")
1503 }
1504
1505 // Pixel4XL on the tree is still on Android 10 (Q), and the vulkan drivers
1506 // crash during this GM. It works correctly on newer versions of Android.
1507 // The Pixel3a is also failing on this GM with an invalid return value from
1508 // vkCreateGraphicPipelines.
1509 if b.ExtraConfig("Vulkan") && (b.Model("Pixel4XL") || b.Model("Pixel3a")) {
1510 skip("vk", "gm", ALL, "custommesh_cs_uniforms")
1511 }
1512
1513 if b.ExtraConfig("Vulkan") && b.MatchGpu("Adreno") {
1514 // skbug.com/40038922
1515 match = append(match, "~WritePixelsNonTextureMSAA_Gpu")
1516 match = append(match, "~WritePixelsMSAA_Gpu")
1517 }
1518
1519 if b.ExtraConfig("Vulkan") && b.IsLinux() && b.GPU("IntelIris640") {
1520 match = append(match, "~VkHeapTests") // skbug.com/40037445
1521 }
1522
1523 if b.IsLinux() && b.GPU("IntelIris640") {
1524 match = append(match, "~Programs") // skbug.com/40039101
1525 }
1526
1527 if b.Model("TecnoSpark3Pro", "Wembley") {
1528 // skbug.com/40041143
1529 match = append(match, "~Programs")
1530 match = append(match, "~ProcessorCloneTest")
1531 match = append(match, "~ProcessorOptimizationValidationTest")
1532 }
1533
1534 if b.GPU("IntelIris640", "IntelHD615", "IntelHDGraphics615") {
1535 match = append(match, "~^SRGBReadWritePixels$") // skbug.com/40040526
1536 }
1537
1538 if b.ExtraConfig("Vulkan") && b.IsLinux() && b.GPU("IntelHD405") {
1539 // skbug.com/40038567
1540 skip("vk", "gm", ALL, "skbug_257")
1541 skip("vk", "gm", ALL, "filltypespersp")
1542 match = append(match, "~^ClearOp$")
1543 match = append(match, "~^CopySurface$")
1544 match = append(match, "~^ImageNewShader_GPU$")
1545 match = append(match, "~^InitialTextureClear$")
1546 match = append(match, "~^PinnedImageTest$")
1547 match = append(match, "~^ReadPixels_Gpu$")
1548 match = append(match, "~^ReadPixels_Texture$")
1549 match = append(match, "~^SRGBReadWritePixels$")
1550 match = append(match, "~^VkUploadPixelsTests$")
1551 match = append(match, "~^WritePixelsNonTexture_Gpu$")
1552 match = append(match, "~^WritePixelsNonTextureMSAA_Gpu$")
1553 match = append(match, "~^WritePixels_Gpu$")
1554 match = append(match, "~^WritePixelsMSAA_Gpu$")
1555 }
1556
1557 if b.ExtraConfig("Metal") && !b.ExtraConfig("Graphite") && b.GPU("RadeonHD8870M") && b.MatchOs("Mac") {
1558 // skbug.com/40040558
1559 match = append(match, "~WritePixelsNonTextureMSAA_Gpu")
1560 // skbug.com/40042739
1561 match = append(match, "~SurfacePartialDraw_Gpu")
1562 }
1563
1564 if b.ExtraConfig("Metal") && !b.ExtraConfig("Graphite") && b.GPU("PowerVRGX6450") && b.MatchOs("iOS") {
1565 // skbug.com/40042979
1566 match = append(match, "~flight_animated_image")
1567 }
1568
1569 if b.ExtraConfig("ANGLE") {
1570 // skbug.com/40039089
1571 match = append(match, "~BlurMaskBiggerThanDest")
1572 }
1573
1574 if b.GPU("IntelIris6100") && b.ExtraConfig("ANGLE") && !b.Debug() {
1575 // skbug.com/40038570
1576 match = append(match, "~^ProcessorOptimizationValidationTest$")
1577 }
1578
1579 if b.GPU("IntelIris6100", "IntelHD4400") && b.ExtraConfig("ANGLE") {
1580 // skbug.com/40038077
1581 skip("angle_d3d9_es2", "gm", ALL, "lighting")
1582 }
1583
1584 if b.GPU("IntelHD4400") && b.ExtraConfig("ANGLE") {
1585 // skbug.com/470037196
1586 skip(ALL, "test", ALL, "BigImageTest_Ganesh")
1587 skip(ALL, "test", ALL, "DDLMakeRenderTargetTest")
1588 skip(ALL, "test", ALL, "DDLNonTextureabilityTest")
1589 skip(ALL, "test", ALL, "DDLSurfaceCharacterizationTest")
1590 skip(ALL, "test", ALL, "DefaultPathRendererTest")
1591 skip(ALL, "test", ALL, "DMSAA_dst_read_with_existing_barrier")
1592 skip(ALL, "test", ALL, "DMSAA_aa_dst_read_after_dmsaa")
1593 skip(ALL, "test", ALL, "DMSAA_dst_read")
1594 skip(ALL, "test", ALL, "DMSAA_preserve_contents")
1595 skip(ALL, "test", ALL, "ES2BlendWithNoTexture")
1596 skip(ALL, "test", ALL, "GrContext_colorTypeSupportedAsSurface")
1597 skip(ALL, "test", ALL, "Programs")
1598 skip(ALL, "test", ALL, "ReplaceSurfaceBackendTexture")
1599 skip(ALL, "test", ALL, "ResourceCacheStencilBuffers")
1600 skip(ALL, "test", ALL, "SurfaceAttachStencil_Gpu")
1601 skip(ALL, "test", ALL, "SurfaceClear_Gpu")
1602 }
1603
1604 if b.GPU("PowerVRGX6250") {
1605 match = append(match, "~gradients_view_perspective_nodither") //skbug.com/40038203
1606 }
1607
1608 if b.Arch("arm") && b.ExtraConfig("ASAN") {
1609 // TODO: can we run with env allocator_may_return_null=1 instead?
1610 match = append(match, "~BadImage")
1611 }
1612
1613 if b.Arch("arm64") && b.ExtraConfig("ASAN") {
1614 // skbug.com/40044239 the use of longjmp may cause ASAN stack check issues.
1615 skip(ALL, "test", ALL, "SkPDF_JpegIdentification")
1616 }
1617
1618 if b.ExtraConfig("HWASAN") {
1619 // HWASAN adds tag bytes to pointers. That's incompatible with this test -- it compares
1620 // pointers from unrelated stack frames to check that RP isn't growing the stack.
1621 skip(ALL, "test", ALL, "SkRasterPipeline_stack_rewind")
1622 }
1623
1624 if b.MatchOs("Mac") && b.GPU("IntelHD6000") {
1625 // skbug.com/40038821
1626 match = append(match, "~^ProcessorCloneTest$")
1627 match = append(match, "~^GrMeshTest$")
1628 }
1629
1630 if b.MatchOs("Mac") && b.GPU("IntelHD615") {
1631 // skbug.com/40038854
1632 match = append(match, "~^GrMeshTest$")
1633 }
1634
1635 if b.MatchOs("Mac") && b.GPU("IntelIrisPlus") {
1636 // skbug.com/40038854
1637 match = append(match, "~^GrMeshTest$")
1638 }
1639
1640 if b.MatchOs("Mac") && b.GPU("IntelUHDGraphics630") {
1641 // skbug.com/40038854
1642 match = append(match, "~^GrMeshTest$")
1643 }
1644
1645 if b.ExtraConfig("Vulkan") && b.Model("GalaxyS20") {
1646 // skbug.com/40041601
1647 match = append(match, "~VkPrepareForExternalIOQueueTransitionTest")
1648 }
1649 if b.MatchExtraConfig("Graphite") {
1650 // skbug.com/40043905
1651 match = append(match, "~async_rescale_and_read")
1652 }
1653
1654 if b.MatchExtraConfig("ColorSpaces") {
1655 // Here we reset the 'match' and 'skipped' strings bc the ColorSpaces job only runs
1656 // a very specific subset of the GMs.
1657 skipped = []string{}
1658 match = []string{}
1659 match = append(match, "async_rescale_and_read_dog_up")
1660 match = append(match, "bug6783")
1661 match = append(match, "colorspace")
1662 match = append(match, "colorspace2")
1663 match = append(match, "coloremoji")
1664 match = append(match, "composeCF")
1665 match = append(match, "crbug_224618")
1666 match = append(match, "drawlines_with_local_matrix")
1667 match = append(match, "gradients_interesting")
1668 match = append(match, "manypathatlases_2048")
1669 match = append(match, "custommesh_cs_uniforms")
1670 match = append(match, "paint_alpha_normals_rt")
1671 match = append(match, "runtimefunctions")
1672 match = append(match, "savelayer_f16")
1673 match = append(match, "spiral_rt")
1674 match = append(match, "srgb_colorfilter")
1675 match = append(match, "strokedlines")
1676 match = append(match, "sweep_tiling")
1677 }
1678
1679 if b.MatchExtraConfig("RustPNG") {
1680 // TODO(b/356875275) many PNG decoding tests still fail (e.g. those with SkAndroidCodec
1681 // or some from DM's image source). For now, just opt-in the tests we know pass and
1682 // eventually remove this special handling to run all image tests.
1683 skipped = []string{}
1684 match = []string{
1685 "RustPngCodec",
1686 "RustEncodePng",
1687 }
1688 }
1689
1690 if len(skipped) > 0 {
1691 args = append(args, "--skip")
1692 args = append(args, skipped...)
1693 }
1694
1695 if len(match) > 0 {
1696 args = append(args, "--match")
1697 args = append(args, match...)
1698 }
1699
1700 // These devices run out of memory running RAW codec tests. Do not run them in
1701 // parallel
1702 // TODO(borenet): Previously this was `'Nexus5' in bot or 'Nexus9' in bot`
1703 // which also matched 'Nexus5x'. I added That here to maintain the
1704 // existing behavior, but we should verify that it's needed.
1705 if b.Model("Nexus5", "Nexus5x", "Nexus9", "JioNext") {
1706 args = append(args, "--noRAW_threading")
1707 }
1708
1709 if b.ExtraConfig("NativeFonts") {
1710 args = append(args, "--nativeFonts")
1711 if !b.MatchOs("Android") {
1712 args = append(args, "--paragraph_fonts", "extra_fonts")
1713 args = append(args, "--norun_paragraph_tests_needing_system_fonts")
1714 }
1715 } else {
1716 args = append(args, "--nonativeFonts")
1717 }
1718 if b.ExtraConfig("GDI") {
1719 args = append(args, "--gdi")
1720 }
1721 if b.ExtraConfig("Fontations") {
1722 args = append(args, "--fontations")
1723 }
1724 if b.ExtraConfig("AndroidNDKFonts") {
1725 args = append(args, "--androidndkfonts")
1726 }
1727
1728 // Let's make all tasks produce verbose output by default.
1729 args = append(args, "--verbose")
1730
1731 // See skbug.com/40033899.
1732 if b.ExtraConfig("AbandonGpuContext") {
1733 args = append(args, "--abandonGpuContext")
1734 }
1735 if b.ExtraConfig("PreAbandonGpuContext") {
1736 args = append(args, "--preAbandonGpuContext")
1737 }
1738 if b.ExtraConfig("ReleaseAndAbandonGpuContext") {
1739 args = append(args, "--releaseAndAbandonGpuContext")
1740 }
1741
1742 if b.ExtraConfig("NeverYield") {
1743 args = append(args, "--neverYieldToWebGPU")
1744 }
1745
1746 if b.ExtraConfig("FailFlushTimeCallbacks") {
1747 args = append(args, "--failFlushTimeCallbacks")
1748 }
1749
1750 // Finalize the DM flags and properties.
1751 b.recipeProp("dm_flags", marshalJson(args))
1752 b.recipeProp("dm_properties", marshalJson(properties))
1753
1754 // Add properties indicating which assets the task should use.
1755 if b.MatchExtraConfig("Lottie") {
1756 b.asset("lottie-samples")
1757 b.recipeProp("lotties", "true")
1758 } else if b.MatchExtraConfig("OldestSupportedSkpVersion") {
1759 b.recipeProp("skps", "true")
1760 } else {
1761 b.asset("skimage")
1762 b.recipeProp("images", "true")
1763 b.asset("skp")
1764 b.recipeProp("skps", "true")
1765 b.asset("svg")
1766 b.recipeProp("svgs", "true")
1767 }
1768 b.recipeProp("do_upload", fmt.Sprintf("%t", b.doUpload()))
1769 b.recipeProp("resources", "true")
1770 }