Take mesh-barrier-readers' lone-run contrast now its writers bind no store sink
What. The case's Apple M3 Max cost record takes the lone-run contrast (conformance cost --alone --runs 8 --write mesh-barrier-readers): shader_modules_made is bounded at 10, written as its ceiling, where the record held 9. The fold also moves four counts into the ones the selection decides: batches_held_past_a_look and heads_held_for_host_steps (0 alone, 1 and 2 in the set), queues_sharing_a_vk_queue (0 alone, 1 in the set) and new_buffer_bytes_cleared (3416 alone, 3800 in the record). The record's in-set bounds stay as committed. Why. The extra module is a different module, not a missed share. A variant's stage module is shared only between byte-identical SPIR-V words (the device's map is keyed by the words' digest, pipeline/objects.rs shader_module). The one that is now made twice is the emulated mesh draw's vertex stage, the 524-word shader that pulls the mesh outputs from two storage buffers. Its words name those buffers' set-0 bindings, which come after the pipeline's own set-0 bindings (numbered densely). Before a31d02e99a the two writer pipelines (mesh writer, fragment writer) bound the control buffer at 0 and the store sink at 1, so their vertex stage read the outputs at bindings 2 and 3, the same as the grid readers, whose set 0 holds the control buffer and the grid's one-word uniform. With the sink gone, the writers read them at 1 and 2 and the grid readers still at 2 and 3. The two modules differ in exactly two Binding decorations. The old sharing was a coincidence of the sink filling one binding. variant_pipelines_made stays 27 and pipelines per state 2.25. new_buffer_bytes_cleared falls by 384 bytes, the six writer draws' 64-byte sink regions. A whole-set measurement of the current tree (8 runs, not kept) reads 3416 in the set as well, so this difference comes from the deletion, not from the selection. The fold's rule reports every count the two shapes read differently, so it is reported now, with the 3800 bound taken before the deletion. That whole-set measurement also moved counts the deletion does not touch (command_buffers_replayed_inline 45 to 9, scheduler_wakes_host 4 to 6, scheduler_sleep_slices gone). Keeping it would have gated those at one process's reading, so the committed in-set bounds stay. Verified, MoltenVK 1.4.2 on the M3 Max: - a temporary probe (not committed) logged each module's digest and whether it was made or shared, with the case alone at c0ffb238b1 and d791928640, and spirv-dis of the dumped words: 9 made / 30 shared against 10 / 29, the only new digest the vertex stage at bindings 1 and 2, the old one byte-identical to the grid readers' (2 and 3), and the writers' old stages carrying the sink at binding 1; - the lone run reads shader_modules_made 10 in each of 8 runs; - the full replay exits 0: 1112 cases within their cost bounds, 10 unmeasured for the venue's recorded reasons, and the 173 gap rows exactly the ones known-gaps.tsv expects; - lavapipe (arm64, linux-gate): replay --cpu exits 0, its 891 gap rows exactly the expected ones; - the conformance host tests pass (1007/1007, the contrast and cost-coverage tests among them); clippy --workspace --all-targets --all-features -D warnings is clean. No version moves: no product behaviour changed. Originally d0f1b87e2e (archive/development-linear-2026-10-28).
This commit is contained in:
1 parent
6d603cb412
commit
0db5825a60
1 file changed
+8
-1
@@ -1413,7 +1413,7 @@
|
||||
"scheduler_sleeps": 9,
|
||||
"scheduler_wakes_commit": 6,
|
||||
"scheduler_wakes_host": 4,
|
||||
"shader_modules_made": 9,
|
||||
"shader_modules_made": 10,
|
||||
"shader_modules_shared": 30,
|
||||
"slot_returns": 6,
|
||||
"spare_command_pools_taken": 12,
|
||||
@@ -1436,12 +1436,19 @@
|
||||
"addressable_buffers_made": 2,
|
||||
"arena_pools_made": 3,
|
||||
"argument_samplers_taken": 8,
|
||||
"batches_held_past_a_look": 0,
|
||||
"device_memory_allocated": 1342177280,
|
||||
"heads_held_for_host_steps": 0,
|
||||
"new_buffer_bytes_cleared": 3416,
|
||||
"owned_kernel_spirv_bytes": 7928,
|
||||
"owned_kernels_made": 1,
|
||||
"pooled_memory_blocks_made": 4,
|
||||
"queues_sharing_a_vk_queue": 0,
|
||||
"render_passes_made": 3
|
||||
},
|
||||
"ceilings": {
|
||||
"shader_modules_made": 10
|
||||
},
|
||||
"per_state": {
|
||||
"pipelines": 27,
|
||||
"states": 12
|
||||
|
||||
Reference in new issue
Block a user