the_old_render_descriptor_key_keeps_its_value pins the key of an old render descriptor, which
carries SEMANTICS_VERSION. 1c9ed73d4c moved SEMANTICS to 2224. The pin is the key that
m3-max-60846 printed at bb5a1c3612 (left: f65d353b...).
a_center_varying_at_sample_rate_needs_the_interpolation_functions held multisample_counter, a
memory writer, to the per-sample refusal on moltenvk-m3 with
shaderSampleRateInterpolationFunctions withheld. Since 1c9ed73d4c it runs at pixel rate, so it
compiles there: its center varying reads where the device evaluates it. The test now asserts
that, with no requirement of the member and with the MultisamplePosition note. With the member,
it keeps the pixel form's assertions.
Verified: m3-max-60846 at bb5a1c3612 passed fmt, clippy plain/gpu/cpu, Windows clippy x2, doc,
signatures, refusals, the conformance suite, the validation focus tests, the lavapipe runtime
suite and lost_writes on lavapipe. The translator suite had 3391 of 3393 passing; these two
tests were the failures. A focused job on this sha follows.
The parent commit's encoding change (GraphicsState::sample_shading removed, the
PrecisionNote::DeviceFragmentRuns variant added) was written over development 3421c0f8ac at
566 -> 567. Rebased onto 453eec0373, where fieldaudit's mesh_info deletion took 567, the two
bumps fold into one value. This commit gives the change its own value. SEMANTICS stays 2224.
Verified: not yet. Jobs follow on this sha.
What: a fragment function that writes memory no longer counts as per-sample under
multisampling. The coverage loop's memory-writes trigger goes: the loop stays for
`[[sample_id]]` and sample-qualified varyings beside `[[sample_mask]]`, and its refusals
(early fragment tests, attachments, the interpolation functions, discard, quad operations)
no longer reach a memory writer that reads neither. Such a function takes the plain form and
runs as many times per pixel as the device runs it. `GraphicsState::sample_shading`, the
`sampleRateShading` requirement in `multisample_features`, and validation's candidate read of
the field (graphics_pipeline.rs) go with it. consumer-uses.sh: `sample_shading` 0 hits (code)
over the consumer's development a48b3984af and 68 refs.
The new static note `PrecisionNote::DeviceFragmentRuns` goes on the fragment stage of a
pipeline of more than one sample whose function writes memory, recorded by the compile layer
beside `MultisamplePosition`. Its conformance code is
`metal2vulkan-degrade-device-fragment-runs`, and validation's table makes it `Unbounded`.
docs/API.md section 9 lists it, and section 10 adds the accepted difference: "Metal's GPUs
were measured to run a memory-writing fragment once per covered sample; documented Metal names
no count; here the count is the device's."
Why: documented Metal names no run count for a memory-writing fragment. MSL 5.5 makes a
function run per sample only for a sample-qualified input, `[[sample_id]]` or `[[color(m)]]`.
Vulkan without sample shading runs at least one invocation per fragment, and "Multiple
fragment shader invocations may be executed for the same fragment for any number of
implementation-dependent reasons" (vkspec 35.5). One form now covers both classes of guest:
the replay count of 36 streams found no multisampled memory-writing fragment. History: the old
runtime, deleted in 5d725aeec7, applied `sample_shading` (sampleShadingEnable with
minSampleShading 1.0). So at the cutover, memory writers without a coverage read went from once
per covered sample to once per pixel. This commit makes that the stated form, and the coverage
readers now match it.
Conformance: `alpha_coverage_pairs` pinned Metal's measured count, four runs. Its four-sample
report rows now declare `device-fragment-runs` and no longer `looped-sample-outputs`, because
the loop does not fire. They compare the report's runs word (`case/drawn/coverage/0`) as
`Nonzero`, justified by the notice. The coverage word and the texels stay exact.
docs/CONFORMANCE-COVERAGE.md is regenerated.
Tests:
- The lost_writes per-sample test now asserts what Vulkan promises. Every pixel `lw_half`
covers ran at least once and no other pixel ran. Each pixel's ORed mask is its coverage at
the standard 4-sample locations exactly. The state notes DeviceFragmentRuns. The test prints
the (covered samples, runs) histogram.
- The translator's link, engine_multisample, engine_coverage_loop, engine_stencil, compile and
spirv-cross form tests assert the plain form and the note where they asserted sample
shading or the memory writer's loop. The looped-body form test reads cov_loop_record.
SEMANTICS_VERSION 2223 -> 2224 (emitted modules and stored notes change).
ARTIFACT_FORMAT_VERSION 566 -> 567 (a GraphicsState field removed, a PrecisionNote variant
added). api_signatures.tsv is blessed.
Verified: not yet. Jobs follow on this sha.
The Windows plays of boot-idle-780m-1 stopped at frame 212, the stream's first video surface:
"error newTextureWithDescriptor:iosurface:plane:: the device exports no DmaBuf" (60780). The
video stand-in knew only the Unix routes, a dma-buf (the default) and an opaque fd, while the
runtime exports a surface on Windows through an NT handle (ExportHandle::OpaqueWin32), and
answers NoExport for a dma-buf there, correctly.
VideoHandle gains OpaqueWin32 (`--video-handle opaque-win32`): the surface is exported as an NT
handle at the opaque fd's layout, pitch multiple 4, start multiple 1, no rows below. The runtime
lays both opaque handles alike, each plane's LINEAR image at the driver's own pitch (its guide,
the surfaces' handles), and its own Windows surface tests make the surface at those multiples
(tests/surface.rs: the NVIDIA row and BUSY_ROWS on Windows). command-replay and
docs/REPLAY-STREAM.md name the route.
Test: new_runtime::tests::each_video_handle_names_its_export_and_layout.
m3-max-60850 on the M3 (census-exit 0): the two validation lockstep cases
129666ac and 4b74b854 leave the table with their cases (f6da64ab5d), and the
product fingerprint and artifact cells move with development's own changes
since the last bless (mesh_info's codec row, ARTIFACT 567).
Under the identity domains the runtime gives the threads of a SIMD-group no
order between barriers, and the planner ruled form A: no order, the static note
SimdgroupAccessOrder announced, the order not rebuilt. The words the two
lockstep kernels race on are therefore no observation of Metal's that the
runtime owes.
- conformance simdgroup-lockstep-divergent-loop and -until record no output
leaf any more, and the case/output allowance that left it unchecked is gone.
Both keep their status and notices sites, with the access-order and the
device-reconvergence notice declarations; the divergent loop keeps its
counts-half site (what no thread writes, which no order changes), compared
exactly. The two recordings lose their output leaf (the 26 lines of it, the
rest byte for byte as recorded). The lockstep model and the tests over the
recorded words go with the leaf; the two stub tests now prove the cases
announce under either note, compare no raced word, and still read a moved
counts-half byte as divergent.
- validation 129666ac and 4b74b854 (the two authored cases whose observation
is a raced word) are deleted with their Metal and MoltenVK observations.
authored-compile.tsv keeps their rows until development's re-bless.
- docs/CONFORMANCE-COVERAGE.md regenerated: simdgroup_lockstep compares every
field.
Verified: the compile job named in the lane's report.
A mesh render pipeline's answers to Metal's mesh queries (maxTotalThreadsPerObjectThreadgroup,
maxTotalThreadsPerMeshThreadgroup, the two execution widths, maxTotalThreadgroupsPerMeshGrid)
were computed at every compile_mesh_pipeline and read by nothing outside the translator's own
test of them. The runtime compiles no mesh pipeline: its rendering stays on vertex functions,
and the conformance suite's rt side answers mesh_pipeline_limits Unavailable. The consumer reads
none of it.
Deleted: the field, the struct and its re-export, Device::mesh_info (the private compile of the
answers) with METAL_MESH_GRID_THREADGROUPS, its only reader, the codec rows, the content
digest's row, and the test a_mesh_pipeline_answers_metals_mesh_queries_within_the_device. The
mesh descriptor's thread and grid maxima stay: Metal's refusals of the thread maxima
(MeshPipelineProblem) read them, and their docs no longer point at the answers. Metal refuses no
grid maximum, so after this nothing but the descriptor and artifact keys reads
max_total_threadgroups_per_mesh_grid.
ARTIFACT_FORMAT_VERSION 566 -> 567: RenderPipeline's encoding loses a field. Every render
pipeline's content digest changes (one row fewer); module words do not, so the golden hashes
and SEMANTICS_VERSION do not move.
Consumer search (~/.cache/m2v-orch/consumer-uses.sh, the consumer's development a48b3984af plus
its 66 steelbrain/* refs younger than a day):
- mesh_info: 0 hits (code)
- MeshPipelineMetalInfo: 0 hits (code)
- compile_mesh_pipeline: 0 hits (code)
- the five field names max_total_threads_per_object_threadgroup,
max_total_threads_per_mesh_threadgroup, object_thread_execution_width,
mesh_thread_execution_width and max_total_threadgroups_per_mesh_grid: hits, all the
consumer's own names. They are its wire and decode records of the guest's descriptor, and
rt_platform/render_pipeline.rs's state methods, which answer 0 ("no object stage" / "no mesh
stage"). None reads this struct, and the struct and the field that holds it have 0 hits.
api_signatures blessed (scripts/api-signatures/signatures.py --bless): 7 records removed, the
struct, its five fields and RenderPipeline.mesh_info. api_surface loses the struct's row.
m3-max-60746 (M3, rc 0): the golden bless moves 14 rows, none of them of this branch, all under
development's commits since 38d67fc285 (SEMANTICS 2223, the YCbCr writes' refusal, the render
stages' pinned subgroup size); the engine inventory is unchanged. The compile census
(--bless, 143 s wall) has 0 differences and 0 regressions against the table blessed at
7e204b59c1: 45163 cells, compiled 44259, refused 904, failed 0; 4 rows' artifact digests move.
Slowest compile 1250 ms (8fcfce90580f..., gate-lavapipe+robustness-off), slowest cell 3658 ms
(a52f5ecd0cb3..., amd-rdna3-radv+robustness-off), largest worker 228 MB RSS and 184 MB allocated
(eb35c993da21...): within the 20 s and 500 MiB ceilings.
device/derive.rs refuses a description whose maxPushConstantsSize is below the push window
(crate::lower::push::FLOOR_BYTES), so the runtime inputs' closure reaches lower/push.rs.
the_runtime_sources_are_the_committed_ones lists it with why a run depends on it no further than
the artifact digest: derive.rs reads only the window's 256 bytes, to refuse a device before any
pipeline exists, and what the lowering makes of the window is in the pipeline the digest covers.
m3-max-60701 (M3, corpus-triage --audit authored-compile --bless, rc 0, 117 s wall, 403 MB peak
case worker): 2377 cases x 19 profile legs, 45163 cells, compiled 44259, refused 904, failed 0,
uncovered 114; the floor's deletion takes the roadmap-2022 and vk12-floor legs and the two cells
that failed there (Internal RequirementsExceedProfile, 59846).
Against the table last blessed on development (3228fbc9d6, 11-18), 520 cells move, each a
typed answer of a change development already holds:
152 compiled -> tooling_requirement seq_cst_fence (b621a8e17f)
114 compiled -> tooling_requirement replayed_template_resources
76 compiled -> tooling_requirement mesh_render_pipeline (b5cbdb2b4a)
75 compiled -> MeshShading needs VK_EXT_mesh_shader (f7279104ae, emulated meshes go)
49 PixelCoverage driver_defect -> compiled (fda94462c8, the dead driver variants go)
25 compiled -> SubgroupOperations needs shaderQuadControl, 24 needs SubgroupStage(Vertex)
4 compiled -> LayeredRendering needs geometryShader (moltenvk-m3)
1 new case
The slowest single compile is 631 ms (case c7efab752dc9..., nvidia-rtx50-linux+robustness-off),
the slowest cell 1632 ms (748b3f8e059d..., nvidia-rtx5080-laptop+robustness-off), and the largest
worker 234 MB RSS (8fcfce90580f..., lavapipe) and 184 MB allocated (eb35c993da21...,
amd-780m-radv): within the 20 s and 500 MiB ceilings.
Clippy (every configuration, m3-max-60672) refused six sites of the floor's test edits: three loops
over a single profile (engine_pointer_memory, engine_pointer_values, the stencil tests) become a
binding of that profile's name, and engine_texture_tail passes its loop's profile reference as it
is, not borrowed again.
m3-max-60669 (M3, bless_golden_hashes rc 0, at 80d70b39d4 on development 38d67fc285): 183 rows
change, none of them of this branch. Its bless at 949eb5d84f (development 1fc878dc12 under it)
changed no cell of a profile the table already held; development's three commits since
(ac854bc6fc the 16-byte status buffer, 0d13f947b6 SEMANTICS 2222, 38d67fc285 the private sample
mask) are what moves these rows. The engine inventory blessed in the same job is unchanged.
The golden table and the engine inventory, blessed at 949eb5d84f on the M3 (m3-max-60636,
bless_golden_hashes, and m3-max-60648, bless_engine_inventory, both rc 0): the columns of the four
deleted profiles (lunarg-desktop-baseline-2023, roadmap-2022, swiftshader, vk12-floor) go and
runtime-floor's joins. No cell of a profile both tables already held changed (golden: 0 of 3488
rows x 15 profiles, every one of their fingerprints equal; engine: 0 of 3459 rows), and no row is
new or gone.
runtime-sources.sha256 takes 9c6abe55... at this tree (development 34537ad4b9 under the branch;
the guard's hash, recomputed by its definition and checked against development's own pin and
against 807baeea..., the value m3-max-60649's guard printed at 949eb5d84f). The branch's edits to
the runtime's inputs: device/derive.rs refuses a description whose maxPushConstantsSize is below
the 256-byte push window (Unsupported{PushWindow}); khronos.rs and the metal/ sampler, state and
vertex files change comments and their test modules only. A description at or above the window
derives as before, and one below it is refused before any pipeline exists, so no run of a device
the runtime takes changes and RUNTIME_VERSION stays.
Verified: m3-max-60649 (msi) passes profile_f_functions_reach_every_buffer_through_a_descriptor
and the_floor_profile_states_exactly_the_floor at 949eb5d84f.
The runtime's floor requires VK_EXT_line_rasterization with bresenhamLines (107dba0b33); the
regeneration's RUNTIME_FLOOR block now states both, and runtime-floor.json is regenerated from it
(scripts/regen-device-profiles, --only runtime-floor; check_device_profiles: 0 findings), so the
runtime's the_floor_profile_states_exactly_the_floor holds.
On runtime-floor, a function with more storage textures than the per-stage limit (13 against 4,
kernel_block_read's br_rw) is refused on the formatless floor by the descriptor count, while the
device without the formatless reads asks for the storage format first, before that check is
reached. profile_f_functions_reach_every_buffer_through_a_descriptor accepts that pair.
Verified by suite m3-max-60543 (msi) naming these two among its reds; rerun follows.
- engine_profile_f: on Profile F (runtime-floor without bufferDeviceAddress), a function the
formatless floor accepts through its formatless bits may be refused naming the formats'
formatless access (no format of a description without the features states it), as well as
asking for a storage format.
- acceptance: the opened 1.3 description keeps ExtendedDynamicState and ExtendedDynamicState2,
which 1.3 core holds, beside the enabled set.
- engine: the color-groups test splits on runtime-floor with four color attachments (below the
runtime's floor of eight), where vk12-floor's four were.
From m3-max-60496. Verified: cargo fmt.
runtime-floor states shaderInt64, so Profile F (runtime-floor without bufferDeviceAddress) lacks only
the device addresses; and it states tessellationShader, which enables a fragment PrimitiveId, so the
stage-io test reads the flat varying on runtime-floor without it (m3-max-60496). Verified: cargo fmt.
What: profiles/below-floor/swiftshader.json, its generator source entry
(scripts/regen-device-profiles, gpuinfo report 38278) and its README row are deleted. The
from_queries refusal test (a_push_window_below_256_bytes_is_below_the_floor) reads
below-floor/vk12-floor alone.
Why: no test compiles on it any more. Its forms (4-lane vertex subgroups, reads with a format
only, robustImageAccess alone) are tested on runtime-floor with those properties stated, and a
below-floor push window is the vk12-floor description's 128 bytes.
Consumer check: no public item of a published crate is deleted.
Verified: cargo fmt. The suites run on this tree with the previous commit's jobs.
What: Device::from_queries refuses a description whose maxPushConstantsSize is below the 256
bytes every stage's push window is lowered for, with a typed Unsupported{PushWindow} naming the
MaxPushConstantsSize limit (crates/metal2vulkan/src/device/derive.rs, the floor checks of
from_queries). The runtime's floor (metal2vulkan-runtime's floor list) requires
maxFragmentOutputAttachments >= 8. All 15 committed device profiles report 8, and so does every
matrix card.
The committed profile set keeps only devices at or above the floor:
- roadmap-2022 and lunarg-desktop-baseline-2023 are deleted;
- vk12-floor and swiftshader move to profiles/below-floor/, inputs of the from_queries refusal
test only;
- runtime-floor, derived from the runtime's floor by scripts/regen-device-profiles and held
equal to it by a test, is the floor every test compiles on.
A test of a below-floor form now runs on runtime-floor without the feature that form stands in
for, labelled "below the runtime's floor" (pipeline::testing::profile_without, PROFILE_F,
device_f, FORMATLESS_FLOOR). The validation tests name runtime-floor, or derive the device they
need from it (no tessellation, no formatless writes, robustImageAccess alone, no device
addresses).
Why: the runtime refuses every device below its floor, so translating for those profiles tested
forms no device the runtime opens can ask for. A push window below 256 bytes cannot hold what
the lowering puts there.
Consumer check: no public item of a published crate is deleted. The one removed constant,
FORMATLESS_FLOOR's old value, is in the crate-private pipeline::testing.
Not in this change, re-blessed on development: the golden hashes table
(tests::golden_hashes) and the public fixture expectations (tests::public_fixtures_engine). The
runtime-sources pin (candidate::engine::artifact) follows from the test run at this tree.
Verified: cargo fmt. The suites, clippy and the CPU-ICD run are potluck jobs on this tree, named
when the branch is handed over.
m3-max-60725 on the M3 at be91f9f6cb: bless_engine_goldens passed, 197 golden
cells changed (the lockstep, mesh, status-word and YCbCr-write changes since the
last bless at 1b1a47ac4c), printouts unchanged. The commits since be91f9f6cb
(2e5854ac3f conformance declarations, 34537ad4b9 runtime render-stage subgroup
size) change no translator output, so the table holds at this tip.
ash's StructureType implements no Debug without its debug feature, so assert_eq! of it does not
compile under a device cfg (job m3-max-60674 on gem10: E0277 at tests/subgroup_sizes.rs:51).
Metal's simdgroups are 32 wide. The translator lowers a vertex or fragment stage's SIMD-group
operations for that width, and pins it (StageModule::required_subgroup_size) on any device that
lists the stage in requiredSubgroupSizeStages with 32 inside [minSubgroupSize, maxSubgroupSize]
(device/subgroup.rs requirement()). The runtime enables subgroupSizeControl, so this is a statement
the translator makes under the runtime's own inputs. The runtime chained
VkPipelineShaderStageRequiredSubgroupSizeCreateInfo for kernels only. Its render Module dropped the
size, so every render stage ran at the driver's own width, and unbuilt() did not name the field. A
fragment the translator lowered for 32 lanes could then run 64 wide (RADV's default for fragments on
RDNA), and its lane IDs, ballots, shuffles and reductions changed without any message. The deleted
runtime chained the size per stage (pipeline/graphics.rs in 5d725aeec7^), so the cutover dropped it.
Module now carries the stage's pinned size. make() chains it through stage_infos(), the same
structure the kernel path chains (pipeline.rs make()); a stage with no pinned size chains nothing.
Tests (tests/subgroup_sizes.rs):
- a_render_stage_is_made_at_the_subgroup_size_the_translator_pins (host): a vertex stage with no
size chains nothing, and a fragment pinned at 32 chains one size structure of 32.
- every_device_whose_fragment_stage_pins_32_runs_its_fragments_32_wide (device cfgs):
gsm2_fragment_lanes' fragment_lane writes [[thread_index_in_simdgroup]] over a fully covered
R32Uint target, and every lane must be below 32. A device whose fragment stage takes no pinned
size of 32 prints a skip line naming its sizes.
The landing note names the jobs: the lint and lavapipe job, and the RADV run with a control that
drops the pin.
The runtime now records simdgroup-access-order for every kernel holding a SIMD-group access pair,
and the kernels of 17 cases hold one, so each replay leg of round 8cd636866a read them divergent at
case/notices ("we announced the degrade notice metal2vulkan-degrade-simdgroup-access-order, which
the case declares nowhere"): bicubic-texel-classes, border-swizzles-{a8unorm,bgra8unorm,r16float,
r8unorm,rg16float,rg8unorm,rgba16float,rgba8unorm}, buffer-bind-off-alignment,
compute-threadgroup-memory-reads-zero, nearest-sample-positions, resolve-store-then-load and
vector-word-phases-{0,4,8,12}. Each of the nine legs (2080, 3090, 5080, hawkpoint, iris, lavapipe,
phoenix, rx550, xtx) listed the same 19 sites outside known-gaps-rt.tsv, every one this notice's
(compute-threadgroup-memory-reads-zero also at case/notices/set and case/notices/counts), and no
other case. Every value site of these cases compared equal or was already a known-gaps row.
- replay::simdgroup_access_order_notice: the declaration, a notice_allowance of the code, as
pixel_sampler_scaling_notice and swizzled_border_notice are. It loosens the notices site alone,
so every value still compares exactly.
- The seven case modules name it in their allowances.
- docs/CONFORMANCE-COVERAGE.md re-derived: unchanged (a notice declaration is no tolerance).
the_old_render_descriptor_key_keeps_its_value pins the key of an old render descriptor, which
carries SEMANTICS_VERSION; 612663c617 moved it to 2223. The pin is the key m3-max-60671 printed
at c0079ec594 (left: b46ad11d...).
Verified: m3-max-60671 at c0079ec594 passed fmt, clippy, clippy_gpu, clippy_cpu and doc, and
547 of 548 focused tests; this test was the one failure. A compile job that prints the key is
owed for this commit.
612663c617 removed Lookup::Flagged's and Indexed's ycbcr field. lower::select's entry test
(select.rs) still matched on it, and so did the engine_heap_binder and engine_identity tests that
build the forms; they no longer name it. The conformance suite's known gaps record two
refusals' text, which carries the Indexed form's Debug
(read-through-heap-border, read-through-heap-sampler): those rows lose "ycbcr: false".
Verified: m3-max-60654 at 612663c617 showed the six errors (E0026, E0559); fmt passed there. A
check is owed for this commit.
Metal stores a function's writes to an unpacked 4:4:4 two-plane YCbCr texture into both its
planes. The translator held such a slot through an R32G32B32A32_UINT write shadow
(StorageImageClass::YCbCrWrite), and a heap's float storage class held such a member through an
R32G32B32A32_SFLOAT view of its shadow, flagged in its handle-table entry (FLAG_YCBCR_WRITES).
The consumer then encoded the shadow into the planes with bind::ycbcr_write_module. The same
module's second mode stored a render pass's YCbCr attachment (FormatEmulation::YCbCrRendered) into
the planes. metal2vulkan-runtime refuses every YCbCr texture (Gap::TextureFormat), so neither mode
ever ran, but every heap write of a float or half texel through a 2D handle carried the flag's
test and select under its own specialization constant.
Now a slot that writes such a texture keeps the format's refusal (storage_choice,
NotImplemented(Format)), as the other 4:4:4 formats' writes did, and a heap member of one has no
storage choice, so the heap refuses it (ArgumentBufferTextures, NotImplemented). A heap write no
longer tests the flag, and its handle-table search no longer carries it. FormatEmulation::
YCbCrRendered stays as the pipeline's form: a pipeline into such an attachment is made as before,
so no new pipeline-state refusal appears. Its doc now says the pass's store into the planes is not
implemented and that the runtime refuses such textures.
Removed:
- lowering: StorageImageClass::YCbCrWrite (slot.rs's write-only check, emit's ycbcr_write_texel
and YCBCR_WRITE_WORDS), the heap mark (heap_ycbcr_mark, HEAP_YCBCR_WRITE_WORDS,
Write::heap_ycbcr, lower::texture::heap_ycbcr_writes), AccessPlan::heap_ycbcr_writes, and the
YCbCr element mask in heap_element_index.
- memory::handles: FLAG_YCBCR_WRITES, HANDLE_YCBCR_WRITES, Lookup's ycbcr field in Flagged and
Indexed, carries_ycbcr, ycbcr_writes_spec, ycbcr_flag_mask, ycbcr_element_mask,
ycbcr_writes_set, k32_const, and Table's stage (only the YCbCr carry read it). carry takes the
form alone. The search tests lose the YCbCr forms and
a_search_carries_the_ycbcr_flag_only_under_its_constant. The test tables keep an unused bit 15.
- pipeline: SpecKey::HeapYCbCrWrites; HeapStorageReads' doc loses the write shadow.
- binder: plan/resources' write-shadow choice, bind::heap's shadow view, its entry flag and the
reads_unmeasured case, plan::slots::heap_ycbcr_writes and its two specialization arms (compute
and graphics). bind::ycbcr_write goes whole: ycbcr_write_module, YCbCrWriteModule, and the CPU
models ycbcr_write and ycbcr_store, along with their tests. bind::ycbcr_convert loses
words_buffer and scalar, which only the write module used.
- metal::format: ycbcr_writes_stored. The YCbCr, YCbCrRendered, writes_dropped, ycbcr_renders
and held_storage_choice docs say what holds now.
- tests: engine_heap_ycbcr_writes, engine_extended_range's
ycbcr_write_slots_store_each_texel_s_bits_and_mark, and engine_handles' word allowance for the
mark (100 words). owned_divisions loses the write module; api_surface loses five rows.
SEMANTICS_VERSION 2223 is in this commit (placeholder; main renumbers): every heap write of a
float or half texel through a 2D handle loses the mark's code, and the plans of such slots
change (a refusal). ARTIFACT_FORMAT_VERSION 566: SpecKey loses HeapYCbCrWrites in the codec.
RUNTIME_VERSION 2545: bind::heap's handle-table entry flags lose bit 15. The runtime pin is
updated. api_signatures is regenerated, and so is docs/REFUSALS.md (one site fewer for
ArgumentBufferTextures and one for Format).
Consumer check (consumer-uses.sh, consumer development 12b87d3d6b, 64 refs): YCbCrWriteModule,
ycbcr_store, ycbcr_write, ycbcr_write_module, HeapYCbCrWrites, YCbCrWrite, FLAG_YCBCR_WRITES,
WRITTEN_BINDING: 0 hits (code). ycbcr_writes_stored: 0 hits on development. It is used on 39
consumer lane branches (steelbrain/quiesce and others, the newest 17 hours old), in
crates/reims-vgpu-vulkan/src/gpu/ycbcr/sampling.rs:2527, a test of the old runtime's YCbCr write
path. That directory is not on the consumer's development.
Verified: nothing yet (a check job is owed).
crates/metal2vulkan/build.rs only set M2V_SOURCE_DIGEST (named cache::SOURCE_DIGEST in its
comment), and no code reads it: no env!/option_env! of it in the tree, and the consumer's
checkout has 0 hits for M2V_SOURCE_DIGEST and SOURCE_DIGEST (consumer-uses.sh: development
12b87d3d6b and 64 refs). The script, its copy of build_support.rs, the sha2 build-dependency
and validation's test that held the two copies equal (the_build_support_copy_is_the_translators)
go; the manifest says build = false, as the AIR front end's does, so no build script appears
unannounced.
Validation's build_support.rs is now the only copy. Its product fingerprint hashes the
translator's manifest, a build.rs only where one lies beside it (none now), and the module tree;
the definition's tag names the change, so no fingerprint under the old definition equals one
under this. The synthetic-product tests drop the copied file from their tree. The manifests'
comments name validation's fingerprint in place of the translator's.
The translator states GraphicsState::sample_mask: the descriptor's private sampleMask and
sampleCoverage as one Vulkan pSampleMask word, wherever Vulkan's mask keeps the samples Metal's
keeps (otherwise the fragment function applies the masks itself, or the translator refuses the
pipeline). The runtime's render pipelines dropped it. make() chained no pSampleMask, and neither
refuse() nor unbuilt() named the field, so a state made with a guest's private mask wrote every
sample: at one sample with bit 0 clear, Metal draws no colour and the runtime drew all of it. The
consumer passes the guest's private sample mask and coverage to the runtime's descriptor. The
deleted runtime applied the field (pipeline/graphics.rs in 5d725aeec7^, the multisample state's
sample_mask), so the cutover dropped it.
Fixed now carries the mask and make() chains it, as ceil(samples / 32) words, Vulkan's length for
pSampleMask; a word past the first keeps every sample. A pipeline needs no new key: the content key
(queried_render_descriptor_key) already destructures PrivateRenderState in full and hashes
sample_mask, sample_coverage and sample_coverage_invert, so two masks are two contents, each with
its own VkPipelines. The new_render_pipeline_state doc said "one sample" and that the runtime
refuses everything else the translator states; it now lists the raster sample count, the private
sample mask and coverage, and the logic operation.
Test: every_device_keeps_only_the_samples_of_a_private_sample_mask (device cfgs). spc_num_samples
fills an R32Uint target that a pass clears to 0. The state without a mask, made first, draws 1 at
one sample. The state with mask 0 on the same device leaves every pixel at 0, which fails without
this change. At 4 samples, mask 0b0101 writes samples 0 and 2 only (4, 0, 4, 0 per pixel, read
back by ido_samples). Compile and lavapipe jobs are named in the landing note.
the_old_render_descriptor_key_keeps_its_value pins the key of an old render descriptor, which
carries SEMANTICS_VERSION; 95571f5968 moved it to 2222. The pin is the key m3-max-60599 printed
at 95571f5968 (left: 8f3a77d7...).
Verified: m3-max-60599 at 95571f5968 ran 257 focused tests; this test was the one failure.
m3-max-60581 at d836c23e86 (the same commit before its rebase onto d95206f37b) passed fmt,
clippy, clippy_gpu, clippy_cpu and doc. A compile job that prints the key is owed for this
commit.
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).