47d782f3a51692f15dce424e598c1323dd00a2bf
8452
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
47d782f3a5 |
Fix forward of 14dca89bf9: lint, a float depth stays on the executor's context, a format the device lacks is not_enabled
What: the compile gate m3-max-60907 at 14dca89bf9 failed clippy twice and Rustdoc twice:
- `usage = usage | ...` becomes `usage |= ...`;
- `dispatched` takes its dispatch and threadgroup size as one argument;
- the public docs of `runs_through_runtime` and `RuntimeKernel` named private items as links.
The family's public proof (m3-max-60908, 218 cases on lavapipe against committed Metal, before
and after) showed 17 rows failing through the runtime:
- 15 bind a Depth32Float texture, whose bytes the runtime takes no upload of
(Gap::FloatDepthUpload). The executor cannot fill one, and a guest fills one by drawing.
`runtime_texture` now keeps such a texture on the executor's own context, where these rows
ran before.
- 2 bind R8Unorm_sRGB, which lavapipe's format query lacks. The runtime refuses it as
Gap::TextureFormat; before, the executor's own context recorded not_supported{not_enabled}.
`runtime_error` now maps that gap to NotSupported::NotEnabled with the gap's text. Every
other runtime gap still fails the row.
ENGINE_EXECUTOR_ABI is now vulkan-engine-v188. docs/VALIDATION.md's "Through the runtime" now
names textures and samplers, what keeps a case off the runtime, and the not_enabled mapping.
Tests: the routing test adds a Depth32Float texture, which is not routed. A new unit test
covers runtime_error's two mappings.
Verified: in the lane's report (compile gate and the focused rerun of the 17 rows).
|
||
|
|
0054bddacb |
Validation: a kernel case's bound textures and samplers run through the runtime
Family B of the executor's move onto metal2vulkan-runtime. A kernel case whose bound textures the runtime makes, and whose bound samplers it makes, now runs through the runtime's public API (engine::runs_through_runtime), as family A's buffers do. A texture output is observed the same way. Stays on the executor's own context: a texture the runtime does not make. That is a multisampled or sparse texture, a texture buffer (Gap::TextureBuffer) or a cube array (Gap::CubeArrayTexture). An argument buffer's textures and samplers stay too: they are family C. How the runtime run makes them (platform::runtime_textures), as the Metal oracle does (metal::platform::textures): - Each texture has its type, pixel format, extent, array length and levels, in Shared storage. Its usage is its role's, narrowed by what the function declares of the slot, with ShaderAtomic where the function's texture there is atomic. An array element takes its array's declaration (engine::runtime_texture_usages, passed in RuntimeKernel). Its index is from the run's texture grant. Every level's slices are written before the work (replace_region). - Each sampler is the oracle's descriptor (resources::sampler_descriptor), at an index counted down from the top of the run's sampler grant. The constexpr samplers the pipeline numbers count up from the bottom. - Both are bound at their Metal slots in the dispatch's encoder. - A texture output is read back as the oracle reads one: the selected region of level 0, slice by slice (get_bytes). TextureLayout::metal_array_length is now the one rule the oracle and the runtime run use. Tests: the routing unit test takes a sampled 2D texture with a texture output into the runtime, and keeps the four exclusions out. Three texture device tests (a texture array's element at its slot, a read_write texture's fenced write, a sampler's sample) now also run through the runtime on Linux, against the same expectations. ENGINE_EXECUTOR_ABI is now vulkan-engine-v187: rows of these cases are recorded from the runtime's run. Verified: the compile gate and the family's proof (public and private cases on lavapipe against committed Metal, before and after), both named in the lane's report. |
||
|
|
38b9c491e4 |
Bless the golden tables and the compile census at 2f5cf2374e (SEMANTICS 2225)
The engine fixture rlm_runtime_limits, added by |
||
|
|
2f5cf2374e |
Fix forward of 60926: the old render key at SEMANTICS 2225, and the second source's XR blends refused
- pipeline::compile::tests::the_old_render_descriptor_key_keeps_its_value: the key 60926 printed (left) at SEMANTICS 2225, 45541a82c360366c...; it was f65d353b285b1571... at 2224. - engine_fragment::a_second_source_blend_without_fast_math_reads_the_second_output: its last loop blended each of the six extended-range formats (raw 550 to 555) premultiplied over and expected the pipeline made. A blend into one of Apple's extended-range forms is refused now (the refusal commit before), so the blended half expects NotImplemented(Format); the unblended half is made as before, with no dual-source output. The test's doc says so. Test only; the runtime pin stays. Verified: m3-max-60926 (msi, at d69740f5ce) showed both failures and nothing else: fmt, clippy and Rustdoc green; tests 4401 run, 4399 passed, these 2 failed, 20 skipped. The next check is named in the report. |
||
|
|
d7de71c58d |
Fix forward of 60922: the refused fetch test borrows the artifact it prints
a_fetched_extended_range_attachment_is_refused printed a made artifact's facts by moving them out of the Arc that compile_with returns (E0507). It borrows them now. Test only; the runtime pin stays. Verified: m3-max-60922 showed the error (clippy and test, metal2vulkan lib test); the next check is named in the report. |
||
|
|
81ced9a1cb |
Extended-range fetch and blend refused: what needs Metal's tile half is NotImplemented(Format)
Metal's tile memory holds an attachment of Apple's extended-range formats (BGR10_XR, BGRA10_XR,
RGB10A8_2P_XR10 and their _sRGB twins) as half through a render pass and rounds it to the codes
only at the store. A fetch of such an attachment, or a blend onto it after an earlier draw of the
pass wrote it, sees that draw's half. The attachment holds the codes. With the half shadow gone
(the commit before), such a read or blend would take the stored codes, which is wrong but valid
output. Both are now a typed refusal, NotImplemented(Format) at Attachment::Color(n), on every
device and in either fetch form. This is the same boundary as the runtime's own refusal of every
extended-range texture: Gap::TextureFormat (crates/metal2vulkan-runtime/src/error.rs:1011),
raised in texture.rs's form() (texture.rs:2416, `if !viewed(mapping.emulation)`), so rt never
makes such an attachment.
Where (lower::fragment::fetch::codes_round_the_tile names the forms: an extended-range form that
is neither padded nor bfloat):
- A fetch: color::select_param, beside the bfloat fetch's refusal. It runs for the storage form
and the input attachment alike. An integer read stays Metal's pipeline error
(InvalidDescriptor(ColorAttachment)).
- A blend into one the function writes, under any write mask:
- fetch::blended_extended_range, which both ordered devices' plans call (the interlocked storage
form, and input_blend over rasterization-order input attachments);
- stage_io::extended_color::plan, on a device that orders fetch in neither form. It is checked
before the orderings' refusal, since no device would make the blend.
- The public door metal::format::extended_range_blend answers NotImplemented(Format) for those
forms on every device.
Unchanged: an unblended write and a masked merge (a kept code is the encode of the half the tile
keeps there). Padded forms (R10Unorm_X6, RG10Unorm_X12, their _sRGB twins, RGB10A2Unorm_sRGB):
their fetches and blends are built as before. Bfloat: its fetch is refused as before, and its
blend is Metal's error.
Dead with it: the source-range clamp only those blends took. Every caller of
extended_range::blend::native now passes a padded form's None. Removed: blend::extended_ranges,
clamped_lanes and native's ranges parameter, extended_range::source_range, and blend_color.rs
(SOURCE_RANGE, SRGB_SOURCE_RANGE). The validation build script's runtime inputs list
blend_color.rs no more, and the runtime pin moves. In the CPU-model tests: the XR forms' blend
cases and EVERY_FORM; the padded blends keep their model.
Docs: fetch's module docs (the extended-range paragraph, plus one on Apple's forms in place of the
"across draws" one), color's and stage_io::extended_color's, input_blend's, ExtendedRangeColor's,
PrecisionNote::ExtendedRangeBlendSource and ExtendedRangeFloatBlendSource (now padded only), the
door's, and docs/API.md (section 4's framebuffer fetch, and the two notes' catalogue entries).
docs/REFUSALS.md regenerated, api_signatures blessed.
Conformance (crates/metal2vulkan-conformance/known-gaps-rt.tsv), by expectation: the next round's
conformance replay on every card confirms them. 260 rows change their answer from "unsupported:
FramebufferFetch; needs AnyOf([[Feature(FragmentShaderPixelInterlock)],
[Feature(RasterizationOrderColorAttachmentAccess)]])" to "unsupported: Format; needs
NotImplemented", at the same metadata and color attachment. Their explanation now names the
refusal:
- xr-blend-* (108);
- xr-gamut-* (108);
- xr-gradient-*-blended (24);
- xr-masked-*-over (20).
The unblended masked rows (xr-masked-bgr10xr-red, -blue-green and their sRGB twins) keep the
orderings' refusal. The runtime's floor orders fetch in neither form, so its stage_io refusal is
what these rows record. docs/CONFORMANCE-COVERAGE.md is regenerated.
Tests:
- fetch::tests: the door's case splits Apple's forms (NotImplemented) from the padded blended
ones; on runtime-floor, R10Unorm_X6 keeps the orderings' refusal and BGRA10_XR is
NotImplemented; the moltenvk-m3 FragmentStoresAndAtomics case takes R10Unorm_X6.
- engine_extended_range::blended_pipelines: a `refused` helper (Format, NotImplemented,
Color(0)); the wide-gamut client pipelines are refused on every venue and runtime-floor; the
unwritten and masked test expects the refusal for every written blended shape.
- engine_extended_range::targets: a blended attachment, and lavapipe's fetch, expect the refusal.
- engine_fragment: a_fetched_extended_range_attachment_is_refused (every Apple form on every
committed profile, exf_fetch_three, and the whole pipeline on moltenvk-m3) replaces the made
fetch; the fast source-alpha-over sRGB XR blend and the input-attachment XR blend go, as they
covered refused forms only; the premultiplied blend test and the blend note's test move to
padded forms (RG10Unorm_X12 and its sRGB twin). con_fetch_coverage, the second-source blend and
tsw_fetch_discard keep their storage-form and coverage mechanics on RGB10A2Unorm_sRGB, the
four-channel padded form, where the guests' pipelines had RGB10A8_2P_XR10; their docs say so.
- lower::arith::extended_range::tests: the padded forms' blend model alone.
SEMANTICS_VERSION 2225 (after guestgaps' 2224, on development
|
||
|
|
2028eb6356 |
Fix forward of 60749: the requirements test's loop over one kind
Job 60749 (clippy and tests of metal2vulkan at 85ef8a373d) failed clippy alone: with ResourceKind::ExtendedShadow gone, the requirements test that a color's storage form writes are not the function's looped over one kind (clippy's single_element_loop). It now checks TileAttachment directly, and its name and doc lose the shadow. Its tests passed (557 of 557). No version or pin changes. Verified: nothing yet for this commit (a check job is owed). |
||
|
|
c4b56b0b38 |
Fix forward of 60740: the shadow's tile read, and the moved writers' count
Job 60740 (clippy and tests of metal2vulkan at 2c728b7b79) failed on two things the shadow's removal left. extended_range::tile_read, Metal's read of a tile holding a `half`, read the shadow's texel alone, so nothing calls it now; it goes with its test (Op::TileRead and a_read_of_the_tile_clamps_as_metals_does) and blend::clamped's mention of it. engine_moved_writers' second test still named the move it no longer loops over; its set of planned states is now keyed by writer and tests, and it expects one move per writer. No version or pin changes: tile_read was never emitted for an unshadowed input, and the runtime pin is unchanged (0260cefd). Verified: nothing yet (a check job is owed). |
||
|
|
a950689934 |
Extended shadows go: no variant reads and writes an extended-range attachment's half shadow
Metal's tile memory holds an extended-range color attachment (BGR10_XR, BGRA10_XR, RGB10A8_2P_XR10 and their sRGB twins) as half through a render pass and rounds it to the codes only at the store. The binder offered a variant for a draw whose render pass instance held a half shadow of such an attachment (BindState/BindShape::extended_shadows, VariantKey::extended_shadows, LoweringInputs::extended_shadows). Its fragment function read and wrote an Rgba16f storage image beside the codes (ResourceKind::ExtendedShadow), either in the interlocked storage form or, on a device that fetches through rasterization-order input attachments, beside the input attachment (lower::fragment's input_shadow). metal2vulkan-runtime never asks for the variant and makes no extended-range texture (Gap::TextureFormat), so nothing reached it. Now no such variant exists. A function compiled with no shadow (every function, as before for every rt draw) is unchanged: a blend or fetch onto an earlier draw's write reads the codes that draw stored (extended_range::tile_value). Those differ from Metal's half where it is not a code's value, and fetch's module docs say so. Removed: - lowering: lower/fragment/input_shadow.rs (InputShadow and its plan, read, store and words), FragmentPlan::input_shadows, Declared::extended_shadows, the storage form's shadow (StorageColor::shadowed, declare_shadow, shadow_and_texel, shadow_read, the shadowed branches of texel, value, the write and its blended and merged forms, and their word estimates), and the input-attachment blend's, color read's and stage_io write's shadow branches. The loop over covered samples no longer has a shadow refusal. The blend's doc, which sat above merged_extended, now sits on blended. - pipeline: LoweringInputs::extended_shadows and its key bytes, VariantKey::extended_shadows, ResourceKind::ExtendedShadow, BindingSource::ExtendedShadow and its link arm, the fetch inputs' shadowed reads and writes and their tests and coverage (the input-attachment form passes no depth, stencil or coverage state, as before for an unshadowed draw), and the requirements trace's ExtendedShadow arm. MovableStorageWrites' doc loses the shadow. - binder: BindState::extended_shadows, BindShape::extended_shadows, WriteSource::ExtendedShadow, and the graphics binder's choice of the shadowed variant (its refusals of a mesh, layered, amplified or multisampled plain writer's shadow included). - tests: engine_fragment's four shadow tests and their helpers (image_accesses, shadow_image_types, execution_modes, interlocked); engine_moved_writers' shadow move (its Move enum goes, and the writers are checked with the interlocked move alone); the shape round-trip, the variant round-trip fixtures, the compile-key test's shadow arm, and the requirements test's ExtendedShadow kind. No SEMANTICS_VERSION bump: an input without shadows (every input a consumer can now state) lowers to the same words. Removing the shadowed branches leaves the instruction order of the unshadowed paths as it was, and the key appended shadow bytes only when the set was non-empty. ARTIFACT_FORMAT_VERSION 569 (after guestgaps' 568 on |
||
|
|
4a4a9ddff8 |
Fix forward of 3a5c6bcfd4: the texture-buffer member's refusal as lavapipe answers it, a granted index, the mesh census test
Gate m3-max-60884 at 3a5c6bcfd4 failed three of its own tests:
- a_texture_buffer_member_is_refused_at_the_make_where_a_2d_member_is_made.
lavapipe under the runtime answers the member's make with the
translator's capability refusal, DeviceCapabilityMissing of
Feature::ArgumentBufferTextures (the texel-buffer-array features). It is
not Unsupported{IdentityDomains}: the capability query comes first. The
test now matches the runtime's own typed error (make_kernel returns
rt::Error) on either feature. The 2D member is still made.
TextureBufferMember's doc names both forms.
- a_texture_buffer_is_refused_where_a_2d_texture_is_made. The 2D texture
was refused as Refused(TextureIndex { index: None }): a shader-read
texture takes an index of a live grant. The test grants one and makes
both textures at it. The texture buffer was already refused as
Gap::TextureBuffer.
- census::tests::object_and_mesh_rows_are_indexed_and_classified. Under
Limit::Runtime the object row closes and the two mesh rows stay unresolved
on mesh_companion (a tooling gap): unresolved 2, runtime_refused 3.
The gate's fourth failure,
enables::tests::every_committed_profiles_context_enables_its_pinned_chain,
is not this branch's: opened_chains.txt pins chains that four contexts no
longer enable. This branch touches neither the enables nor the profiles.
Verified: the compile gate named in the lane's report.
|
||
|
|
fd924dd9c8 |
Census: a requirement the runtime refuses is the runtime's limit, closed without a candidate run
The authoring-capability census stayed open on 66 rows, every one a
requirement whose shape metal2vulkan-runtime refuses: seq_cst_fence (14),
texture_buffer_member (6) and mesh_render_pipeline (46). Each was a tooling
gap (Limit::Tooling), which keeps a row unresolved, though no tooling the
executor could build would run them: the product refuses them.
The ruling is a third limit beside Limit::Metal. Limit::Runtime is the limit
of a requirement whose shape the runtime answers with a typed refusal, or for
which it has no call and the consumer refuses it itself. Its rows are closed
without a candidate run and counted apart: runtime_refused beside
metal_refused, in the summary line and in each executor's stops line. They
stay unresolved only where a tooling gap of their own keeps them open. What
the runtime runs and the executor cannot drive stays Limit::Tooling. This
replaces the first lane's "no new Limit" ruling.
- seq_cst_fence: the runtime refuses the pipeline at its make as
Unsupported{IdentityDomains}. Both ways on lavapipe: the existing
a_seq_cst_fence_is_refused_through_the_runtime_as_its_requirement_says,
and the new a_fence_of_another_order_is_made_through_the_runtime (the same
two stores around an acq_rel fence, made and run, its words checked).
One-off over the census's 14 rows (m3-max-60840, a probe that never
lands): each row's own make through the runtime on lavapipe, with no
input, is the named refusal, not_implemented IdentityDomains, 14 of 14.
- texture_buffer_member: two device tests, each both ways.
a_texture_buffer_is_refused_where_a_2d_texture_is_made: new_texture
refuses a texture buffer as Gap::TextureBuffer and makes a 2D texture of
the same format.
a_texture_buffer_member_is_refused_at_the_make_where_a_2d_member_is_made:
the make of a kernel reading an argument buffer's texture buffer is
refused as Unsupported{IdentityDomains}, and the same read of a 2D member
is made.
- mesh_render_pipeline: the runtime has no mesh call, and the consumer
refuses mesh itself (the runtime README's known gap). Without a call there
is no device test; that README sentence is the guard. The requirement's doc
says the limit flips when a guest's mesh pipeline is built.
- The new owned fixture rlm_runtime_limits (regenerated with
scripts/regen-air-fixtures on the M3, m3-max-60866) holds the acq_rel
fence and the two member reads. A triage test checks the classifier
takes each shape and not its pair.
- The platform's runtime device opening is factored out (opened), so the
device tests can make a texture or a pipeline alone under the validation
layer (on_runtime_device, make_kernel; both test-only).
- The analyzer version is now structural-triage-v85. docs/VALIDATION.md
states the closure. AGENTS.md's census bullet stays true as written.
Verified: the compile gate and the census, both named in the lane's report.
|
||
|
|
c46b81f67c |
runtime tests: every field of the translator's linked state has the runtime's verdict
tests/translator_fields.rs reads the public fields of GraphicsState, RenderPipeline,
StageModule, ComputePipeline and ComputePipelineMetalInfo from the translator's sources and holds
one verdict per field:
- Applied: the runtime builds what the field states;
- Refused: the runtime refuses it, typed, for the reason given;
- Fact: there is nothing for the runtime to apply, for the reason given.
It fails on any of these:
- a field that has no verdict, so a field the translator adds cannot be dropped in silence;
- a verdict for a field that is gone;
- an Applied field that no product source of the runtime reads as a field;
- a Refused or Fact verdict that names no reason.
The verdicts live in the test alone: product code holds no fact table, and no lowering is keyed
by a field's name. The five structs are #[non_exhaustive], so the runtime, being another crate,
cannot destructure them exhaustively; the test parses the source text instead, and a second test
pins the parser (a struct's public fields only, docs and line comments ignored).
The verdicts follow the field audit:
- the old runtime's sample_mask and the render stages' required_subgroup_size are Applied;
- sample_shading is gone (guestgaps), as are mesh_info and six GraphicsState facts nothing read,
so no field is left stated, neither applied nor refused.
- color_group is a Fact. It cannot be stated above the floor: a colour group takes a device of
fewer than 8 color attachments or fragment outputs, and floor::limits requires 8 of
maxColorAttachments and maxFragmentOutputAttachments (floor.rs:1207).
The compute pipeline's requirements stay a Fact (the profile the translator compiles for is the
set device creation enables): expected, not audited by a check.
Verified in the job named in the landing message: the test passes as committed, and its built
binary fails on two controls. In one, a `pub zz_unclassified: bool` is added to GraphicsState's
source and the test names it ("has no verdict"); in the other, GraphicsState's sample_mask is
renamed and the test names it ("has a verdict and no field"). The test reads the sources when it
runs, so neither control needs a rebuild.
|
||
|
|
d1a4d71834 |
pipeline: six GraphicsState facts nothing reads go
early_fragment_tests, writes_sample_mask, flat_fragment_inputs, clip_distances, reads_position_depth and interpolates_at_sample were stated by link for every render pipeline and read by no product code: not by the translator past link, not by metal2vulkan-runtime, not by validation or conformance. Each served a consumer form the runtime does not have: - early_fragment_tests and writes_sample_mask: a visibility count under early tests, and the runtime refuses visibility results; - flat_fragment_inputs: drawing a primitive's vertices in another order, and the runtime draws them in the guest's; - clip_distances: the module writes its own clip distances; - reads_position_depth: a viewport depth range other than Metal's, and the runtime refuses depth clamp; - interpolates_at_sample: custom sample locations, and the runtime draws at the device's standard ones. The stage interface keeps what they were computed from (StageIo::early_fragment_tests, position_depth, the builtins and the varyings' interpolation), which other code reads. Deleted with them: link/graphics.rs's reads_flat_inputs and interpolates_at_sample (their only callers), the two link tests that tested only these states (the_graphics_state_states_whether_the_fragment_function_reads_its_position_s_depth and ..._reads_a_flat_input), one assertion each in engine_primitive_ids and engine_multisample, and their lines in api_tests' round-trip literal. reads_barycentric_coord's and StageIo's docs no longer link to them. ARTIFACT_FORMAT_VERSION 568 -> 570 (569 is cutxlate's): GraphicsState's encoding loses six fields. No module words move, so SEMANTICS_VERSION stays. Consumer search (~/.cache/m2v-orch/consumer-uses.sh, the consumer's development b955213d27 plus its 63 steelbrain/* refs younger than a day): - writes_sample_mask, flat_fragment_inputs, clip_distances, reads_position_depth, interpolates_at_sample: 0 hits (code) - early_fragment_tests: 0 on development. On older lane branches, one doc comment (reims-vgpu-vulkan/src/answer.rs:911/916) names the MSL attribute `[[early_fragment_tests]]` in a list of gap kinds; nothing reads this field. api_signatures blessed (scripts/api-signatures/signatures.py --bless): 6 field records removed. docs/REFUSALS.md regenerated, unchanged. |
||
|
|
cad604745e |
Bless the authored compile census at 81bd82fdaa (SEMANTICS 2224)
m3-max-60904 on the M3 (census-exit 0), 16 rows moved: the product fingerprint and the artifact cells that guestgaps' branch (the memory-writes loop trigger and sample_shading gone, ARTIFACT 568) moves. The golden bless at the same tip (m3-max-60903) changed no cell. |
||
|
|
e8d943d913 |
Fix forward of 60834: bless the opened chains at 7bbc00287d
The floor branch (
|
||
|
|
7bbc00287d |
DeviceFragmentRuns names what follows the run count; section 10's intro admits notes
The note's doc and docs/API.md's entries (section 9's note, section 10's Draws entry) said only that a memory-writing fragment's writes repeat as the device's runs. Whatever the function derives from its own writes across runs follows the same count, its stored colours and its [[sample_mask]] output included: the conformance fixture coverage_outputs' cvo_masked writes the mask 1 << run, so at pixel rate on a device that runs once only sample 0 keeps its colour. Section 10's intro said its entries carry no degrade notice; the SIMD-group order entry and this one each name their static note, so the intro now says most carry none and an entry whose answer is the device's own names its note. Docs only: no emitted word or key changes. |
||
|
|
81bd82fdaa |
Fix forward of 60846: the old render key at SEMANTICS 2224, and the memory writer at pixel rate on a portability device
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. |
||
|
|
d9af879bfd |
ARTIFACT_FORMAT_VERSION 567 -> 568: the first-branch commit's codec change on 453eec0373
The parent commit's encoding change (GraphicsState::sample_shading removed, the PrecisionNote::DeviceFragmentRuns variant added) was written over development |
||
|
|
3ba18a4b19 |
A memory-writing fragment runs as the device runs it, noted DeviceFragmentRuns
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
|
||
|
|
2628c03fb2 |
player: a Windows host's video surfaces through an NT handle (--video-handle opaque-win32)
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. |
||
|
|
102b040483 |
Bless the authored compile census at f6da64ab5d
m3-max-60850 on the M3 (census-exit 0): the two validation lockstep cases
129666ac and 4b74b854 leave the table with their cases (
|
||
|
|
f6da64ab5d |
Compare no raced lockstep word: the two lockstep cases keep their notices, two validation cases go
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. |
||
|
|
453eec0373 |
pipeline: RenderPipeline::mesh_info and MeshPipelineMetalInfo go
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.
|
||
|
|
4535dd7e0d |
Bless the golden table and the compile census at cf79f3a73e: development's rows since 38d67fc285
m3-max-60746 (M3, rc 0): the golden bless moves 14 rows, none of them of this branch, all under
development's commits since
|
||
|
|
c16a6e142b |
Fix forward of 60670: the runtime's inputs reach lower/push.rs through the push floor
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. |
||
|
|
0e34fdc25a |
Bless the authored compile census at 7e204b59c1
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 ( |
||
|
|
52fbe373cd |
Fix forward of 60672: the floor's tests loop over one profile no longer, and borrow no reference twice
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. |
||
|
|
669768fde6 |
Bless the golden table at 80d70b39d4: development's 183 rows since 1fc878dc12
m3-max-60669 (M3, bless_golden_hashes rc 0, at 80d70b39d4 on development |
||
|
|
b2b78fed2d |
Fix forward: the floor's tables blessed, and the runtime sources pinned
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
|
||
|
|
256c363847 |
Fix forward: runtime-floor states the floor's line rasterization, and Profile F may ask for a format where the formatless floor refuses
The runtime's floor requires VK_EXT_line_rasterization with bresenhamLines (
|
||
|
|
88c5892025 |
Fix forward: the floor's tests on runtime-floor: a formatless-access refusal on Profile F, a 1.3 description's dynamic states, color groups on four colors
- 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. |
||
|
|
4395965ea6 |
Fix forward: Profile F's loaded-pointer refusal needs bufferDeviceAddress alone; the fragment primitive ID's varying is read on runtime-floor without tessellation
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. |
||
|
|
438028717d |
Fix forward: the storage-texture specialization test names DevicePolicy by its path
The floor branch's test built its profile with DevicePolicy::default() without importing it (m3-max-60481: E0433 in attempt.rs). Verified: cargo fmt. |
||
|
|
e3d7ba6bf2 |
Profiles: the swiftshader description below the floor is deleted
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. |
||
|
|
b90e0565da |
The floor: from_queries refuses a push window below 256 bytes, the runtime's floor requires 8 fragment outputs, and runtime-floor replaces the profiles below it
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.
|
||
|
|
3421c0f8ac |
Bless the golden tables at be91f9f6cb (SEMANTICS 2223)
m3-max-60725 on the M3 at |
||
|
|
34537ad4b9 |
runtime: compare the chained structure's type without Debug in the subgroup size test
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). |
||
|
|
640c74299c |
runtime: make render stages at the subgroup size the translator pins
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. |
||
|
|
2e5854ac3f |
Fix forward of 1fb5c22bc7: 17 conformance cases declare the access-order notice
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
|
||
|
|
be91f9f6cb |
Fix forward of 60671: the old render key at SEMANTICS 2223
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. |
||
|
|
1863e20891 |
Fix forward of 60654: the Lookup forms that still named ycbcr
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. |
||
|
|
75c9d080a3 |
YCbCr writes go: a function's writes to a 4:4:4 two-plane YCbCr texture are refused
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). |
||
|
|
33e9a6db52 |
The translator's build script goes: nothing reads M2V_SOURCE_DIGEST
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. |
||
|
|
38d67fc285 |
runtime: apply the translator's private sample mask to render pipelines
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. |
||
|
|
0d13f947b6 |
Fix forward of 60599: the old render key at SEMANTICS 2222
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
|
||
|
|
ac854bc6fc |
The status buffer shrinks to the words it holds: 16 bytes, its bits from 0 with no gaps
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). |
||
|
|
1fc878dc12 |
player: count every creation it does not attempt, by selector, reason and root
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). |
||
|
|
d95206f37b |
Fix forward of 60564: sharded_tests goes with its one user
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. |
||
|
|
3ffbd4f224 |
YCbCr conversion modules go: bind::ycbcr_convert keeps Metal's conversion as a CPU model
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). |
||
|
|
f5f2041604 |
Fixtures: regenerate lost_writes' AIR companions for lw_late_write and the run count
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. |