The command buffer's ExecutionStatus buffer was 32 bytes. Since the emulated mesh and
tessellation stages and the indirect clamp went, words 3 to 6 were never written and status bits
0, 5, 7 and 8 never set. The words and bits nothing writes are gone.
Now: ExecutionStatus::BYTES is 16 and WORDS 4. StatusWord::SeqCstFences moves from word 7 to
word 3; Status, ResidentMisses and ReplayFaults keep words 0 to 2. StatusBits are the low seven
bits: RESIDENT_MISS 0, REPLAY_FAULT 1, INDEX_POOL_OVERFLOW 2, ABSENT_ARGUMENT_READ 3,
CUBIC_ARGUMENT_SAMPLER 4, MESH_GRID_PAST_LIMITS 5, MESH_GRID_DISCARDED 6. The comments on the
unwritten words and unreported bits go. ReplayFaults keeps its bits as they are.
Tests: status_bits_are_distinct also checks that the bits are the low ones, with no unused bit
between them. The module's own tests size their bytes by ExecutionStatus::BYTES. The harnesses
that held the buffer at 32 bytes now take ExecutionStatus::BYTES: the engine_binder and
engine_kernel_stage_in worlds, and the index_bounds, index_rewrite and mesh_arguments tests. In
validation, the three executors' expect messages state the size by the constant.
SEMANTICS_VERSION 2222 is in this commit (placeholder; main renumbers): the fence's increment
reaches word 3, and the absent-argument and cubic-sampler marks set new bit values, so modules'
words change. The binder's own modules (replay preprocess, index bounds and rewrite, mesh
arguments) change as well. RUNTIME_VERSION 2544 (placeholder): status decoding reads the new
layout. ARTIFACT_FORMAT_VERSION stays at 565: no encoded type changes. api_signatures is
regenerated; docs/REFUSALS.md regenerates unchanged. The runtime pin is updated. The golden
tables are re-blessed on development.
Consumer check (consumer-uses.sh, consumer development 12b87d3d6b, 63 refs): ExecutionStatus:
0 hits (code), link-order lists only. StatusBits, StatusWord, SeqCstFences, StatusReport: 0 hits
(code). No public item is removed; only the values of BYTES, WORDS, SeqCstFences' index and the
seven bits change.
Verified: nothing yet (a check job is owed).
A call that makes an object on a skipped receiver, or naming a skipped object, made its result
skipped without a line: such a pipeline state counted only in skipped_objects or skipped_calls,
so a stream's 494 render pipeline states against the play's 493 passed unseen.
Each such creation is now counted by its selector and reason (its receiver is skipped, or it
names a skipped object), the reason naming the selector that made the chain's first object
skipped; each skipped object keeps that root, inherited along the chain and removed at release.
The report prints a `not attempted SELECTOR N: WHY, the first #ID (its root #ROOT)` line for
each, the counter `not_attempted`, and a line that adds up the pipeline states: render states
made, refused and not attempted, and the compute states the same. The existing counts are
unchanged.
Test: new_runtime::tests::creations_not_attempted_are_counted_by_kind_and_root (a library from
source skipped, a function of it, two render states of that function, one refused state).
spirv::testing's sharded_tests macro split a long check into several tests; the YCbCr
conversion's kernel sweep was its only user, and dcb16b6da3 removed it, so clippy denied the
unused macro and its re-export. Test-only; no version bump, the runtime pin is unchanged.
Verified: m3-max-60564 at dcb16b6da3 showed the two errors (clippy, clippy_gpu, clippy_cpu);
fmt, doc and the focused tests (65) passed there. A lint job is owed for this commit.
The binder's YCbCr conversion was a compute module per device and conversion that wrote a
two-plane texture's texels into an image from its planes' bytes (ycbcr_convert_module, and
ycbcr_convert_floats_module for a float image). The runtime refuses every YCbCr texture
(Gap::TextureFormat), so no consumer builds or records the module, and nothing in the tree but its
own tests called it.
Removed: ycbcr_convert_module, ycbcr_convert_floats_module, YCbCrConvertModule (its SET, LOCAL_SIZE,
the IMAGE, SHAPE and BYTES bindings, SHAPE_WORDS and shape), YCbCrConversion and its of,
YCbCrPlanes::conversion, and the module's builder, knots table and code readers. YCbCrCodes loses
max, first_shift and step, which only the module read. The module docs keep Metal's measured
conversion rules, which ycbcr_read and ycbcr_texel model and the in-place sampler states its taps
by; the paragraphs on the module and its synchronization go, and YCbCrOutput's variants no longer
name the module's image formats. words_buffer and scalar stay: ycbcr_write builds with them.
Tests: the module's validity sweep, the kernel runs over measured and random surfaces and the
floats module's tests go. The surface tests keep Metal's measured answers and check them against
the CPU model (the_model_reads_a_surface_as_metal_does,
the_model_reads_the_probes_surfaces_as_metal_does, the_model_converts_the_measured_layouts_alone).
owned_divisions loses the conversion modules' sweep; api_surface loses four rows.
Translator output is unchanged (the module was the binder's own, never a lowering), so no
SEMANTICS_VERSION or ARTIFACT_FORMAT_VERSION bump. api_signatures is regenerated; docs/REFUSALS.md
regenerates unchanged. The runtime pin is updated.
Consumer check (consumer-uses.sh, consumer development 12b87d3d6b, 63 refs):
ycbcr_convert_module, ycbcr_convert_floats_module, YCbCrConvertModule, YCbCrConversion: 0 hits
(code). YCbCrPlanes (receiver of the removed conversion) and SHAPE_WORDS: 0 hits (code).
Verified: nothing yet (a check job is owed).
scripts/regen-air-fixtures --dir examples lost_writes on the M3 (m3-max-60551: Apple metal
32023.922, macOS SDK 27.2), after the previous commit's lost_writes.metal. TOOLCHAIN is unchanged.
Round 50b8fbb64f's KosmicKrisp leg (m3-max-60197) failed
every_device_keeps_an_early_tests_fragments_texture_writes_at_four_samples: at 4 samples all 512
texels were lost, and 1 sample passed. Every Linux card and lavapipe pass it.
The cause is Metal's own defect, which the driver passes on. KosmicKrisp is Vulkan on Metal: it
prints "[[early_fragment_tests]]" for a module with the EarlyFragmentTests execution mode (Mesa
26.3.1, src/kosmickrisp/compiler/nir_to_msl.c:2503-2504). Metal itself drops every texture write of
such a function at more than one sample. A minimal repro in our own MSL, run in Metal on the M3 Max
under macOS 27.0.1 (m3-max-60520), drew one triangle over a 32x16 target with no depth or stencil
attachment:
- [[early_fragment_tests]]: 1 sample wrote 512 of 512 texels; 2 samples wrote 0 of 512, all 512
untouched, with 1024 runs; 4 samples wrote 0 of 512, all untouched, with 2048 runs.
- The same function without the attribute wrote 512 of 512 at 1, 2 and 4 samples.
The draft is staged under ~/.cache/m2v-orch/bug-drafts/ (metal-early-tests-multisample-texture-
writes) for the owner to file. Vulkan requires those stores (vkspec 35.5: with no fragment
operation discarding the fragment, "at least one fragment shader must be executed", and its
stores have their normal effect). So this driver stack is out of spec here. No Vulkan query tells
it apart: KosmicKrisp lists neither VK_KHR_portability_subset nor VK_EXT_metal_objects. rt keeps
the mode on every device.
The test now runs a control in the same run: lw_late_write, lw_early_write's body without
[[early_fragment_tests]]. Both functions also count their runs in a buffer. At 1 and at 4 samples
it asserts on every device:
- both ran at least once per pixel;
- the control wrote every texel;
- the early-tests function wrote every texel, which is Vulkan's answer.
The one other outcome it accepts is the defect's exact signature at more than one sample: the
function ran, the control wrote all, and the early-tests function wrote none, every texel still
the sentinel. That outcome prints "known gap: early-tests storage writes dropped at more than one
sample (README)". A partial loss, a lost control or a function that did not run fails. There is no
device key, and a device whose answer is in spec meets the assertion unchanged.
The runtime README's known gaps of render pipeline states name the defect for a Vulkan driver
built on Metal. The fixture's source gains lw_late_write and the run count (lost_writes.metal),
and its AIR companions are regenerated in the next commit. No product change. The runtime-sources
pin covers neither file, and the golden table reads no examples/ fixture.
Verified: cargo fmt --all. The compile, the lavapipe run and one KosmicKrisp run of lost_writes.rs
run as their own jobs.
golden_hashes.tsv and public_fixture_expectations_engine.tsv re-blessed
on the M3 (m3-max-60548, bless-job.sh at 569463fc0d) after the
translator's version moved 2212 -> 2221 since the last bless
(149d66aefb): guestgaps3 2214, the lockstep note 2217, builders2
2218/2219, tessellation 2220, emulated meshes 2221. The engine
expectations move only on the three committed profiles without
tessellationShader (the Tessellation refusal) and with the mesh
deletion. The bless's own SEMANTICS check passed (printouts=0).
- The render descriptor key hashes SEMANTICS_VERSION, which the mesh commit sets to 2221, so
the pinned key of the fixture's descriptor moves from 746e4df9... (development's, at 2220) to
55e3ff73.... That is the value m3-max-60528 printed at 2242802b2a.
- engine_mesh's pipeline refusal test passes its stage closure, a Copy, by value
(clippy::needless_borrows_for_generic_args).
Verified: m3-max-60528 at 2242802b2a: fmt and doc green, and the focused tests passed 149 of 150
(engine_mesh, status, mechanism, api_tests, link, owned_divisions, graphics, codec); the one
failure was the key. The three clippy legs failed on the borrow alone. The next job reruns both.
- link: the tessellation slots' list is extended by the fan-out's below, so it stays mut.
- lower/dispatch: StorageClass went with the wrapper's group variables.
- the binder's stage test still passed metal_stages the emulated flag it lost.
Found by m3-max-60514 at 97b19bb1b3 (the same commit before its rebase onto de556604bb).
Verified: nothing yet (the next check job compiles it).
The planner's ruling: a mesh render pipeline is native or refused. With VK_EXT_mesh_shader and
meshShader (taskShader for an object function), the stages are task and mesh shaders, as before.
The emulation was a second form for devices without them: the object and mesh functions ran as
compute entries, which wrote each threadgroup's vertices and primitives as records into a
per-draw buffer or the command buffer's records pool, and a synthesized vertex stage drew those
records. The runtime never takes that path. Now a mesh or object function on such a device is
refused at lowering (Unsupported{MeshShading}, needing VK_EXT_mesh_shader and the stage's feature
where the profile lacks them), and so is its pipeline. The command line compiles no mesh pipeline
and answers FALLBACK for a mesh or object function on every device, as before.
Removed:
- lowering: lower/mesh/work.rs (the work buffer layout), lower::mesh::emulates, the emulated
compute entries and their wrappers, the record stores, Layout/layout/records/emulated_payload,
the RECORDS/WORK/OBJECT_* slots; MeshPlan's emulated and payload_words. Also dispatch.rs's
WrapperGroups and the wrapper_groups field, emit's GLCompute arm for meshes,
stage_io::flat_primitive_inputs, and the requirement trace's record writes. The payload is
always TaskPayloadWorkgroupEXT (memory::arena::declare_payload). lower::mesh::mesh_stages states
the native test that folds_object_grids reads. The mesh builtins are a const.
- pipeline: MeshRecords, RecordField, RecordValue; GraphicsState::mesh_records and mesh_corners;
StageInterface's mesh_records, mesh_corners and emulated_payload (vk_stage loses its COMPUTE
arm); the synthesized vertex stage (link::mesh keeps the payload check) and link's record
slots and push-range hull; SyntheticBinding::MeshRecords and MeshWork;
RuntimeFact::MeshLastFirst; VariantKey::mesh_last_first. Varyings hold mesh outputs to
maxMeshOutputComponents only. The link contract's compute-entry records check goes, and
compile/api's mesh_info reads the task and mesh limits only.
- binder: bind/mesh_scan (mesh_scan_module, mesh_object_arguments_module, MeshScanModule; its
div_ceil and for_range move to mesh_arguments, their one other reader), MeshDispatch,
MeshGroups, MeshRecordsRegion, DrawCommands::mesh_dispatch, MeshTemplate::records and
RecordsTemplate, GroupStage::Compute (GroupLimits.total is a plain u32), the emulated mesh
stage flags, BindState and BindShape's mesh_last_first, WriteSource::MeshRecords and MeshWork,
and DrawReplayRule::DispatchesFirst. Status: StatusBits::MESH_RECORDS_OVERFLOW,
StatusReport::mesh_records_overflow, MeshRecordsFault, and the words MeshRecordsCursor and
MeshFault{Draw,Objects,Groups}. The buffer keeps its 32 bytes, with SeqCstFences at word 7:
words 3 to 6 are not written, and bit 5 is unreported.
- runtime: the synthesized-stage test no longer reads mesh_records; the SynthesizedStages doc
loses "mesh records".
- tests: engine_mesh's emulated tests (the compute entries, the records pipeline and its object
draws, the last-first variant) are replaced by two refusal tests, one per function and one per
pipeline. The tests that also ran the emulating profiles run the profiles with the extension.
engine_mesh_barriers loses its interpreter run of the emulated object entries; the
round-trip, link and module-sweep fixtures and api_surface lose the rows.
- validation: build.rs's runtime inputs lose lower/mesh/work.rs; a companion test's comment.
The 15 authored mesh and object cases stay untouched. The authored compile census is
re-blessed on development.
Docs: API.md's mesh section states the refusal and loses the emulation's paragraphs, and two
lists lose "an emulated object or mesh function". Varyings docs lose a stale emulated
post-tessellation mention. docs/REFUSALS.md and api_signatures are regenerated. README and the
command's help name no mesh pipeline and need no change.
SEMANTICS_VERSION 2221 is in this commit (placeholder; main renumbers): what the translator emits
for a mesh or object function on a device without the extension changes (a refusal), and the
mesh draws' plans change. ARTIFACT_FORMAT_VERSION 565: the codec loses MeshRecords,
RecordField, RecordValue, StageInterface's three fields, GraphicsState's two, two
SyntheticBinding variants and RuntimeFact::MeshLastFirst. RUNTIME_VERSION stays at this series'
2543. The runtime pin is updated.
Consumer check (consumer-uses.sh, consumer development 12b87d3d6b, 70 refs):
MeshDispatch: 0 hits (code); link-order lists only.
MeshGroups, MeshRecordsRegion, mesh_scan_module, mesh_object_arguments_module, MeshScanModule,
MeshRecordsFault, mesh_dispatch, MESH_RECORDS_OVERFLOW, MeshRecordsCursor, MeshFaultDraw,
MeshFaultObjects, MeshFaultGroups, DispatchesFirst, mesh_last_first, MeshRecords, RecordValue,
mesh_records, mesh_corners, emulated_payload, MeshWork, MeshLastFirst, POOL_WORDS, DRAW_OFFSET,
DISPATCH_OFFSET: 0 hits (code).
mesh_records_overflow: 0 hits on development. It is used on consumer lane branches
(steelbrain/quiesce and others), but only as the name of a local function in
reims-vgpu-vulkan/src/gpu/command.rs, which answers the old runtime's
CommandBufferError::MeshRecordsOverflow. It does not read this field.
Verified: nothing yet (a check job is owed).
The consumer makes Vulkan calls of its own on the runtime's device
(acquire, present, swapchain calls), and one of those can return
VK_ERROR_DEVICE_LOST before any call of the runtime's does. Until now
the runtime learned of the loss only at its next submission or wait,
so a consumer's window kept retrying on a dead device.
Device::report_loss(DeviceLoss) takes a loss the consumer's own call
returned, the DeviceLoss made of that call's name and result, and ends
the device's work by the runtime's own loss path (complete::lose): the
submit thread ends what it holds, the completion thread ends what is
in flight once the device is idle, host waits for pending signals end
false, and every command buffer the loss reaches ends DeviceLost.
Device::loss() then answers the reported call; the first loss is kept,
so a later report changes nothing. It is in every build, with no
feature or cfg, and has no Metal counterpart. The runtime takes the
report as given: a result that is no error, SUCCESS included, ends the
work all the same.
lose_for_test, the device tests' cfg-gated way in, is deleted; its one
test now injects through report_loss, as the consumer's own
vkQueuePresentKHR (ERROR_DEVICE_LOST): no loss before it, the report
named after it, every command buffer ending DeviceLost (one in flight,
one held, one committed after), and a second report of
vkAcquireNextImageKHR keeping the first. A new device test reports
SUCCESS and sees the device lost and a later commit end DeviceLost.
DeviceLoss's doc says `call` can be the consumer's own call; the
README's loss paragraph names report_loss. api_signatures blessed (one
method added); the refusal-surface script's output is unchanged.
Verified by the compile job named in the landing (fmt, clippy plain,
m2v_gpu and m2v_cpu_icd, Windows clippy, Rustdoc, the runtime's suite
and its lavapipe device tests).
The render descriptor key hashes SEMANTICS_VERSION, which the tessellation commit sets to 2220,
so the pinned key of the fixture's descriptor moves from 3529a751... (development's, at 2219) to
746e4df9.... That is the value m3-max-60492 printed at d224e69199, the same two commits on
ee15de357f. The base's other change since then (0f0769a7bd, the Bresenham lines) leaves the key
as it was: development pins 3529a751... at 2219 both before and after it.
Verified: m3-max-60492 printed the value. The focused job named in the landing reruns the test.
60451 (the emulated tessellation's deletion, gem10) failed to compile on two reads of what
went. link's vertex input still matched on the emulated tessellation state. It now takes the
control stage's input for a tessellation pipeline and the vertex function's otherwise. The merged
draw's refusal still read LoweringInputs::tessellation, which only the emulation set. The clause
goes; a native post-tessellation function was never refused there, and still isn't.
Neither file is a runtime input, and nothing emitted changes.
Verified: nothing yet (the check is redispatched).
The runtime's floor requires tessellationShader, so on every device the runtime opens a
post-tessellation vertex function runs through the device's tessellation stages. The emulation
was a second form: it ran the function as a plain vertex stage that drew Metal's tessellator's
triangles itself, from the draw's records, which a compute scan wrote before each patch draw. Now a
device without tessellationShader refuses the function (Unsupported{Tessellation}, needing
VkFeature::TessellationShader), and the command line answers FALLBACK there.
Removed:
- lowering: lower/tessellation/{emulated,tessellator,work}.rs, wrap_entry, Emulation, emulates;
EvalPlan's base_instance and emulated; Declared's emulated globals; the emulated
[[base_instance]] source; PushField::TessellationChunk; stage_io::primitive_id_varying.
- pipeline: EmulatedTessellation, GraphicsState::emulated_tessellation, TessellationStage::emulated,
LoweringInputs::tessellation (and InputsFrom::Vertex's tessellation field and its key bytes),
link's emulated_state, RuntimeInput::TessellationDescriptor, SyntheticBinding::TessellationWork
and TessellationRecords; primitive_id_carried_on is primitive_id_varying_on again.
- binder: bind/tessellation_scan (tessellation_scan_module, TessellationScanKernel,
TessellationScanModule), TessellationDispatch, TessellationRecords,
DrawCommands::tessellation_dispatch, WriteSource::TessellationWork and TessellationRecords,
StatusBits::TESSELLATION_RECORDS_OVERFLOW and RECORDS_FAULTS, StatusReport's
tessellation_records_overflow and TessellationRecordsFault. FactorTemplate keeps only the
control stage: FactorSite goes, and its fields are push_offset and factor_binding, with the
patch index binding always present. The mesh scan's first-fault test reads its own bit. Bit 8
of the status word is unreported.
- tests: tests/tessellator (the emulated tessellator against its model), the emulated tests in
engine_tessellation (now asserting the refusal on profiles without the feature), the emulated
fixtures in api_tests and graphics tests, owned_divisions' scan sweep, and api_surface rows.
The key test keeps its native half: a vertex function's key is the same for every
tessellation state.
- validation: build.rs's runtime inputs lose tessellator.rs and work.rs (factors.rs stays: the
binder sizes factor ranges by factor_bytes). The acceptance and coverage tests expect the typed
refusal on roadmap-2022, vk12-floor and swiftshader.
Docs: README and the command's help say a post-tessellation function needs tessellationShader;
API.md's tessellation section states the refusal; the two tessellation precision notes no longer
mention the emulation; docs/REFUSALS.md and api_signatures regenerated (Tessellation now names
VkFeature::TessellationShader instead of MaxStorageBufferRange).
SEMANTICS_VERSION 2220 is in this commit (placeholder; main renumbers): what the translator emits
for a post-tessellation function on a device without tessellationShader changes (a refusal), and
the vertex key loses the tessellation state. ARTIFACT_FORMAT_VERSION 564: the codec loses
EmulatedTessellation, TessellationStage::emulated and three enum variants. RUNTIME_VERSION stays
at this series' 2543. The runtime pin is updated.
Consumer check (consumer-uses.sh):
consumer: development 7ea4edc2fb; 72 refs (development + steelbrain/* younger than a day)
TessellationDispatch: 0 hits (code); link-order lists only
TessellationRecords, TessellationRecordsFault, tessellation_scan_module, TessellationScanKernel,
TessellationScanModule, TESSELLATION_RECORDS_OVERFLOW, RECORDS_FAULTS, tessellation_dispatch,
TessellationWork, EmulatedTessellation, emulated_tessellation, TessellationChunk,
RuntimeInput::TessellationDescriptor, scan_kernel, max_patch_triangles, wrap_entry, FactorSite:
0 hits (code)
tessellation_records_overflow: 0 hits on development. It is USED on consumer lane branches
(steelbrain/quiesce and others), but only as the name of a local function in
reims-vgpu-vulkan/src/gpu/command.rs, which answers the old runtime's
CommandBufferError::TessellationRecordsOverflow. It does not read this field, and this tree's
runtime has no such error.
Verified: nothing yet (a compile job is owed).
What: two device tests beside every_device_zero_extends_a_narrow_clamped_sum, each an owned
LLVM-text function. every_device_masks_a_narrow_vertex_attribute: a vertex function (rasterization
disabled) reads three ushort stage-in attributes (UShort, 4-byte elements of one buffer) and
writes a & 0x8001, b > 0x7fff, c == 0xffff and a for each of 16 points.
every_device_masks_a_narrow_vector_conversion: a kernel converts float2s to ushort2
(air.convert.u.v2i16.f.v2f32) and writes them zero-extended. Each asserts its stage's
OpBitwiseAnd masks by a narrow width (3 or more, 1 or more), no OpBitFieldUExtract, and every word.
masks() now also counts a vector mask (an OpConstantComposite of narrow masks).
Why: these are the largest narrow-mask shapes of the bB-c1 recording's stage functions besides
the clamp. The UHD 630 description's diff of 9ea53f7acd against e709d20810 put 192 states (8
forms) and 177 states (3 vertex forms) in two groups: the forms of both are this one vertex shape,
a 16-bit integer stage input masked at its load and then ANDed, compared unsigned or compared for
equality. The next largest group (46 fragment forms, 133 states) is the ushort2 conversion of a
float2, masked lane by lane, read as a texture read's coordinate.
Verified: cargo fmt. Clippy and the lavapipe device tests: the job named with the hand-over.
The render descriptor key hashes SEMANTICS_VERSION and the device profile. After the rebase onto
1fb5c22bc7, this branch is at 2219 and the profile has lost its workaround list, so the pinned key
of the fixture's descriptor moves from a23d24d0... (development's, at 2217) to 3529a751.... That
is the value m3-max-60486 printed at ee15de357f. No other input of the key changed.
Verified: m3-max-60486 printed the value, with fmt, clippy, clippy_gpu and doc green at
ee15de357f. The focused job named in the landing reruns the test.
60381 (builders2 before the rebase, gem10) failed clippy on `let mut planned` in
instantiate_dispatch_into, whose one mutation (the folded variant's read_records) went with the flat
dispatch, and failed two device replay tests that ran the removed path: host_replay's Run::Flat (an
indirect dispatch of a flat variant at its flat group counts) and Run::Folded (an indirect dispatch
of a folded variant at its folded counts), both outside a device replay, which only the deleted
flat_dispatch_module fed.
The binding drops its mut. host_replay keeps Run::Plain and Run::FlatDirect; Run::Flat,
Run::Folded and their helpers flat_groups and folded_counts go, and so does
a_folded_variant_runs_every_group_count_as_metal_runs_it, which ran only Run::Folded.
a_flat_variant_dispatches_outside_a_replay keeps its direct dispatch checks and now asserts that
an indirect dispatch is refused (GpuEncodedIndirectCommands) beside the threadgroup dispatch it
already refused; the folded key test asserts the same of both forms.
The runtime pin follows dispatch.rs. RUNTIME_VERSION is unchanged: the binder answers as before.
Verified: nothing yet (the compile job is owed).
flat_dispatch_module read an indirect Metal dispatch's arguments on the device and wrote the
record and VkDispatchIndirectCommand a flat (or folded) variant then ran at, for a dispatch
outside the device replay. The runtime never takes a binding plan, and no consumer records the
module. The plan now builds a flat variant's direct Threads dispatch alone (its record is
DispatchCommands::region_record, as before); its indirect dispatch, and any dispatch of a folded
variant, whose records only the device replay's preprocess writes, is
Unsupported{GpuEncodedIndirectCommands, NotImplemented}, already the answer for the variant's
other forms. The device replay keeps its flat and folded variants and flat_dispatch, the
derivation its preprocess shares.
Removed: bind/replay/flat.rs (flat_dispatch_module, FlatDispatchModule, FlatIndirect,
FlatArguments), its tests, and the folded variant's read_records in instantiate_dispatch_into;
the dispatch test now asserts the flat variant's indirect dispatch is refused; the replay
modules' overflow test reads the preprocess alone (its want of 26 already counted the shared
derivation's 23). Records' docs say what they hold now (the Binder doc lost its clamp too).
RUNTIME_VERSION stays at this series' 2543 (the plan's answers change); runtime-sources
re-pinned, api_signatures and REFUSALS.md regenerated.
Consumer check (consumer-uses.sh):
consumer: development 7ea4edc2fb; 68 refs (development + steelbrain/* younger than a day)
flat_dispatch_module: 0 hits (code)
FlatIndirect: 0 hits (code)
FlatArguments: 0 hits (code)
FlatDispatchModule: 0 hits (code)
Verified: nothing yet (compile check owed).
The test-only helper read a format's candidates for bind/mipmap_filter/tests.rs, which batch 4
(bd2c752f0c) deleted; clippy's dead-code lint in the lib test build (m3-max-60313) named it.
Verified: nothing yet (compile check owed).
route_counts_module wrote the draw counts of a probed draw's fan-out and region-copy routes
from the probe's flag. Nothing calls it: the runtime refuses a rate map's fan-out (render.rs,
region_fan_out), and no consumer records the two routes. The probe, the table and both routes
stay (the plan and the link still build them); only the module, its constants and the doc
paragraph go. route_counts.rs's own deletion went into the previous commit by mistake (a
staged `git rm` rode along), so that commit does not build alone; this one completes it.
Runtime-sources re-pinned (a bind file went; no run's behaviour changes), api_signatures and
REFUSALS.md regenerated.
Consumer check (consumer-uses.sh):
consumer: development e6414dd601; 71 refs (development + steelbrain/* younger than a day)
route_counts_module: 0 hits (code)
RouteCountsModule: 0 hits (code)
ROUTE_DECIDED: 0 hits (code)
ROUTE_ROUTED: 0 hits (code)
ROUTE_WORDS: 0 hits (code)
Verified: nothing yet (compile check owed).
The clamp's deletion removed the field; six test asserts still read it (clippy x3 in
m3-max-60298). They now assert the other bits alone.
Verified: nothing yet (compile check owed).
The runtime reads an indirect dispatch's group counts where Metal wrote them (its README:
a count above maxComputeWorkGroupCount is the GPU's to read, which Vulkan leaves undefined),
and its path never takes a binding plan's clamp prepass. The plan now does the same: an
indirect region reads IndirectArgs::Buffer on every device, its use is the 12 argument bytes
vkCmdDispatchIndirect reads in DRAW_INDIRECT, and IndirectGroupCount's mechanism is None.
Removed: bind/indirect_clamp.rs and its tests (IndirectClamp, IndirectClampModule,
indirect_clamp_module), DispatchCommands::indirect_clamp, IndirectArgs::ClampScratch, the
template's storage_alignment, Mechanism::IndirectClamp, StatusBits::OVERFLOW (bit 0 stays
unused) and StatusReport::overflow. The validation executors lose their clamp checks
(compute.rs, replay.rs, device_replay.rs), which valexec confirmed only refused the clamp, and
the engine's overflow verdict. The engine_binder harness runs an indirect dispatch from its
buffer at counts within the test device's limit.
ARTIFACT_FORMAT_VERSION 563 (Mechanism's codec list loses a variant), RUNTIME_VERSION 2543
(the dispatch plan's indirect region and uses change), runtime-sources re-pinned,
api_signatures and REFUSALS.md regenerated.
Consumer check (consumer-uses.sh):
consumer: development e6414dd601; 70 refs (development + steelbrain/* younger than a day)
IndirectClamp: 0 hits (code)
IndirectClampModule: 0 hits (code)
indirect_clamp_module: 0 hits (code)
ClampScratch: 0 hits (code)
indirect_clamp: 0 hits (code)
OVERFLOW: 0 hits (code)
StatusReport: 0 hits (code)
StatusBits: 0 hits (code)
SEMANTICS_VERSION 2219 is in this commit too: the artifact records IndirectGroupCount's mechanism,
which moves from IndirectClamp to None (the planner's rule: an emitting commit carries its own
bump); main renumbers it at the landing.
Verified: nothing yet (compile check owed).
Two of the (b) families that have no plan, variant or lowering half:
- chroma_convert_module and chroma_sample_module (ChromaConvertModule, ChromaSampleModule, their
typed kernels and binding symbols, and ChromaDecode::format, the sample module's pairs format):
rt makes no 4:2:2 texture (FormatEmulation::Decoded is outside its viewed() forms,
Gap::TextureFormat), the executor names neither, and no plan asks for them. ChromaDecode's CPU
decode stays with its two tests; the kernel and shape tests go.
- bind/mipmap_filter.rs and its kernel, layout, fetch and CPU files (mipmap_filter_module,
MipmapFilterChain, MipmapFilterKernel, MipmapFilterLevel, MipmapFilterModule): no code outside
them names one. rt's generate_mipmaps refuses where the device's blits do not filter
(Gap::MipmapFilter), which stays its recorded gap.
bind's module map, api_surface and owned_divisions follow. The runtime inputs keep
lower/arith/pack.rs, which the YCbCr write's sRGB encode still reaches; build.rs's note and the
runtime-sources table's reason for pack.rs's files now name that reader in place of the mipmap
kernel.
No run or translation changes (nothing called them): the versions stay; api_signatures and the
runtime pin are regenerated.
Consumer check: ~/.cache/m2v-orch/consumer-uses.sh, consumer: development e6414dd601; 69 refs
(development + steelbrain/* younger than a day), 0 hits for chroma_convert_module
chroma_sample_module ChromaConvertModule ChromaSampleModule mipmap_filter_module
MipmapFilterChain MipmapFilterKernel MipmapFilterLevel MipmapFilterModule.
color_resolve.rs (color_resolve_modules and its format, channel, rule and source types),
depth_stencil_resolve.rs (depth_stencil_resolve_modules, DepthPick, ResolveWrite and the draw
types), visibility_combine.rs (visibility_combine_module, VisibilityCombine, ContinuedResult) and
the texture shadow's four files (shadow_merge_module, shadow_merge_image_module,
shadow_merge_kept_image_module, shadow_copy_back_module, shadow_copy_in_module and their
types): no non-test code outside them names any of their items (the runtime, the harness,
validation and conformance included; test items stripped one by one, wherever they lie), and no
plan, variant key or lowering input asks a consumer to run them. They go with their tests,
re-exports, api_surface rows and owned_divisions builds.
Metal's sRGB resolve tables (SRGB_RESOLVE_LINEAR, SRGB_RESOLVE_THRESHOLDS) move into the tile
test, their one reader, as private constants with their measured docs. depth_stencil_copy's
binding map loses the resolve draws' arm. bind's module map, metal/format/word.rs and the
msaa_word_formats probe's note no longer name the resolve. The runtime-sources table drops
lower/arith/extended_range.rs, which only the color resolve reached, and its SPIR-V builder row no
longer names the visibility resolve.
No run or translation changes (nothing called them): the versions stay; api_signatures,
REFUSALS.md and the runtime pin are regenerated.
Consumer check: ~/.cache/m2v-orch/consumer-uses.sh, consumer: development b7929d6936; 73 refs
(development + steelbrain/* younger than a day), 0 hits for color_resolve_modules
ColorResolveFormat ColorResolveModules ResolveChannel ResolveRule ResolveSource
SRGB_RESOLVE_LINEAR SRGB_RESOLVE_THRESHOLDS depth_stencil_resolve_modules DepthPick
DepthStencilResolveDraw DepthStencilResolveModules ResolveWrite visibility_combine_module
ContinuedResult VisibilityCombine VisibilityCombineModule shadow_copy_back_module
ShadowCopyBackModule ShadowTexelView shadow_copy_in_module ShadowCopyInModule
shadow_merge_module ShadowMergeModule ShadowMergeStores shadow_merge_image_module
shadow_merge_kept_image_module ShadowMergeImageModule ShadowMergeRead (ColorResolveFormat,
ResolveSource and DepthPick appear in link-order lists only).
bind::replay's predication step (predication_step_module, PredicationStep and its op, compare
and form types), two_plane_texels.rs (two_plane_texels_module, TwoPlaneTexelsModule,
PlaneLayout) and the depth clamp's module (depth_clamp_module, DepthClampModule) have no caller
outside their own files and tests: neither the runtime, the harness, validation, conformance nor
the consumer names one, and no plan or lowering asks a consumer to run them. They go with their
tests (the predication step's at the end of bind/replay/tests.rs, the kernel tests of the depth
clamp), their re-exports, api_surface rows and owned_divisions builds. The CPU clamp
(bind::clamped_depth) stays: validation's depth-range contract reads it; its file now documents
the clamp alone, and bind's module map says what it is.
No run or translation changes (nothing called them): RUNTIME_VERSION and SEMANTICS_VERSION stay;
api_signatures, REFUSALS.md and the runtime pin are regenerated.
Consumer check: ~/.cache/m2v-orch/consumer-uses.sh, consumer: development 62b3227c74; 72 refs
(development + steelbrain/* younger than a day), 0 hits for predication_step_module
PredicationCompare PredicationOp PredicationStep PredicationStepForm PredicationStepModule
depth_clamp_module DepthClampModule two_plane_texels_module TwoPlaneTexelsModule. PlaneLayout:
its hits are the consumer's own `struct PlaneLayout` (reims-vgpu-video's core/surfaces.rs:24,
used in core/device_memory.rs), none of them ours.
dynamic_views, extended_canonical, extended_shadow, icb_reset, pages_copy, plane_bytes_copy,
plane_copy, plane_words, rotate_texels, rows_copy, tiled_texels, ycbcr_refresh and ycbcr_sample:
no non-test code outside each file names any of its public items (the runtime, the harness,
validation and conformance included), so each file goes whole, with its tests, its re-exports,
its api_surface rows and its owned_divisions builds. The docs that named them say what is true
now: bind's module map, the depth clamp's tiled-texel note, the written-flag docs (a consumer may
reset only the flagged records), the input shadow's runtime file, conformance's two-plane note.
The runtime-sources row of lower/arith/extended_range.rs names the color resolve, which still
reaches it, in place of the deleted half-shadow load.
No behaviour of a run or a translation changes (nothing called them), so neither
RUNTIME_VERSION nor SEMANTICS_VERSION moves; api_signatures, REFUSALS.md and the runtime pin are
regenerated.
Consumer check: ~/.cache/m2v-orch/consumer-uses.sh, consumer: development 62b3227c74; 67 refs
(development + steelbrain/* younger than a day), 0 hits for DynamicViewsModule
dynamic_views_module ExtendedShadowModule extended_shadow_module IcbResetModule icb_reset_module
PagesCopyModule PagesCopy pages_copy_module PlaneWordsModule plane_words_module
RotateTexelsModule rotate_texels_module RowsCopyModule rows_copy_module TiledTexelsModule
TiledLevelMove tiled_texels_module YCbCrRefreshModule ycbcr_refresh_module YCbCrSampleModule
ycbcr_sample_module; consumer: development 62b3227c74; 68 refs, 0 hits for
ExtendedCanonicalModule extended_canonical_module extended_range_canonical PlaneBytesCopyModule
plane_bytes_copy_module PlaneBytes PlaneSource PlaneCopyModule plane_copy_module. PlaneRows:
its hits are the consumer's own `struct PlaneRows` (reims-vgpu-video's vaapi/va/frame.rs:333,
re-exported from vaapi.rs), none of them ours.
Every profile took both variants (Device::from_queries listed ClippedCoverageNotMetals and
TessellatorNotMetals for every device, since no query tells Apple's rasterizer or tessellator
apart), so the enum, ProfileFields::workarounds and DeviceProfile::workarounds() carried no
choice. The two notes are recorded unconditionally where the workarounds gated them:
PrecisionNote::ClippedCoverageSplit for a multisampled read of the coverage or a centroid
varying at the pixel (lower::fragment::coverage), and PrecisionNote::TessellationTriangleOrder
on every tessellation evaluation stage (link::tessellation::note_evaluation_stage, which no
longer takes the profile). The notes' docs, derive.rs's and API.md's say every device records
them because no query tells Apple's apart. The tests that asserted the list go; validation's
identity test compares the two drivers' profile fingerprints instead.
api_signatures.tsv is regenerated (four rows go); REFUSALS.md unchanged; the api_surface row
goes; the runtime sources' pin follows. Emitted code is unchanged; the profile's fingerprint
moves with its fields.
Consumer check: ~/.cache/m2v-orch/consumer-uses.sh at reims development 62b3227c74, 66 refs
(development + steelbrain/* younger than a day). DriverWorkaround: 0 hits (code).
ClippedCoverageNotMetals: 0 hits (code). TessellatorNotMetals: 0 hits (code).
note_evaluation_stage: 0 hits (code). A fixed-string grep for `.workarounds()` over the same 66
refs finds 0.
Verified: nothing yet; the gate follows.
SEMANTICS_VERSION 2218 is in this commit: the two variants become static precision notes and
the profile loses its workaround list, so notes and keys move (the planner's rule: an emitting
commit carries its own bump); main renumbers it at the landing.
clippy 59057's dead-code error (bind/index_rewrite.rs's load_at, used by the gather kernels
alone). The runtime sources' pin follows.
Verified: nothing yet; the recheck follows.
IndexGather (one dispatch writing a run of direct or indirect draws' index lists from their
positions), index_gather_module and index_gather_plan_module, with GatherDraw,
IndirectGatherDraw and RewriteProgram's gather methods (gathers, gathers_without_indices,
gather_pattern, capacity_terms), had no caller outside their own module and tests: no runtime
pass, no tool. bind::index_rewrite's gather/ goes whole; the index rewrite pass and run stay.
The binder's module doc no longer offers the gather.
api_signatures.tsv and REFUSALS.md are regenerated (73 rows go; REFUSALS unchanged); the
api_surface rows go; the runtime sources' pin follows (runtime_pin.py at the tip). No pipeline's
code changes (SEMANTICS stays); RUNTIME_VERSION stays (no run took the pass).
Consumer check: ~/.cache/m2v-orch/consumer-uses.sh at reims development 4ee7cc3b4f, 69 refs
(development + steelbrain/* younger than a day). IndexGather: 0 hits (code). IndexGatherModule:
0 hits (code). IndexGatherPlanModule: 0 hits (code). index_gather_module: 0 hits (code).
index_gather_plan_module: 0 hits (code). GatherDraw: 0 hits (code). IndirectGatherDraw: 0 hits
(code). gathers_without_indices: 0 hits (code). gather_pattern: 0 hits (code). capacity_terms:
0 hits (code). A fixed-string grep for `.gathers()` and `RewriteProgram` over the same 68 refs
also finds 0.
Verified: nothing yet; the gate follows.
- DriverFact (the deleted driver-fact table): depth_stencil_copy.rs names the probe as a
measurement; pipeline::artifact's colour-clear note drops the one-driver exception
(ColorClearIsMetals), as no driver is told apart; link/band.rs drops SubpixelSnapIsMetals.
- MacClass (the old runtime's): metal/sampler.rs's lod_bias says the consumer states it from
the Mac it presents.
- RequiredThreadsProblem (the old runtime's): error/mod.rs keeps that the runtime checks it.
- ycbcr-filter-not-exact (the old runtime's announcement): the YCbCr and filter notes say a
consumer reads them under the bound values through StageModule::precision_notes_bound.
The runtime sources' pin follows (runtime_pin.py at the tip). No behaviour changes.
Verified: nothing yet; the gate follows.
The stage plan declared every color output 32-bit (plan.rs's `let half = false`), so
StageIo::half_outputs was always empty and IoObject::User::half always false. They go with what
only they reached: declare()'s half parameter (user() declares every variable), io_elem's 16-bit
float, store()'s FConvert of a 16-bit output, and contract.rs's 16-bit float width (every user
float lane is checked as 32-bit). IoType::source_bits' doc no longer names a 16-bit output. The
engine test of a half color output keeps asserting 32-bit widths (now on the rotated compile
too, which only fed the removed assertion). The conformance case's note says every device
receives the half widened to float.
StageIo is crate-private (pipeline::stage_io is pub(crate)), so no published item changes; the
artifact codec drops the field, so ARTIFACT_FORMAT_VERSION 562. No emitted code changes
(SEMANTICS stays); the runtime sources' pin is unchanged (none of these files is a runtime
input); CONFORMANCE-COVERAGE.md is as derived (coverage.py --check).
Verified: nothing yet; the gate follows.
f4a423ced6 added PrecisionNote::DeviceLineRasterization as the last entry of the codec's
precision-note list (cache/codec.rs), which is a new tag in an encoded type. Entries written
before it still decode, but a reader from before it, under the same format version, would meet
an unknown tag in an entry this build writes. ARTIFACT_FORMAT_VERSION's own rule (cache/mod.rs:
"a field, variant or tag added") asks for the bump, so such an entry is a miss under the old
reader rather than a decode error.
The value is 561, one above development's 560 (valexec's lockstep note). This branch's base held
557, so the line conflicts at landing and resolves to 561. No SEMANTICS_VERSION bump: the
translator emits no different bytes. The runtime-sources pin does not cover cache/mod.rs.
Verified: cargo fmt --all. The compile runs as its own job.
python3 -I scripts/conformance-coverage/coverage.py at this branch: the ledger's count goes from 7478
to 7490, and the twelve primitive-type-restart-indices rows join its table.
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.