# Note: flakes lists for CI are just a list of lines that, when
# non-zero-length and not starting with '#', will regex match to
# delete lines from the test list.  Be careful.

# dEQP-EGL started flaking around 2021-04-19 on an innocent CI-related branch.
dEQP-EGL.functional.color_clears.multi_context.gles2.rgb888_pbuffer
dEQP-EGL.functional.color_clears.multi_context.gles2.rgb888_window
dEQP-EGL.functional.color_clears.multi_context.gles2.rgba8888_pbuffer
dEQP-EGL.functional.color_clears.multi_context.gles2.rgba8888_window
dEQP-EGL.functional.color_clears.multi_context.gles3.rgb888_pbuffer
dEQP-EGL.functional.color_clears.multi_context.gles3.rgb888_window
dEQP-EGL.functional.color_clears.multi_context.gles3.rgba8888_pbuffer
dEQP-EGL.functional.color_clears.multi_context.gles3.rgba8888_window
dEQP-EGL.functional.color_clears.multi_thread.gles2.rgba8888_pbuffer
dEQP-EGL.functional.color_clears.multi_thread.gles2.rgba8888_window
dEQP-EGL.functional.color_clears.multi_thread.gles3.rgb888_pbuffer
dEQP-EGL.functional.color_clears.multi_thread.gles3.rgb888_window
dEQP-EGL.functional.color_clears.multi_thread.gles3.rgba8888_pbuffer
dEQP-EGL.functional.color_clears.multi_thread.gles3.rgba8888_window
dEQP-EGL.functional.color_clears.single_context.gles2.rgb888_pbuffer
dEQP-EGL.functional.color_clears.single_context.gles2.rgb888_window
dEQP-EGL.functional.color_clears.single_context.gles2.rgba8888_pbuffer
dEQP-EGL.functional.color_clears.single_context.gles2.rgba8888_window
dEQP-EGL.functional.color_clears.single_context.gles3.rgb888_pbuffer
dEQP-EGL.functional.color_clears.single_context.gles3.rgb888_window
dEQP-EGL.functional.color_clears.single_context.gles3.rgba8888_pbuffer
dEQP-EGL.functional.color_clears.single_context.gles3.rgba8888_window
dEQP-EGL.functional.render.multi_context.gles2_gles3.rgb888_pbuffer
dEQP-EGL.functional.render.multi_context.gles2_gles3.rgb888_window
dEQP-EGL.functional.render.multi_context.gles2_gles3.rgba8888_pbuffer
dEQP-EGL.functional.render.multi_context.gles2_gles3.rgba8888_window
dEQP-EGL.functional.render.multi_context.gles2.rgb888_pbuffer
dEQP-EGL.functional.render.multi_context.gles2.rgb888_window
dEQP-EGL.functional.render.multi_context.gles2.rgba8888_pbuffer
dEQP-EGL.functional.render.multi_context.gles2.rgba8888_window
dEQP-EGL.functional.render.multi_context.gles3.rgb888_pbuffer
dEQP-EGL.functional.render.multi_context.gles3.rgb888_window
dEQP-EGL.functional.render.multi_context.gles3.rgba8888_pbuffer
dEQP-EGL.functional.render.multi_context.gles3.rgba8888_window
dEQP-EGL.functional.render.multi_thread.gles2_gles3.rgb888_pbuffer
dEQP-EGL.functional.render.multi_thread.gles2_gles3.rgb888_window
dEQP-EGL.functional.render.multi_thread.gles2_gles3.rgba8888_pbuffer
dEQP-EGL.functional.render.multi_thread.gles2_gles3.rgba8888_window
dEQP-EGL.functional.render.multi_thread.gles2.rgb888_pbuffer
dEQP-EGL.functional.render.multi_thread.gles2.rgb888_window
dEQP-EGL.functional.render.multi_thread.gles2.rgba8888_pbuffer
dEQP-EGL.functional.render.multi_thread.gles2.rgba8888_window
dEQP-EGL.functional.render.multi_thread.gles3.rgb888_pbuffer
dEQP-EGL.functional.render.multi_thread.gles3.rgb888_window
dEQP-EGL.functional.render.multi_thread.gles3.rgba8888_pbuffer
dEQP-EGL.functional.render.multi_thread.gles3.rgba8888_window
dEQP-EGL.functional.render.single_context.gles2.rgb888_pbuffer
dEQP-EGL.functional.render.single_context.gles2.rgb888_window
dEQP-EGL.functional.render.single_context.gles2.rgba8888_pbuffer
dEQP-EGL.functional.render.single_context.gles2.rgba8888_window
dEQP-EGL.functional.render.single_context.gles3.rgb888_pbuffer
dEQP-EGL.functional.render.single_context.gles3.rgb888_window
dEQP-EGL.functional.render.single_context.gles3.rgba8888_pbuffer
dEQP-EGL.functional.render.single_context.gles3.rgba8888_window
dEQP-EGL.functional.sharing.gles2.buffer.render
dEQP-EGL.functional.sharing.gles2.multithread.random_egl_server_sync.textures.copyteximage2d.13
dEQP-EGL.functional.sharing.gles2.multithread.random_egl_sync.textures.copyteximage2d.0
dEQP-EGL.functional.sharing.gles2.multithread.random.textures.copyteximage2d.16
dEQP-EGL.functional.sharing.gles2.multithread.simple.buffers.bufferdata

# Started at least by Jan 2020, current as of May 2021
dEQP-GLES31.functional.layout_binding.ssbo.fragment_binding_array

# Started appearing with the new deqp runner.  possibly different test order?
dEQP-GLES3.functional.fbo.blit.conversion.rg8i_to_r16i
dEQP-GLES3.functional.fbo.blit.conversion.rg8_to_r16f

# First noticed Jun 1 2020 on an innocent branch.
KHR-.*.packed_depth_stencil.verify_copy_tex_image.depth32f_stencil8

# Flaky with introduction of testing
KHR-.*.core.arrays_of_arrays.InteractionFunctionCalls2
KHR-.*.core.geometry_shader.layered_framebuffer.depth_support

# [  359.031093] *** gpu fault: ttbr0=00000001040d6000 iova=0000001012c0a880 dir=WRITE type=TRANSLATION source=UCHE (0,0,0,1)
KHR-.*.core.tessellation_shader.tessellation_shader_tc_barriers.barrier_guarded_read_calls

# Typically fails, but occasionally passes.
KHR-GL46.shader_image_load_store.basic-allTargets-loadStoreVS
KHR-GL46.shader_image_load_store.basic-allTargets-store

# edfff331b3241d1c18d5c589fcdf75728089c886 mostly fixed this, but apparently it still flakes.
dEQP-GLES3.functional.fbo.blit.depth_stencil.depth32f_stencil8_basic
dEQP-GLES3.functional.fbo.blit.depth_stencil.depth32f_stencil8_scale
dEQP-GLES3.functional.fbo.blit.depth_stencil.depth32f_stencil8_stencil_only

# looks like a cache flushing issue, and it does sometimes pass.
bypass-dEQP-GLES31.functional.blend_equation_advanced.msaa.*
bypass-dEQP-GLES31.functional.blend_equation_advanced.srgb.difference
bypass-dEQP-GLES31.functional.blend_equation_advanced.srgb.hsl_color
bypass-dEQP-GLES31.functional.blend_equation_advanced.srgb.multiply

# Flakes, all seen since merge of:
# https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12258
# Failures seen so far in different flakes:
#
#  "Array 1 length is 0 should be 4"
#  "Array 2 length is 0 should be 2"
#  "Array 4 length is 0 should be 22"
#  "Array 5 length is 0 should be 122"
#
# test does a single point draw in a FS taking the length of the first 7 SSBOs and writing them to
# ints in SSBO 7, then glMemoryBarrier(GL_BUFFER_UPDATE_BARRIER_BIT), then mapping it.
KHR-.*.core.shader_storage_buffer_object.advanced-unsizedArrayLength-fs-std140-struct
KHR-.*.core.shader_storage_buffer_object.advanced-unsizedArrayLength-fs-std140-matR
KHR-.*.core.shader_storage_buffer_object.advanced-unsizedArrayLength-fs-std430-matC-pad
KHR-.*.core.shader_storage_buffer_object.advanced-unsizedArrayLength-fs-std430-vec
KHR-.*.shader_storage_buffer_object.advanced-unsizedArrayLength-fs-std140-matR

glx@glx_arb_sync_control@swapbuffersmsc-divisor-zero
glx@glx_arb_sync_control@waitformsc
glx@glx-swap-event_interval
glx@glx-visuals-depth
glx@glx-visuals-stencil

# Occasionally flakes preceded by a GPU fault;
#  [  375.034086] adreno 5000000.gpu: [drm:a6xx_irq] *ERROR* gpu fault ring 0 fence aefe8 status 00E51005 rb 0602/06d2 ib1 000000010023D000/0000 ib2 0000000100246170/0000
glx@glx-tfp

# Flaky since around 2021-03-20.  First appeared on the autotune branch.
spec@arb_draw_indirect@arb_draw_indirect-transform-feedback

# Flaky since around 2021-03-22.  First appeared on an innocent mingw branch.
spec@arb_depth_texture@fbo-clear-formats

# Flaky since around 2021-05-21, the day after a piglit uprev reshuffled us.
# *** gpu fault: ttbr0=000000001c941000 iova=000000010066a000 dir=READ type=TRANSLATION source=TP|VFD (0,0,0,1)
spec@arb_map_buffer_range@map_invalidate_buffer_bit offset=0

# Always been flaky, but didn't show up until the testscase was fixed to not spuriously skip.
spec@arb_shader_image_load_store@indexing
spec@arb_shader_image_load_store@indexing@Fragment shader/dynamically uniform indexing test

# Occasionally passes instead of failing
spec@egl_chromium_sync_control@conformance
spec@egl_chromium_sync_control@conformance@eglGetSyncValuesCHROMIUM_msc_and_sbc_test

# Flaky since around 2021-04-21.  First appeared on
# https://gitlab.freedesktop.org/robclark/mesa/-/jobs/9101752 (fd/go-fast)
spec@ext_packed_depth_stencil@fbo-clear-formats stencil

# Flaky since around 2021-06-21.
spec@arb_texture_gather@texturegatheroffset@vs-rgb-blue-uint-2darray
spec@arb_texture_gather@texturegather@fs-rgba-green-uint-cubearray
spec@arb_texture_gather@texturegather@vs-rgb-none-float-cubearray

# First appeared in https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11511
spec@glsl-1.30@execution@tex-miplevel-selection texture\(bias\) cubearray

# First appeared on 2021-05-14 on tc-merge-index-unrefs, but not obviously related.
spec@!opengl 1.0@rasterpos@glsl_vs_tex1D

# Has only flaked where it fails twice in a run, never as a Flake status.
spec@!opengl 1.0@rasterpos@glsl_vs_ubo

# First appeared 2021-06-14
spec@egl 1.4@eglcreatepbuffersurface and then glclear

# Flakes collected from June/July 2022 reports, that seem to have been around forever.
spec@!opengl 1.0@gl-1.0-front-invalidate-back
spec@!opengl 1.1@masked-clear
spec@!opengl 1.1@texsubimage
spec@!opengl 3.0@gl30basic
spec@arb_texture_multisample@texelfetch fs sampler2dms 4 1x71-501x71
spec@egl_nok_texture_from_pixmap@basic
spec@ext_framebuffer_blit@fbo-sys-blit
spec@ext_framebuffer_blit@fbo-sys-sub-blit
spec@glsl-1.30@execution@texelfetch fs sampler2d 1x71-501x71

# Started around 2022-06-26, first time was on an unlikely MR.
KHR-.*.shader_image_size.basic-nonMS-fs-float
KHR-.*.shader_image_size.basic-nonMS-fs-int
KHR-.*.shader_image_size.basic-nonMS-fs-uint
KHR-.*.shader_image_size.advanced-nonMS-fs-float
KHR-.*.shader_image_size.advanced-nonMS-fs-int
KHR-.*.shader_image_size.advanced-nonMS-fs-uint

# An old classic I thought I fixed at one point, but it still haunts us (particularly sensitive to specific frequencies iirc)
spec@arb_depth_buffer_float@fbo-depthstencil-gl_depth32f_stencil8-blit
spec@arb_depth_buffer_float@fbo-depthstencil-gl_depth32f_stencil8-copypixels

# Flakes from aug-oct 2022.
spec@ext_timer_query@time-elapsed
spec@ext_texture_lod_bias@lodbias

# recent flakes, first occurence 03-02-2023
KHR-GL46.buffer_storage.map_persistent_dispatch
# recent flakes, first occurence 09-02-2023
KHR-GL46.buffer_storage.map_persistent_flush

# very rare flake (once two weeks), first occurence 21-02-2023
KHR-GL46.sample_variables.mask.rgba8ui.samples_0.mask_2
KHR-GL46.sample_variables.mask.rgba8i.samples_4.mask_3
KHR-GL46.sample_variables.mask.rgba32f.samples_0.mask_2
KHR-GL46.sample_variables.mask.rgba32f.samples_4.mask_3

# these flake basically everywhere
glx@glx-make-current
glx@glx-multi-window-single-context

# flakes that turned up some time in early 2023
spec@!opengl 1.1@line-smooth-stipple
spec@!opengl 3.2@gl-3.2-adj-prims cull-back pv-last
spec@!opengl 3.2@gl-3.2-adj-prims cull-front pv-last
spec@!opengl 3.2@gl-3.2-adj-prims line cull-back pv-last
spec@!opengl 3.2@gl-3.2-adj-prims line cull-front pv-last
spec@!opengl 3.2@gl-3.2-adj-prims pv-last

# discovered by nightly run
spec@arb_timer_query@timestamp-get

# uprev Piglit in Mesa
KHR-GLES3.copy_tex_image_conversions.required.cubemap_posx_texture2d
KHR-GLES31.core.shader_bitfield_operation.findMSB.ivec3_1
KHR-GLES31.core.shader_multisample_interpolation.render.interpolate_at_offset.rgba8i.samples_1
KHR-GLES31.core.shader_multisample_interpolation.render.interpolate_at_offset_check.rgba8i.samples_1
KHR-GLES31.core.tessellation_shader.tessellation_shader_tc_barriers.barrier_guarded_read_calls
glx@glx-visuals-depth -pixmap
glx@glx-visuals-stencil -pixmap


# Nightly run expectations update
dEQP-VK.binding_model.shader_access.primary_cmd_buf.storage_buffer.tess_eval.multiple_contiguous_descriptors.offset_view_nonzero
dEQP-VK.binding_model.shader_access.primary_cmd_buf.storage_image.tess_eval.multiple_descriptor_sets.multiple_discontiguous_descriptors.2d
dEQP-VK.binding_model.shader_access.secondary_cmd_buf.storage_buffer_dynamic.tess_ctrl.multiple_descriptor_sets.descriptor_array.offset_view_zero_dynamic_zero
dEQP-VK.spirv_assembly.instruction.graphics.indexing.input.struct.opinboundsaccesschain_u32_tesse

# Updated by ci-collate
spec@arb_gpu_shader_fp64@execution@arb_gpu_shader_fp64-wrong-type-setter
spec@ext_external_objects@vk-image-display-overwrite
dEQP-VK.synchronization2.cross_instance.dedicated.write_ssbo_tess_control_read_ssbo_tess_eval.buffer_16384_binary_semaphore_dma_buf
dEQP-VK.synchronization2.cross_instance.dedicated.write_image_tess_eval_read_copy_image_to_buffer.image_128x128_r32g32b32a32_sfloat_binary_semaphore_fd
gmem-dEQP-VK.binding_model.shader_access.secondary_cmd_buf.bind.with_template.storage_image.geometry.multiple_descriptor_sets.descriptor_array.3d_base_mip
dEQP-VK.tessellation.invariance.primitive_set.isolines_equal_spacing_cw_point_mode
dEQP-VK.draw.dynamic_rendering.primary_cmd_buff.multi_draw.mosaic.indexed_random.16_draws.stride_extra_4.10_instances.with_tess.single_view.no_offset
dEQP-VK.binding_model.shader_access.primary_cmd_buf.bind.with_template.storage_image.tess_ctrl.single_descriptor.1d_base_slice
dEQP-VK.renderpass.suballocation.multisample_resolve.layers_6.r32g32b32a32_uint.samples_2_resolve_level_2
gmem-dEQP-VK.synchronization2.cross_instance.dedicated.write_image_tess_eval_read_image_compute_indirect.image_128x128_r8g8b8a8_unorm_binary_semaphore_fence_fd
bypass-dEQP-VK.renderpass2.fragment_density_map.2_views.render.non_divisible_density_size.2_samples.static_subsampled_2_2_multiviewport
dEQP-VK.draw.dynamic_rendering.primary_cmd_buff.multi_draw.mosaic.indexed_mixed.16_draws.stride_extra_4.1_instance.tess_geom.single_view.offset_6_no_draw_id
dEQP-VK.spirv_assembly.instruction.graphics.image_sampler.imagesample.combined_image_sampler_separate_descriptors.optypeimage_mismatch.rgba16ui.depth_property.unknown.shader_tesse
gmem-dEQP-VK.binding_model.shader_access.secondary_cmd_buf.bind2.with_push.sampler_mutable.tess_ctrl.single_descriptor.2d
dEQP-VK.renderpass2.suballocation.multisample_resolve.layers_6.r16g16b16a16_uint.samples_4_resolve_level_3
dEQP-VK.renderpass2.suballocation.multisample_resolve.layers_6.r32g32_sfloat.samples_4
dEQP-VK.renderpass2.suballocation.multisample_resolve.layers_3.r32g32b32a32_sint.samples_4_resolve_level_2
dEQP-VK.binding_model.shader_access.primary_cmd_buf.bind2.sampler_immutable.tess_ctrl.multiple_descriptor_sets.multiple_discontiguous_descriptors.1d_base_mip
dEQP-VK.binding_model.shader_access.secondary_cmd_buf.bind2.storage_image.geometry.multiple_descriptor_sets.multiple_contiguous_descriptors.2d_base_slice
dEQP-VK.tessellation.invariance.outer_triangle_set.quads_fractional_odd_spacing
dEQP-VK.synchronization2.cross_instance.suballocated.write_copy_image_to_buffer_read_ssbo_tess_eval.buffer_16384_binary_semaphore_fd
dEQP-VK.tessellation.invariance.outer_triangle_set.triangles_equal_spacing
dEQP-VK.pipeline.monolithic.interface_matching.vector_length.out_ivec3_in_ivec3_loose_variable_vert_tesc_tese_out_geom_in_frag
dEQP-VK.tessellation.invariance.outer_edge_symmetry.quads_fractional_odd_spacing_ccw
gmem-dEQP-VK.binding_model.shader_access.primary_cmd_buf.bind.sampler_immutable.tess_ctrl.single_descriptor.1d_array_base_mip

# SKQP test which seems to flake out
SRGBReadWritePixels

# uprev Piglit in Mesa
spec@arb_gpu_shader_fp64@execution@arb_gpu_shader_fp64-fs-getuniformdv
spec@arb_gpu_shader_fp64@execution@built-in-functions@fs-op-div-dmat4-dmat4
spec@arb_gpu_shader_fp64@execution@built-in-functions@fs-op-div-double-dmat4
spec@glsl-4.00@execution@built-in-functions@fs-inverse-dmat4

# glcts update
KHR-GL46.packed_pixels.varied_rectangle.rgba32i
gmem-dEQP-GLES31.functional.copy_image.mixed.viewclass_128_bits_mixed.rgba32f_rgba_astc_6x6_khr.cubemap_to_texture3d
gmem-dEQP-GLES31.functional.image_load_store.cube.format_reinterpret.rgba16ui_rgba16i
gmem-dEQP-GLES31.functional.copy_image.mixed.viewclass_128_bits_mixed.rgba32i_srgb8_alpha8_astc_6x5_khr.cubemap_to_cubemap
KHR-GL46.texture_view.view_classes
gmem-dEQP-GLES31.functional.copy_image.mixed.viewclass_128_bits_mixed.rgba_astc_12x10_khr_rgba32ui.texture3d_to_texture3d
gmem-dEQP-GLES31.functional.copy_image.non_compressed.viewclass_32_bits.srgb8_alpha8_rgb10_a2.texture3d_to_texture3d
gmem-dEQP-GLES31.functional.copy_image.mixed.viewclass_128_bits_mixed.rgba_astc_6x5_khr_rgba32ui.texture2d_array_to_texture3d
gmem-dEQP-GLES31.functional.copy_image.mixed.viewclass_128_bits_mixed.rgba_astc_8x8_khr_rgba32ui.texture3d_to_texture2d
gmem-dEQP-GLES31.functional.copy_image.mixed.viewclass_128_bits_mixed.srgb8_alpha8_astc_10x8_khr_rgba32i.cubemap_to_texture2d
KHR-GL46.pixelstoragemodes.teximage3d.rgb5a1.1_1_1
gmem-dEQP-GLES31.functional.copy_image.mixed.viewclass_128_bits_mixed.rgba_astc_4x4_khr_rgba32f.texture2d_array_to_texture2d
KHR-GL46.pixelstoragemodes.teximage3d.rgba32i.16_1_1
KHR-GL46.pixelstoragemodes.teximage3d.rgba32i.16_16_4
gmem-dEQP-GLES31.functional.copy_image.mixed.viewclass_128_bits_mixed.srgb8_alpha8_astc_6x6_khr_rgba32i.texture3d_to_texture3d
gmem-dEQP-GLES31.functional.copy_image.compressed.viewclass_astc_5x4_rgba.srgb8_alpha8_astc_5x4_khr_srgb8_alpha8_astc_5x4_khr.texture2d_array_to_texture2d
gmem-dEQP-GLES31.functional.copy_image.compressed.viewclass_astc_5x4_rgba.srgb8_alpha8_astc_5x4_khr_srgb8_alpha8_astc_5x4_khr.texture2d_to_texture3d
KHR-GL46.gpu_shader_fp64.builtin.outerproduct_dmat3
KHR-GL46.shader_multisample_interpolation.render.interpolate_at_sample.rgba8ui.samples_1
gmem-dEQP-GLES31.functional.copy_image.compressed.viewclass_astc_12x12_rgba.rgba_astc_12x12_khr_rgba_astc_12x12_khr.texture2d_array_to_texture2d_array
KHR-GL46.texture_cube_map_array.generate_mip_map_filterable_internalformat_immutable
KHR-GL46.texture_repeat_mode.rgb565_11x131_2_mirrored_repeat
gmem-dEQP-GLES31.functional.copy_image.compressed.viewclass_astc_4x4_rgba.srgb8_alpha8_astc_4x4_khr_rgba_astc_4x4_khr.texture2d_array_to_texture2d_array
gmem-dEQP-GLES31.functional.copy_image.mixed.viewclass_128_bits_mixed.rgba_astc_4x4_khr_rgba32f.cubemap_to_cubemap
KHR-GL46.texture_repeat_mode.depth_component16_11x131_2_repeat
KHR-GL46.blend_equation_advanced.blend_specific.GL_LIGHTEN_KHR
KHR-GL46.texture_repeat_mode.r32ui_11x131_2_repeat
gmem-dEQP-GLES31.functional.copy_image.compressed.viewclass_astc_12x12_rgba.srgb8_alpha8_astc_12x12_khr_rgba_astc_12x12_khr.texture3d_to_texture2d_array
KHR-GL46.shaders45.shader_integer_mix.mix-bvec4
KHR-GL46.texture_border_clamp.Texture2DArrayCompressedLinear
KHR-GL46.shader_bitfield_operation.bitfieldExtract.ivec3_3
KHR-GL46.texture_repeat_mode.rgb565_49x23_1_clamp_to_edge
KHR-GL46.gpu_shader_fp64.builtin.smoothstep_against_scalar_dvec4
KHR-GL46.tessellation_shader.tessellation_shader_point_mode.points_verification
