Files
metal2vulkan/crates/metal2vulkan-runtime/src/tests/mod.rs
T
Anees Iqbal 704700fdfd A device test: an idle device lets go of what its released resources held
Private buffers and textures over several pooled blocks, used by a command
buffer that completes, one whose commit is refused (an abandoned encoder) and
one whose submission check fails it, all let go of; then the program makes and
releases nothing. Within 40 s nothing may stay parked, each pool keeps at most
one empty pooled block, and the pooled blocks and heap bytes are back to their
start within one block a pool.

Committed ahead of the fix, to run against it: at this tip the kept empty
blocks and the parked objects go only at the next creation call, release or
park, so the test is expected to fail here.
2026-11-12 04:24:52 -08:00

687 lines
18 KiB
Rust

//! CPU tests of the runtime's pure parts, one file per runtime file. Device tests live in the
//! validation crate, behind its GPU safety cfgs.
//!
//! Some read the repository beside this crate: device profiles from `../validation/profiles`,
//! fixtures from `../validation/fixtures`, and `../docs`. They run only from the workspace
//! checkout, not from a packaged crate; the crate's build (its build script and `include_str!`)
//! reads nothing outside its own directory.
mod address;
mod address_map;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod aligned_byte;
mod amplification;
mod apple_only;
mod argument_buffers;
mod argument_encoder;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod argument_sampler_count;
#[cfg(debug_assertions)]
mod argument_table;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod attached_levels;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod attached_read_standing;
mod attachmentless;
mod attributes;
mod batches;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod bc_own_image;
mod binary;
mod binary_archive;
mod binding_view;
mod blit;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod blit_cover;
mod blit_fill;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod blit_holds;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod blit_order;
mod blit_plan;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod blocks_ahead;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod buffer_tail_device;
mod buffer_texture;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod caller_queue_writes;
mod capabilities;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod carried_draws;
mod churn_counts;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod clip_bursts;
mod color_reformat;
mod command_buffer;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod command_counts;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod commit_and_submit;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod completion;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod completion_here;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod completion_latency;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod completion_order;
mod completion_seen;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod completion_wakes;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod compute;
mod contexts;
mod copied;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod copied_bandwidth_bench;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod copied_base_device;
mod copied_bench;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod copied_device;
mod copied_log;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod copied_log_device;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod copied_pass_bench;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod copied_present_bench;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod copies_beside_a_held_wait;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod copies_only_reads;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod copy_bounds;
mod copy_plan;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod core_image_libraries;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod cpu_copy_layouts;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod cpu_copy_times;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod creation_prediction_kinds;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod creation_prediction_reach;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod creation_split;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod deferred_calls;
mod degradation;
mod degradation_catalogue;
mod degradation_sites;
mod depth_copy;
mod depth_ranges;
mod depth_stencil_resolve;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod derived_once;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod described_row_copies;
mod descriptor_arena;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod descriptor_key_at_draw;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod descriptor_key_once;
// A GPU hazard: its kernel spins up to 2^25 loads on a word the GPU may never see raised.
#[cfg(any(m2v_cpu_icd, all(m2v_gpu, m2v_gpu_hazards)))]
mod detach_lost;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod detached_contents;
mod device;
#[cfg(any(m2v_cpu_icd, all(m2v_gpu, m2v_gpu_hazards)))]
mod device_memory_overflow;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod device_recovery;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod device_recovery_carry;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod device_recovery_no_copy;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod device_registry;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod direct_arguments_from_compiled;
mod dirty_bytes_of;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod dirty_pages_device;
mod dirty_reports;
mod dirty_runs;
mod dirty_runs_bench;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod dispatch_pending;
#[cfg(all(unix, any(m2v_gpu, m2v_cpu_icd)))]
mod dma_buf_export;
#[cfg(all(any(m2v_gpu, m2v_cpu_icd), target_os = "linux"))]
mod dma_buf_fds;
#[cfg(unix)]
mod dma_buf_first_imports;
#[cfg(all(any(m2v_gpu, m2v_cpu_icd), target_os = "linux"))]
mod dma_buf_import_cycles;
#[cfg(all(any(m2v_gpu, m2v_cpu_icd), target_os = "linux"))]
mod dma_buf_leak_probe;
#[cfg(all(any(m2v_gpu, m2v_cpu_icd), target_os = "linux"))]
mod dma_buf_plane_offset;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod draw_again;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod draw_shape_notices;
mod driver_defects;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod driver_pipeline_compile;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod dropped_uncommitted;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod dropped_usage;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod dynamic_multi_variable;
mod enables;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod encoder_holds;
mod error_kinds;
mod event_listener;
mod event_timeline;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod event_vk_signal;
mod exactness;
mod exit_guard;
#[cfg(all(any(m2v_gpu, m2v_cpu_icd), target_os = "linux"))]
mod export_after_dma_buf;
#[cfg(all(unix, any(m2v_gpu, m2v_cpu_icd)))]
mod export_dedication;
#[cfg(all(unix, any(m2v_gpu, m2v_cpu_icd)))]
mod exported_memory;
#[cfg(all(unix, any(m2v_gpu, m2v_cpu_icd)))]
mod exported_semaphore;
#[cfg(all(unix, any(m2v_gpu, m2v_cpu_icd)))]
mod exported_textures;
mod families;
mod fences;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod fetch_composite;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod fill_queue;
mod fill_value;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod fill_waits;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod fill_waits_bench;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod first_host_texture;
mod first_moves;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod footprint_locks;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod framebuffer_fetch;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod freed_memory;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod fresh_pages;
mod fresh_unwritten;
mod function_table;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod functions_translated;
mod gate;
mod general_form;
mod gpu_pools;
mod gpu_time;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod hand_out_waits;
#[cfg(unix)]
mod handed_descriptor;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod handler_orders;
mod heap;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod heap_allocated_size;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod heap_border_texels;
mod heap_footprint_formats;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod heap_one_plane_rows;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod heap_refused_notice;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod heap_set_copies;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod heap_set_unlocked;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod heap_set_walk;
mod heap_sets;
mod heap_tiled;
mod heap_tiled_blocks;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod heap_tiled_scratch;
mod heap_usage;
mod held_depth;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod hold_sites;
mod host_aliases;
mod host_bytes;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod host_hold_filter;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod host_image_room;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod host_import_counts;
mod host_memory;
#[cfg(m2v_gpu)]
mod host_ram_copy_bench;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod host_ram_copy_device;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod host_ram_device;
#[cfg(all(any(m2v_gpu, m2v_cpu_icd), target_os = "linux"))]
mod host_ram_dma_buf;
#[cfg(m2v_gpu)]
mod host_ram_first_fill_bench;
#[cfg(all(m2v_gpu, target_os = "linux"))]
mod host_ram_listed_bench;
#[cfg(all(m2v_gpu, target_os = "linux"))]
mod host_ram_surface_fill_bench;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod host_ram_window_bench;
#[cfg(all(any(m2v_gpu, m2v_cpu_icd), target_os = "linux"))]
mod host_residency;
mod host_settable_event_waits;
mod host_shadow;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod host_step_neutrals;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod icon_coverage;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod icon_levels;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod icon_mips;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod idle_sweep;
mod image_barriers;
mod image_plan;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod image_standing;
#[cfg(all(m2v_gpu, target_os = "linux"))]
mod import_free_hold_bench;
#[cfg(all(m2v_gpu, m2v_gpu_hazards, target_os = "linux"))]
mod import_overlap_hazard;
mod in_place;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod in_place_check;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod in_place_storage;
mod inbox;
mod indirect_command_buffer;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod indirect_command_buffer_device;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod inline_continues;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod inline_splits;
mod interlocked_writes;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod internal_texture_ids;
mod interop;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod joined_residency;
mod keeper;
mod kept_barriers;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod kept_heap_uses;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod kept_images;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod kept_padding;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod kept_shadowed_draws;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod kept_variants;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod kernel_end_device;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod layer_claim;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod learned_coverage;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod least_queue_plan;
mod left;
mod linear_alignment;
mod linear_attachment;
mod linear_plan;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod linear_runs;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod linked_pipelines_shared;
mod listed_extensions;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod lone_fetch;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod mac_class;
mod making;
mod managed;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod managed_copies_bench;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod managed_copy_device;
// A GPU hazard: it makes devices up to the driver's limit.
#[cfg(all(m2v_gpu, m2v_gpu_hazards))]
mod many_devices;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod many_passes;
mod memo;
mod memory;
#[cfg(m2v_gpu)]
mod memory_block_bench;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod memory_frees;
#[cfg(m2v_gpu)]
mod memory_make_hold_bench;
mod memory_reads;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod merge_scratch;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod mesh_reflection_derived;
mod metal_release;
mod mipmap_plan;
mod mipmap_scratch;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod missing_layer;
mod msaa_32bit;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod multisample_buffer_copy;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod multisample_buffer_layouts;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod nan_signs;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod narrow_writes_device;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod neutral_zeros_shared;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod no_copy_lies;
#[cfg(all(any(m2v_gpu, m2v_cpu_icd), target_os = "linux"))]
mod no_pointer_import;
mod noted_apart;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod notice_command_buffers;
mod numbered_samplers;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod one_import;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod opencl_data;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod opencl_images;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod opencl_kernels;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod opencl_mode;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod opencl_swizzles;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod opengl_mode;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod option_bit_20;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod optional_extensions;
mod options;
mod own;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod owned_kernel_builds;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod owned_pushes;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod padding_unobserved;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod pass_end_tiles;
mod pass_log;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod passing_holds;
mod pending_audit;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod pending_audit_device;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod pending_rebind;
mod pipeline;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod pipeline_dump;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod pipeline_wait_order;
#[cfg(unix)]
mod pixel_format_info;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod point_size_notices;
#[cfg(all(any(m2v_gpu, m2v_cpu_icd), target_os = "linux"))]
mod pointer_residency;
mod pool_room;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod pool_room_creations;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod posted_frees;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod primed_devices;
mod private_properties;
mod push_raw_writes;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod query_reset_gap;
mod queue;
mod queue_limits;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod queue_limits_device;
mod queue_quiet;
mod queue_share;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod queue_share_device;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod queue_sharing;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod queue_switch_gate;
mod range;
mod rate_map;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod read_through_constant;
mod reader_sizes;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod rebind_behind_a_wait;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod rebind_descriptor_slip;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod rebind_making_wait;
#[cfg(all(m2v_gpu, target_os = "linux"))]
mod reclaim_submit_bench;
mod record_pass_formats;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod recorded_at_the_call;
mod recorder_shards;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod recorder_slots;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod recycle;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod relay_facts;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod released_programs;
mod render;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod render_creation_cost;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod render_directory_trips;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod render_sibling_work;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod render_stage_digests;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod rerouted_scissors;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod rerun_arenas;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod reserved_queues;
mod residency;
#[cfg(all(debug_assertions, any(m2v_gpu, m2v_cpu_icd)))]
mod resident_uses;
mod resource;
mod resource_ids;
mod retained;
mod rotated;
mod sample_interleave;
mod sample_planes;
mod sampler;
mod sampler_cache;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod sampler_cache_live;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod sampler_prunes;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod sampler_release;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod sampler_sets;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod sampler_table_binders;
mod scheduler;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod scheduler_wakes;
#[cfg(all(m2v_gpu, target_os = "linux"))]
mod scroll_bos;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod self_read_storage;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod set_zero_at_offsets;
mod shader_cache;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod shader_cache_off_thread;
mod shader_cache_queue;
mod shader_cache_time;
mod shadow;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod shadow_carried_read;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod shadow_host_writes;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod shadow_merge_read;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod shadow_runs;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod shadow_standing_device;
mod shadow_stencil;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod shadow_twins;
#[cfg(all(debug_assertions, any(m2v_gpu, m2v_cpu_icd)))]
mod shared_draw_locks;
#[cfg(all(unix, any(m2v_gpu, m2v_cpu_icd)))]
mod shared_pointers;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod short_row_kinds;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod small_heap;
mod snapshot_area;
mod sorted_chunks;
mod spares;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod spares_bench;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod spares_latency;
mod sparse;
#[cfg(all(any(m2v_gpu, m2v_cpu_icd), target_os = "linux"))]
mod sparse_host_pages;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod srgb_fetch_images;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod stage_entries_shared;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod staged_work_teardown;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod staging_waits;
mod stand_in;
mod storage_form;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod storage_form_recycle;
mod submit_check;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod submit_check_device;
mod submit_stalls;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod submit_stalls_idle;
mod surface_depth;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod surface_shapes;
mod surface_two_planes;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod teardown_threads;
mod texture;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod texture_aggregates;
mod texture_descriptor;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod texture_facts;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod texture_holds;
mod texture_placement;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod texture_placement_device;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod texture_resource_options;
mod this_thread;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod threadgroup_memory_device;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod tile_pending;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod tile_rebind_making_wait;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod tiled_texture_device;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod tiled_texture_failed;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod tiled_texture_reencode;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod tiled_texture_step;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod told_once;
mod tracker;
mod trails;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod twin_flights;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod twin_reads;
mod two_plane_rows;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod unchanged_truth_copies;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod uniform_bind_offsets;
mod unique_identifier;
#[cfg(all(any(m2v_gpu, m2v_cpu_icd), target_os = "linux"))]
mod unmap_order;
mod unshared_hold;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod unsubmitted;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod upload_chunk_zeros;
mod values;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod vertex_conversion_notices;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod video_interop;
mod view_plan;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod waited_reads;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod waiter_submits;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod warm;
mod warm_record;
mod word_samples;
mod wrapped;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod write_routes_device;
mod written_commands;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod ycbcr_device;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod ycbcr_in_place_loop;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod ycbcr_refresh;
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
mod zeroed_start;
/// How long a device test waits for the device's submission checks to answer
/// (`Device::settle_submit_checks`): their run takes milliseconds alone, longer beside the
/// suite's other devices.
#[cfg(any(m2v_gpu, m2v_cpu_icd))]
pub(crate) const SETTLE: std::time::Duration = std::time::Duration::from_secs(60);