Gate m3-max-60393 (at a2476a2e76) failed clippy under --cfg m2v_gpu and m2v_cpu_icd:
every_device_the_loader_lists_is_above_the_floor destructures floor::Features, which now has
line_rasterization. It takes it and chains it as device creation does, with the floor's
required robustness2.
The replays of a2476a2e76 (m3-max-60395 lavapipe, 60396 RTX 3090, 60397 RX 550, 60399 Iris Xe)
were checked against the case. With Bresenham's rule, primitive-type-restart-indices' Line and
LineStrip cells are Metal's on lavapipe. On the RTX 3090, the RX 550 and the Iris Xe each differs
by two texels at the boundary point (3.5, 1.0), the same four rows on all three venues: the
diamond-vertex tie, where Metal covers the lower pixel and the device the upper. These are
accepted-difference rows, venues NVIDIA, RX 550 and Iris(R) Xe, under docs/API.md section 10's new
sentence (a line's tie-break is the device's own).
Every alpha-to-coverage and alpha-to-one case announced the new
metal2vulkan-degrade-device-line-rasterization (a2c-on-*, a2one-on-*: 11 rows a venue), which no
case declared. The note is the device's own line rule, the one form such a state draws lines in,
so it joins the suite's native notes (replay::NATIVE_NOTES), declared for every case beside
device-alpha-coverage. A case never names one itself (no_case_names_a_native_note).
Mesa 26.3.1's KosmicKrisp on an Apple M3 Max lists VK_EXT_line_rasterization and
VK_KHR_line_rasterization, with bresenhamLines true (job m3-max-60379, vulkaninfo), so the macOS
driver still meets the floor with its new item.
Metal covers the pixels whose diamond a line exits. Vulkan's default line rule is the device's
own: on a device whose strictLines is set (lavapipe, NVIDIA's driver), the rectangle of the line's
width. The new runtime chained no line state, so primitive-type-restart-indices' four Line and
LineStrip cells differed from Metal on lavapipe (m3-max-60347) and on the RTX 2080, 3090 and 5080
(round 50b8fbb64f) by 7, 7, 5 and 13 texels. Those are exactly the counts the case's doc records
for lavapipe without Bresenham's mode. The old runtime chained the mode (73c4e3ab3c). Restart is
not involved: rt restarts strips alone, as Metal's recording does.
The floor takes VK_EXT_line_rasterization and its bresenhamLines (the planner's ruling, rung 1:
one form for every device). There is one extension name, the EXT, because every capture lists it:
- RX 7900 XTX, RX 550, RTX 3090 and RTX 2080: vulkaninfo, jobs m3-max-60382 to 60385. Each also
lists the KHR, with bresenhamLines true.
- KosmicKrisp on the M3: m3-max-60379.
- The committed profiles of RADV (780M, RDNA2, RDNA3), ANV (Iris Xe RPL-P and TGL, ARL, UHD 770),
lavapipe and NVIDIA (RTX 5080 and the laptop part, GTX 1060).
- The Windows UHD 630's capture, a Vulkan 1.3.215 device.
No venue lists the KHR name alone. Vulkan 1.4 requires bresenhamLines of every device.
The line class's VkPipeline chains VkPipelineRasterizationLineStateCreateInfoEXT with
VK_LINE_RASTERIZATION_MODE_BRESENHAM_EXT. A state that enables alpha to coverage or alpha to one
is the exception, since the mode takes neither (VUID-VkGraphicsPipelineCreateInfo-
lineRasterizationMode-02766); the runtime enables no sample shading, the third member the VUID
names. Such a state's lines are drawn by the device's default rule, and the state carries the new
static PrecisionNote::DeviceLineRasterization (metal2vulkan-degrade-device-line-rasterization),
decided by its descriptor alone and never fatal. The note is entered in docs/API.md's catalogue,
mapped in the conformance crate's Degradation and validation's allowance table, and added to the
cache codec's list (the translator never records it).
docs/API.md's accepted differences gain the one sentence on a line's tie-break: Vulkan's diamond
is open, so which pixel a line covers where it only touches a diamond's vertex is the device's
own. The case's doc measured Metal covering the lower pixel and the RTX 5080 the upper.
The README's floor lists gain VK_EXT_line_rasterization and bresenhamLines, and its render
pipeline section the line rule. The floor tests take the feature and the extension.
Test: draw's every_device_notes_the_device_line_rule_under_alpha_to_coverage_or_one
(`draw_line_rule`): a plain state carries no DeviceLineRasterization and draws its line across row
2 by Bresenham's rule; alpha-to-coverage and alpha-to-one states carry the note and draw the same
row by the device's rule.
the_old_render_descriptor_key_keeps_its_value pins the moltenvk-m3 render descriptor key, and the
key moves with SEMANTICS_VERSION. m3-max-60465 printed a23d24d06c968a0d63e64950646d9e80ce8e8624fa6b92418dc289e104fdc02b
at bb5b65df9e (SEMANTICS 2217). The fixture's bytes kept their pinned sha256.
- The simdgroup_lockstep cases also loosen the notices site by simdgroup-access-order
(replay::notice_allowance). The site holds the whole announced set, and the walk loosens it only
where an allowance covers it, so the output's allowance alone left that site divergent. The stub
test the_lockstep_cases_justify_their_words_by_the_access_order_note failed on exactly that
(m3-max-60440).
- SEMANTICS_VERSION 2217 and ARTIFACT_FORMAT_VERSION 560, the numbers main gave for this landing.
- docs/CONFORMANCE-COVERAGE.md re-derived: the case's tolerance is now a Degradation.
Under the identity domains (the runtime's) the translator puts no barrier between two accesses
that different threads of one SIMD-group make to the same bytes between barriers, which an Apple
GPU orders by running the group in lockstep. The Metal Shading Language calls such a pair a data
race, and docs/API.md lists the difference as accepted. Until now that difference was silent. Two
private validation kernels through the runtime on lavapipe (129666ac, 4b74b854) mismatched for
this reason alone. The same translation with the lockstep order put back (probe 61461f3a67, not
landed) matched Metal byte for byte in both (job m3-max-60389).
- PrecisionNote::SimdgroupAccessOrder, a static note that names the Metal behaviour. It is
recorded for every kernel in which the translator finds such a pair, on every device under the
identity domains. The resident-table domains order each pair with barriers and record none.
- lower/simd/lockstep.rs: OrderKey::of gives every profile a key. Under the identity domains the
key orders nothing (unordered): order() runs the pair search alone, stops at the first space
with a pair, inserts no barrier and sets Lockstep::unordered. select records the note from it.
ordered_entry loses its None arms. The found entry is kept under its key in StageEntries, as an
ordered one is.
- Announced as metal2vulkan-degrade-simdgroup-access-order (the conformance Degradation kind).
docs/API.md's catalogue entry is placed beside the accepted difference, which now names the
note. The conformance simdgroup_lockstep cases justify their output words by that notice, so
the runtime's side does not announce it undeclared. Validation derives no tolerance from it
(Allowance::Unbounded).
- SEMANTICS_VERSION 2212 -> 2213 and ARTIFACT_FORMAT_VERSION 557 -> 558 (the appended codec
variant); renumbered at landing. api_signatures.tsv regenerated (the variant twice and
Lockstep.unordered). docs/REFUSALS.md does not move.
Tests: the identity-domains lockstep test now asserts that each row-store kernel records the note
under the identity domains and not under the resident ones. A new pair-free kernel (each thread
its own word) records it under neither. A conformance stub test checks that a changed output
word, with the notice announced, reads announced.
The AND return (8347a38f5f) made ops::mask an OpBitwiseAnd by 2^N-1 on
every device, and its own tests followed, but two more tests still
asserted the OpBitFieldUExtract(x, 0, N) form it removed:
- device::tests::from_queries: the GA10x description's narrow clamp is
now checked for an AND and no unsigned extract (renamed to
from_queries_clears_a_narrow_value_by_an_and_on_ga10x);
- engine_tessellation::ushort_patch_and_instance_indices_are_masked:
each load of a ushort patch or instance input is now checked for an
OpBitwiseAnd with 0xffff.
Found by valexec's compile check m3-max-60440 at c215085aec (both
failed there, with 8347a38f5f in its base). Verified by the focused
job named in the landing.
They are generated from the whole case set, and the set grew on `development`
while this branch was in flight, so the copy committed here counted a smaller
one.
Verified: regenerating at this tip leaves no change beyond the `Generated at`
stamp.
The key of the_old_render_descriptor_key_keeps_its_value hashes SEMANTICS_VERSION. 25916669cf
(2213) and 2ac50956eb (2214) move it, from development's pin, set at 2209 in c215085aec, to
df7cb6a0cd..., the value job m3-max-60422 computed at this branch's 2214.
The round at 50b8fbb64f printed the same 12 point-viewport-coverage rows on the RTX 2080, 3090
and 5080, both Radeon 780M legs and the RX 550 as on the RX 7900 XTX: the same sites with the same
answers, every one a point whose centre lies past 1.5 w (offsets 1.5000001 and 2, either sign),
which Metal culls and the device draws. They take the XTX rows' accepted difference, each with
the venue's own name (venues NVIDIA, 780M, RX 550). Each venue's set was asserted equal to the
XTX's before writing.
60314 (at 7e64aa81b4) failed engine_stage_io's a_point_size_past_metals_largest_point_is_stored_as_it
and engine_mesh's two point-size tests: their helper point_size_stores took a stored select whose
first choice is the 511.0 constant as Metal's point size, and metal_point_size now stores the
select of a size not greater than 0's 1.0 over that one. The helper now asks for the outer select's
second choice to be the 1.0 constant and its first the 511 select. The mesh module's doc names
the 1.0 beside the 511.
The conformance replays of the round at 50b8fbb64f (RX 7900 XTX, Iris Xe) and of this branch
(m3-max-60347 lavapipe, m3-max-60348 XTX, at 7adb304933) reported rows the ledger did not hold
and rows it held that no longer happen:
- point-viewport-coverage on the RX 7900 XTX (12 rows) and the Iris Xe (55 rows): accepted
differences, as 4f4c67b0af took lavapipe's (docs/API.md section 10: a point's clipping is the
device's own). Every row is an edge or a clip-volume row. XTX: all 12 are points whose centre
lies past 1.5 w (offsets 1.5000001 and 2, either sign), which Metal culls and RADV draws. Iris:
the 50 rows where we drew nothing and Metal drew cover a pixel that the viewport's right or
bottom edge crosses or that lies past that edge. That includes the centre of v2 = [4.7, 1 wide],
whose pixel 5 the edge at 5.7 crosses, and the v1 and v5 rows of fractional extents. The 5 rows
where Metal drew nothing are past 1.5 w. No row has Metal drawing nothing and us drawing within
the clip volume.
- pipeline-facts-compute-imageblock: the refusal's answer now names the fact
(`RuntimeFact { fact: "ImageblockSize" }`, 66f494156d), so the row takes the new text.
- buffer-texture-blits-overlapping: onto-itself-disjoint is built (c48ad2340c), and its row
goes. onto-itself-overlapping is refused (Gap::TextureCopy, not built, as ruled), and its row
comes, with the refusal's text: Metal leaves the copy undefined, and one vkCmdCopyImage cannot
make it (VUID-vkCmdCopyImage-pRegions-00124).
- render-draw-forms-points and -empty: points are drawn (b975f6ddf7), so the case reaches its
indirect draw, which the suite's rt side answers `render step DrawIndirect` Unavailable. The
runtime has no indirect draw (only draw_primitives, draw_indexed_primitives and draw_patches),
so no point pipeline is chosen on an existing path. The rows take render-draw-forms-triangles'
answer and reason.
- primitive-type-restart-indices' two Point pass rows go: points are drawn.
Metal's pipeline creation fails for a vertex function that writes `[[point_size]]` under the line
or the triangle input primitive topology class ("Vertex shader writes point size but
inputPrimitiveTopology is MTLPrimitiveTopologyClassLine", measured on an M3 Max, macOS 27.0.1,
the conformance crate's topology_classes probe), and makes it under the point and the
unspecified class. The runtime made all four, so the round's
topology-class-point-size-function on the RX 7900 XTX recorded render-pipeline:line and
:triangle true where Metal recorded false, and drew lines and triangles Metal never drew
(drawn:, target:line and :triangle).
RenderCompiled::of now refuses such a state with the new
Refusal::PointSizeTopology { class }, read from the translator's graphics.writes_point_size and
the descriptor's class, before any Vulkan object is made. The descriptor key already covers the
class, so a cached content of another class never answers for it.
The ledger's row for the case's drawn:unspecified refusal ("a draw with Points is not built") is
stale: points are drawn now, and the round reports it no longer refuses. Dropped.
The runtime README's point bullet states the refusal and the 1.0 stored for a size not greater
than 0 (the previous point-size commit); docs/REFUSALS.md regenerated and the api_signatures
table blessed (one variant row).
Test: draw's every_device_refuses_a_point_size_function_under_the_line_and_triangle_class
(`draw_point_size_class`): rt6_point's state is refused with the class under Line and Triangle and
made under Unspecified and Point.
The fragment family's finish runs for every stage, and it recorded
PrecisionNote::QuadsSplitByClipping for any function with an operation over its group's active
lanes, so a kernel (and a vertex or mesh function) with a simdgroup reduction, vote, ballot or
first-lane read announced metal2vulkan-degrade-quads-split-by-clipping. Clipping splits a
fragment quad alone, and the note's own doc (artifact.rs, docs/API.md) names a fragment function;
the record now asks for Stage::Fragment too. The conformance round's
compute-threadgroup-memory-reads-zero announced it on the RX 7900 XTX (case/notices, /set and
/counts), which Metal and the case declare nowhere.
SEMANTICS_VERSION 2213 -> 2214 (a kernel's stored notes change).
Test: engine_simd's only_a_fragment_function_records_quads_split_by_clipping: on every committed
profile that compiles them, fragment_discard_counts' discard_counts records the note, and
simd_ops' simd_sum_k, simd_vote_k, simd_ballot_k and simd_first_k and rvc_simd_vertex's vertex
function record none.
The M3's regen-air-fixtures.sh --dir examples runtime_examples (job m3-max-60305, Apple metal
32023.922, macosx-sdk 27.2, LLVM 21) writes the .ll and .air.ll of the source the previous commit
gave sized_vertex; TOOLCHAIN is unchanged.
A vertex or mesh function's `[[point_size]]` reached `PointSize` as written below Metal's limit,
so a zero, a negative or a NaN size went to Vulkan, whose points take a `PointSize` greater than
zero alone ("The value written to PointSize must be greater than zero"). metal_point_size now
stores the guest's size where it is greater than 0 and at most 511, 511 past that (an infinity
too), and 1.0 where it is not greater than 0: a zero, a negative or a NaN, which fails the
ordered comparison. 1.0 is the size every device draws, the one a function without
`[[point_size]]` writes. Metal's answer for these three inputs is undocumented and unmeasured,
and the doc says so. The form is one more comparison and select and two constants;
POINT_SIZE_WORDS counts them.
SEMANTICS_VERSION 2212 -> 2213 (the stored output changes for every function that writes a
point size).
Test: the runtime's draw test every_device_draws_a_point_of_no_positive_size_1_pixel_wide
(`draw_point_sizes`) draws three points of sizes 0, -1 and NaN through runtime_examples'
new `sized_vertex` and expects one green pixel at each, black elsewhere, and its command buffer
completed. The fixture's AIR companions are regenerated on the M3 in the next commit.
The mask's AND return (8347a38f5f, 2211) and the policy arms (c215085aec, 2212) moved the
golden table's cells under changed keys: the tip's golden_hashes_match_the_table failed as
'stale' (a bless due), not as 'changed under an unchanged key' (m3-max-60402). Blessed on the
M3 in m3-max-60403 (302 rows). the_old_render_descriptor_key_keeps_its_value takes the value
60402 printed at 2212.
Gate m3-max-59970 at 7c2d4e2725 failed two tests the policy arms move (mechanism and the golden
table are development's: the orphan pass's every_fact gap and the table before its bless):
- device::tests::description's serde round trip took the identity domains as its second policy
and unwrapped Device::from_queries on profiles that refuse them (no bufferDeviceAddress or
shaderInt64). A refusal now has to be the decoded pair's too, with the same message; a derived
pair still has to keep its fingerprint.
- pipeline::compile's old render key takes its value under SEMANTICS 2209 (fa7c26605e..., the
gate's left side).
Verified: nothing yet; the recheck follows.
The device and binder sources moved with the policy arms (part 1 carries their SEMANTICS bump
now); the runtime-sources pin follows them (runtime_pin.py at this commit, a68e15d747...).
RUNTIME_VERSION stays: under the one policy left, the binder plans as before.
Verified: nothing yet; the gate follows.
The enables module no longer names DevicePolicy, so its tests import it. API.md and
VALIDATION.md say the default domains' bounds, and an unbounded threadgroup access, instead of
containment and isolation. api_signatures.tsv is regenerated (signatures.py --bless); REFUSALS.md
is unchanged.
Verified: clippy follows as a potluck job.
The texture-level rows no longer carry whether they stay inside every element (only the
removed uncontained class filtered on it); the coverage test names Robustness, and two
imports that only the removed arms used go.
Verified: clippy follows as a potluck job.
Partial: the device and engine tests still name the deleted types. Verified: nothing; the next commits finish the tests.
SEMANTICS_VERSION 2209 is in this commit, the one that moves the profile fingerprint and every
key over it (the planner's rule: an emitting commit carries its own bump); main renumbers it at
the landing.
e709d20810 cleared the bits above a narrow width in a 32-bit container with
OpBitFieldUExtract(x, 0, N) on every device, under an unchanged SEMANTICS_VERSION (2205; its
batch bumped once at the end, 64045848c4). The consumer's Windows host (Intel UHD 630, driver
101.2145) loses its device at a desktop's first pipelines from 2206 on; its keep at e709d20810
ran from a warm runtime cache written at 9ea53f7acd under the same 2205, so it ran the AND
modules and never the extract.
ops::mask is the AND by 2^N - 1 again, the form every device ran from 11-17 until this morning.
On the RTX 5080 Laptop under NVIDIA 615.71.09 rt's every_device_zero_extends_a_narrow_clamped_sum
passed with the AND in the rounds at e9d5240b77 (m3-max-58802), 8012fff5a1 (58892) and
96d335ef46 (59572); on the RTX 3090 under 620.70.06 the forced AND gave 0 of 256 wrong words over
sixteen shapes (70761aa00f, m3-max-41627). The AND's one known failure is 615.71.09 on Ampere
GA10x, which no card we run has; the runtime's README records it.
- lower/arith/ops.rs: mask is the AND alone; the extract branch goes.
- SEMANTICS_VERSION 2211 in this commit, a number no pin has used, so every cache holds the
change cold.
- Tests: lower/arith/tests.rs a_narrow_mask_after_a_signed_clamp_is_an_and (masks, no extract);
rt tests::narrow asserts four or more masks by a narrow width's bits and no extract.
- The runtime's README, known gaps of pipeline states: the AND's old NVIDIA failure, and why the
extract is not used.
requirement::tests::mesh_requirements_stop_the_executors_that_do_not_draw_them_yet lists the
requirements whose cases stay Metal-qualified; SeqCstFence is now one. A test of the fence's own
stops, limit, closure and name joins the texture buffer member's.
Found by the gate (potluck m3-max-60336, the lavapipe suite: 1467 of 1468 passed).
The translator orders a seq_cst fence, and a program's seq_cst barrier whose memory scope is the
device, with the command buffer's other such fences through an atomic on its execution status
word (lower/sync/barrier.rs). The runtime's identity domains reach no such word, so the runtime
refuses the pipeline as Unsupported{IdentityDomains} naming ExecutionStatusAddress. The ruling is
a typed refusal with one structural requirement and no form for now.
ToolingRequirement::SeqCstFence ("seq_cst_fence") stops the engine's candidate and keeps its
cases Metal-qualified (qualifies_on_metal), as TextureBufferMember does. It is classified from the
AIR alone (executor_contract::seq_cst_fence): in the entry's function and the functions it reaches
by direct calls, an air.atomic.fence of order seq_cst at a scope beyond the thread (threadgroup
only in a stage with a threadgroup), or a barrier of the MSL 4.1 form of order seq_cst whose memory
scope is the device or all devices, each naming a memory among device, threadgroup, texture and
threadgroup imageblock. A barrier of the AIR 2.8 form orders memory at its own execution scope and
is no claim. The scan reuses min_lod_clamp's function bodies and direct callees.
Both directions: the candidate refuses a case carrying the requirement at its preparation, before
any device; and a device test runs the public fixture a4_device_fence through the runtime and
asserts the typed refusal naming ExecutionStatusAddress, so the day the runtime runs it the test
fails and the requirement goes.
What lost execution: the public cases the requirement now stops are 3 kernel cases and 1
fragment case (counted from the public sources by the requirement's rule). Two of the kernels are
family A's, which already met the refusal through the runtime: 8ebbfe88 (a4_device_fence, a
seq_cst fence) and 914fc7fd (a27_memory_order, MSL 4.1's seq_cst barrier at the device's memory
scope). The other kernel and the fragment case ran on the old executor until now. The six private
family-A rows that met the same refusal are all seq_cst fences by the same rule (none is an
absent-argument read).
The classifier's file joins METAL2VULKAN_CLASSIFIER_INPUTS, so the analyzer key changes and every
cached triage recomputes; ENGINE_EXECUTOR_ABI moves to vulkan-engine-v186.
Tests: executor_contract::seq_cst_fence's unit tests (the claimed forms, the forms the translator
emits without the word, a callee, an unreached function, and the two public fixtures), and
candidate::tests::engine_compute::a_seq_cst_fence_is_refused_through_the_runtime_as_its_requirement_says
on lavapipe.
A texture is made at an index of a live grant of its class; the test's ShaderRead texture over
a Shared buffer took the class's first index ungranted. It grants that index first, as the
other texture-over-buffer tests do.
Metal resolves into a texture of any usage. Probe resolve_texture_usage.m (M3 Max, macOS 27.0.1,
job m3-max-59768) showed this, and a guest's walk met it twice: a map view's 900x900 pass
resolves a 4-sample BGRA8Unorm_sRGB colour, beside a 4-sample Depth32Float_Stencil8 and with
every load Load, into a 1-sample BGRA8Unorm_sRGB Shared texture of ShaderRead usage. The runtime
refused that as RenderPassKind::ResolveUsage and skipped the pass, so the view missed its drawing.
Form A, as ruled: every one-sample colour texture (2D, 2D array or cube) whose image is optimal
now takes the colour attachment usage on every device where its format renders, whatever
Metal's usage. A pass resolves into it by Vulkan's own resolve, as into a render target.
- texture.rs plan() sets Plan::resolves for a one-sample colour texture of those types made
without the attachment usage, where the format's features hold the attachment
(plan.supported). The optimal image's format query runs with the usage. Where it refuses the
image or the image does not fit the texture's samples, extent and layers, the image is made
without the usage. Plan::image_usage gives image_info and the texture's Image the usage. Such
a texture is no render target: it takes no feedback usage or shadow for attachment reads,
and a pass that renders into it is still Refusal::AttachmentUsage.
- A linear image in place over a buffer (linear_usage, check_over, linear_layout, the plane
checks) is unchanged. It takes no attachment usage for a resolve alone, so it stays in place
and is never copied to gain one, and a resolve into it stays ResolveUsage. A texture over a
buffer in its own optimal image (the counted copy) takes the usage like any optimal image, and
the pass's write of it is copied back as a render target's is.
- pass.rs resolve() reads the image's own usage (TextureObject::resolve_attachment) in place of
Metal's. ResolveUsage remains for an image with no attachment usage: a depth or stencil
texture (macgaps measured no depth format), a colour texture of another type or of a format
the device's optimal image does not render, and a linear image in place.
Memory: macgaps' table (jobs m3-max-59774, m3-max-59775, m3-max-59776) shows the worst pair on
the Radeon 780M (RADV): a 1920x1080 one-level RGBA8Unorm image grows from 8,847,360 to 8,896,512
bytes (1.0056). On the RX 550 the same image reaches 8,882,200. The Iris Xe, RTX 3090, llvmpipe
and KosmicKrisp show no growth.
Docs: RenderPassKind::ResolveUsage, resolve_texture's doc and the runtime README's resolve
paragraph and known gap say what is true now. docs/REFUSALS.md regenerated (the attachment
view's function is now attachment_view). No public signature moved.
Tests (lavapipe): every_device_resolves_into_a_texture_of_shader_read_usage is the probe's case.
A 4-sample BGRA8Unorm_sRGB attachment cleared to (0.25, 0.5, 0.75, 1) is resolved into a
1-sample Shared texture of ShaderRead usage, and of ShaderRead | ShaderWrite. The image has the
attachment usage, Metrics::resolves rises by one, and every texel reads the clear colour within
one code. A depth resolve into a ShaderRead Depth32Float texture is ResolveUsage. A ShaderRead
texture over a Shared buffer in place has no attachment usage, and a resolve into it is
ResolveUsage. every_device_resolves_a_loaded_pass_beside_depth_and_stencil_into_a_shader_read_texture
is the walk's shape: 900x900, colour beside a 4-sample Depth32Float_Stencil8, every load Load,
resolving what an earlier pass cleared. The old check that ShaderRead and ShaderRead |
ShaderWrite resolves are ResolveUsage is gone, since both now resolve.
The orphan pass (8bf93f30f8) deleted RuntimeFact::ViewportCompensation and its number 55 from
mechanism.rs's every_fact and variant, but the test still asserted the numbers 0..106, so
mechanism_is_total_over_every_fact_and_profile failed on development (gate m3-max-59951 and
m3-max-60010 both show 'every_fact misses a variant', 55). GridTiles, the last number (105),
takes 55 and the test asserts 0..105: one number for each of the 105 variants.
Verified: nothing yet; the recheck follows.
Clippy m3-max-59897 at 0507203721: unused TEXELS and run in chroma_decode's tests, hdr_formats in the ASTC HDR tests. Verified: nothing yet; the recheck follows.
api_signatures.tsv regenerated (signatures.py --bless: the five items, the shape's constants and
PvrtcDecode::shape go); REFUSALS.md is unchanged. The runtime pin moves without a RUNTIME_VERSION
bump: the binder's deleted modules had no caller, so nothing the runtime binds changes.
Verified: runtime_pin.py at the parent commit; the gate follows.
astc_decode_module, pvrtc_decode_module, etc_decode_module, chroma_decode_module and
BlockDecodeModule had no caller outside the translator crate: neither the runtime, the harness,
validation, conformance nor reims's crates name one, and no crate code calls them. They go with
their typed kernels (astc_decode/kernel.rs and kernel/hdr.rs, pvrtc_decode/kernel.rs,
etc_decode/kernel.rs, chroma_decode's decode kernel), block_decode.rs, PvrtcDecode::shape (the
module's shape), and the tests that compared each kernel with its CPU decode or validated it.
The CPU decodes stay (AstcDecode, PvrtcDecode, EtcDecode, ChromaDecode and their texels): the
conformance suite reads them as Metal's answers. The in-place and sample modules of the 4:2:2
family stay as asked; their three binding symbols move into chroma_decode.rs.
api_surface drops the five rows; api_signatures, REFUSALS.md and the runtime pin follow in the next
commit.
Verified: nothing yet; the gate follows.
The enum listed 33 defects of named drivers in commands a runtime records, keyed on the driver's
identity and release (rule 2). The runtime constructs none and reads none: no crate of ours, and
none of reims's, names a variant. With it go Needs::RuntimeDriverDefect,
Unsupported::runtime_driver_defect, validation's UnsupportedReason::DriverDefect ("driver_defect"
keys; the stale census rows that carry one go at the next re-bless), the conformance verdict's
device-gap arm, the error and engine key tests' entries, the API guide's Needs entry and the
refusal surface script's constructor.
Since nothing reads a variant, no ladder rung follows from one: no site becomes a precision note or
a typed gap. The four docs that cited a variant now state what Vulkan or the module does without
it: the depth/stencil copy modules (maintenance8's copies), the generated-commands replay (the
explicit preprocess form, which the runtime does not take), the validation executor's set-layout
query note (MoltenVK's understated answer), the pipeline-cache probe's comments (MoltenVK compiles
a seeded cache's shaders at load), and SeparateMultisampledDepthStencil's refusal (maintenance8
alone).
NativeHalfConversion's bound adds NVIDIA 620.70.06's measurement on the RTX 3090: the pair is
dropped under the 16-bit RTE, DenormPreserve and SignedZeroInfNanPreserve too, every float that is
no half coming back unchanged over all 2^32 inputs. The bound already covered no rounding at all.
REFUSALS.md and api_signatures.tsv regenerated.
Verified: nothing yet; the gate follows.
Every case family A routed through the runtime failed in the device worker's parent with
"decode the device worker's report: trailing characters": the validation layer, which the
runtime run enables through the loader's variables, prints "Validation Layer Info - Logging
validation error to <log>" through C's buffered stdout when it opens its log file, and that
buffer flushes at exit, after the worker's report, onto the report's own line.
report() now writes the report as a line of its own and then points the process's stdout at
its stderr (dup2), so what anything writes after the report, the C buffer flushed at exit
included, reaches the worker's stderr. The device worker's parent decodes the last line of the
worker's stdout, as run_json already does for every other worker.
Tests that fail without the change: worker::tests::a_library_s_stdout (a fresh process writes
through C's stdout before and after its report; run_json decodes the report), and
worker::device::tests::a_worker_s_report_is_the_last_line_of_its_stdout (a line before the
report is not the report).
Found by the public family-A proof (potluck m3-max-60091: 559 of 561 public cases failed this
way after, 0 before); the layer's line was seen on stdout by m3-max-60134.
float_reductions matches the call's callee by place, and RuntimeKernel's documentation names
the engine's private helpers in prose rather than linking them.
Found by the compile gate (potluck m3-max-60083: clippy match_ref_pats in check/interface.rs,
rustdoc private-intra-doc-links in candidate/engine.rs).
NumberedSampler is non-exhaustive: a numbered sampler of a kind the run does not know now
fails the run once the make returns, rather than taking an index unasked. The widest-pin
device test reads the census module's subgroup shape as the Option it now is.
Found by the compile gate (potluck m3-max-60045: clippy E0004 in platform/runtime.rs, and
E0609 in candidate/tests/widest_pin.rs under --cfg m2v_gpu).
The engine candidate's Vulkan executor runs a kernel case of buffers (device buffer arrays
included), threadgroup memory, function constants and linked functions, dispatched by threads
or threadgroups and observing a buffer, through metal2vulkan-runtime as a consumer runs it
(engine::runs_through_runtime decides it from the case's structure; platform::execute_runtime
runs it): Instance, the loader's first device of the kind, Device with the default options,
the library and function from the row's AIR with the case's constants and linked functions,
one compute pipeline state, one Shared buffer per binding as the oracle makes it (a bound
buffer padded to its declared size), one compute encoder, one dispatch, the bounded wait and
the readback. Only on the native backend, in the stated leg and without a profile restriction;
every other case keeps the executor's own context until its family's landing.
The device worker enables VK_LAYER_KHRONOS_validation for the run through the loader's and
the layer's variables (core and synchronization validation, every message, one log per
process); a device with no active validation tool fails the run, and so does any logged
message. The pipeline state's make is held to 500 MiB of peak live allocations
(worker::alloc::bounded: an allocation past it ends the process with exit 87 and a stderr
line) and 20 s; the driver's creation to the case's bound; every pipeline is made before the
submission (prepare_dispatch).
The row keeps what the runtime answers: the state's precision notes and the runtime
fingerprint (engine::runtime_fingerprint: the product, SEMANTICS_VERSION and the runtime
crate's sources, METAL2VULKAN_RUNTIME_CRATE_FINGERPRINT from build.rs). spv_sha256, the
status, the census module's subgroup shape, containment and artifact are absent (Option, serde
default); the index's staleness accepts the runtime fingerprint as this build's.
ReductionOrder: the comparison keeps the note's per-operation allowance. The census strategies
of a runtime row are the simdgroup float sums and products the case's AIR calls
(check::interface::float_reductions, from the entry's module and each linked module), under
the names the translator's strategy census gives them, so ComparisonClass::derive bounds the
same operations with the same reorder table as before; a note no such operation explains
(a simdgroup matrix's) stays unbounded, as before.
ENGINE_EXECUTOR_ABI v185: rows of these cases record another environment and census.
On Windows the crate is the replay player, whose one wait is the runtime's (gpu::wait's
new_runtime), which ends only completed or timed out. The fence and Metal waits that report the
other endings (unresolved, a suspected fault, an ordinary failure) and settle(), which only they
call, are absent there; with them, the verdicts only those endings give. Found by the first
Windows clippy pass of the player (m3-max-60165: two dead-code errors in gpu/wait.rs).
On Windows, metal2vulkan-validation is the replay player alone (command-replay): the replay module,
and gpu without its Metal compile deadline. Every other module (cases, corpus and its worker,
budgets, audits, the Vulkan batch) is absent there under cfg(not(windows)), with no Windows form
of any of them. The crate's modules form one dependency cycle through the worker (gpu's compile
deadline runs its tools in the worker's process groups), so gating the worker gates every module
that reaches it; the player reaches only gpu and replay. ash, which the player and command-replay
use, becomes a dependency on every host instead of macOS and Linux only.
A kernel whose module carries a RuntimeFact the compute encoder does not supply was refused as
Gap::KernelInput { kind: KernelInputKind::RuntimeFact }, and the error did not say which fact. A
guest's boot met it once, on a system kernel's compute pipeline, with no way to tell what to build.
- The translator gives each fact a name: RuntimeFact::name, the variant's name as a &'static str,
without its fields (crates/metal2vulkan/src/pipeline/facts.rs, one arm per variant).
- KernelInputKind::RuntimeFact becomes RuntimeFact { fact: &'static str }, so the kind stays Copy
and Hash. The catch-all of the runtime's fact match fills it, which also covers an address
alignment of a slot that is not a kernel's buffer or is not a power of two. Error's Display
prints the kind, so the refusal's text carries the name.
- The runtime README's two imageblock lines say which fact the refusal names.
- api_signatures.tsv blessed (the new method, the variant's new shape); docs/REFUSALS.md
regenerated, unchanged (it names the Gap, not the kind's variants).
The consumer names neither KernelInputKind nor RuntimeFact in its code
(consumer-uses.sh KernelInputKind RuntimeFact: 0 code hits on its development 62b3227c74 and its
steelbrain/* refs of the last day), so the variant's new shape breaks nothing there.
Test: the lavapipe test of an explicit-imageblock kernel (a4_imageblock_extent) now expects
KernelInputKind::RuntimeFact { fact: "ImageblockSize" }, and its text check reads the name in the
refusal. Without the change the kind carries no name and the test does not compile.
What: the player's places (validation src/replay/new_runtime/places.rs) give a
pooled block back to the runtime (Device::release_block) once its last place is
free again, as the runtime's own blocks go back, so the runtime's idle rule frees
its allocation; a later place takes a block again. The places whose commits have
completed are now freed at each commit as well as at each take, so a stream that
stops placing buffers after a scene still gives its blocks back.
Why: the player kept every pooled block it ever took. In a lavapipe play of a GL
scene stream (glbench-780m-r2, probe job m3-max-60056) it held 141 Private blocks of
16 MiB, 2.2 GiB, for 40 live buffers after the scene closed, so a play's Private
memory gauges measured the player's pool, not the runtime.
How verified: the lavapipe test
an_emptied_pooled_block_goes_back_to_the_runtime (forty 1 MiB places take three
blocks; nothing goes back while the releases' commit is pending; the first block
goes back once its sixteen places are free, every block once all are, the runtime's
private_take_held_bytes falling with them; a later place takes a block again), in
the branch's gate job. rt_replay's device helpers are opened to the replay module
for it.
The gate on 47beec7b7a failed clippy (all three configurations) and
workspace Rustdoc in metal2vulkan-conformance:
- seven public all() docs said "in [`FORMATS`] order", an intra-doc
link to a private constant (astc_textures, compressed_decode,
compressed_moves, compressed_views, etc_textures, pvrtc_cpu_order,
pvrtc_rows); they now name it as code, unlinked;
- buffer_depth_samples' rewrapped header put "+ (x * n + s) * bpp`" at
a line's start, which Markdown reads as a list item with the rest of
the paragraph as its lazy continuation (clippy's
doc_lazy_continuation); the code span is on one line again.
The golden hash table compiles through Device::from_queries (docs/
VALIDATION.md already says so), not Device::new, so the matrix's
comments and its problem message say that. The gate keeps its behaviour
under its own name: results.golden_table_moved (was old_path_moved),
GOLDEN_FIX (was OLD_PATH_FIX), and the leg's problem "GOLDEN TABLE
MOVED" (was "OLD PATH MOVED"), with VALIDATION.md's line and the test
following. The "new runtime" of results.py's and instructions.tsv's
comments is now the runtime.
Unchanged, because readers depend on them: the exemption phrase
"old-runtime regression fix" (matched in the subjects of commits since
the table's last bless), and the record keys harness-new/,
harness-new-warm/, harness-gpu-new/ and harness-alone/<row>/<pair>/new,
which the harness prints from its --runtime value and which the 60
stored notes under refs/notes/matrix hold: a base's records are compared
key by key, so renamed keys would compare nothing against every stored
base.