diff --git a/crates/metal2vulkan-validation/src/runtime_lane/framebuffer_fetch/coverage_chain.rs b/crates/metal2vulkan-validation/src/runtime_lane/framebuffer_fetch/coverage_chain.rs index b9a1c0d34..91b00cc06 100644 --- a/crates/metal2vulkan-validation/src/runtime_lane/framebuffer_fetch/coverage_chain.rs +++ b/crates/metal2vulkan-validation/src/runtime_lane/framebuffer_fetch/coverage_chain.rs @@ -58,7 +58,7 @@ use metal2vulkan::pipeline::{ColorAttachmentDescriptor, RenderPipelineDescriptor use metal2vulkan_runtime::{ BlitOption, Buffer, ClearColor, Deallocator, Error, IoSurfacePlane, Library, LoadAction, PipelineOptions, Region, RenderCommandEncoder, RenderPassDescriptor, RenderPipelineState, - ResourceOptions, ScissorRect, StoreAction, Texture, TextureDescriptor, + ResourceOptions, ScissorRect, StoreAction, Texture, TextureDescriptor, WorkCounts, }; /// The target's width and height. @@ -763,13 +763,22 @@ fn a_coverage_chain_through_fetch_keeps_every_block() { pipeline(&lane, &chain, ("chain_rects", "chain_coverage"), false), pipeline(&lane, &chain, ("chain_rects", colour), false), ]; + let before = lane.device.work_counts(); let texels = drawn(&lane, case, &pipelines); + let after = lane.device.work_counts(); let (count, blocks) = lost(case.coverage, color, &texels); + let ran = |count: fn(&WorkCounts) -> u64| count(&after) - count(&before); eprintln!( "coverage chain, {}, on {device} through {}: {count} texels from Metal's, 8x4 blocks \ - (x, y) {blocks:?}", + (x, y) {blocks:?}; {} instances begun, split for interlocked writes {}, for a \ + barrier {}, for a memoryless write {}; draws dropped {}", case.name, - form(&lane) + form(&lane), + ran(|c| c.render_passes_begun_instances), + ran(|c| c.instance_splits_interlocked_writes), + ran(|c| c.instance_splits_barrier), + ran(|c| c.instance_splits_memoryless_write), + ran(|c| c.draws_dropped_still_making + c.draws_dropped_unmade), ); if count != 0 { failed.push(case.name);