52f8ecc80d7a2d653caed785213a4cd0c2ead0c5
1888
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
52f8ecc80d |
Re-derive the generated documents at the landing tip
They are generated from the whole case set, and the set grew on `development` while this branch was in flight, so the copy committed here counted a smaller one. Verified: regenerating at this tip leaves no change beyond the `Generated at` stamp. |
||
|
|
e15d067fe0 |
rt: a texture view the image's own Vulkan format holds is made without PixelFormatView usage
A guest's Mac walk (58383) met Refusal::TextureViewFormat once: an A8Unorm view of an R8Unorm
texture made without PixelFormatView usage. Metal's validation layer stops such a view ("texture
usage (0x01) doesn't specify MTLTextureUsagePixelFormatView (0x10)"), and plain Metal makes it,
a blit out of it reading the texture's bytes (probe texture_view_rules.m, an Apple M3 Max under
macOS 27.0.1, jobs m3-max-43677 and m3-max-59523: R32Uint, RGBA8Uint, BGRA8Unorm and
BGRA8Unorm_sRGB of RGBA8Unorm; A8Unorm, R8Snorm and R8Uint of R8Unorm; R16Unorm of RG8Unorm).
- texture: without PixelFormatView usage, a view of a format Metal views the texture as with
that usage (views_with_usage) is made where the view's Vulkan format is the image's own and only
its component mapping differs, as plain Metal makes it: A8Unorm over R8Unorm is R8_UNORM with
red read as alpha on every device (rt never exposes A8_UNORM). A view that needs another Vulkan
format stays Refusal::TextureViewFormat: making every image mutable for it would cost every
texture (rule 3).
- error: TextureViewFormat's doc and basis say so, with the probe's pairs; docs/REFUSALS.md
regenerated. The runtime README records the divergence from Metal's validation in one sentence,
of the form of the scissor and tessellation-factor-offset precedents.
- tests (view): on every device, an A8Unorm view of an R8Unorm texture of ShaderRead usage
alone is made, and a draw sampling it (sampled_fragment into RGBA8Unorm) reads each texel's red
byte as alpha, (0, 0, 0, r), exactly; an R8Uint view of it, another Vulkan format, is still
refused, as is the R32Uint view of RGBA8Unorm without the flag. draw's CONSTEXPR is shared.
|
||
|
|
4f4c67b0af |
conformance: the rt ledger's point-viewport-coverage rows; a point's clipping is the device's own
With draws of points built (12c621779d), the case's 295 rows refused as "a draw with Points is not built" no longer hold. The conformance replay on lavapipe (job m3-max-59624, um870, LLVM 23.1.4) reads 249 of them as Metal's and 46 as different: - 44 rows (viewports 0, 2 and 3 along x, 4 and 5 along y, offsets 0.5 to 1.5): Metal covers one pixel whose centre lies on or past the viewport's edge, lavapipe covers none; - 2 rows (viewport 0 at x -1.5000001, viewport 2 at x +1.5000001): Metal culls the point, its centre past 1.5 w; lavapipe culls no point at the clip volume and covers the pixel. Metal states no clipping rule for a point (MTLPrimitiveType.point; the MSL specification's [[point_size]]), so per rule 1 the guard band and the edge coverage Metal shows are not emulated: a point near the viewport's edge or the clip volume is clipped or culled by the device's own rule (pointClippingBehavior and the driver's handling of the viewport). That is an accepted difference, in docs/API.md section 10 and the runtime README's point paragraph, and the 46 rows carry it, on llvmpipe. Other venues' rows come from the matrix. Verified: the replay's own printed rows (conf.out of m3-max-59624) are the rows written, venue narrowed to llvmpipe; the ledger drops 295 and adds 46. |
||
|
|
b975f6ddf7 |
rt: draws of points, through a point-class pipeline, with largePoints on the floor
A draw of points was Gap::Draw (DrawKind::Points) on every device; a guest's Mac walk met it 324 times. It now draws. - render: a content keeps a point-class VkPipeline beside its line-class one, made with the state where the descriptor names the point class (inputPrimitiveTopology), else at the first draw of points, a first-use wait (Metrics::first_use_point_waits, FirstUse::Points). The vertex module writes PointSize (the function's [[point_size]], at most Metal's 511, or 1.0). - render_encoder: Metal rasterizes a point of a function without [[point_size]] only under the point class; under another it rasterizes nothing and runs the vertex function, so such a draw records an empty scissor and the next draw the encoder's again. Points take no depth bias, as lines do not. - floor: largePoints is required, so a written size draws (without it a device draws only 1.0). rt's floor is Vulkan 1.3; Vulkan 1.4 lists largePoints among the features it requires (vkspec 1.4.366, 55.1 Feature Requirements) and the committed roadmap-2022 profile holds it. Every card we run reports it, from vulkaninfo today (device, job, pointSizeRange): KosmicKrisp 26.3.1 on the M3 Max m3-max-59492 [1, 511]; RX 550 RADV POLARIS12 59525 [0, 8191.88]; 780M RADV PHOENIX 59525, 59527, 59528 [0, 8191.88]; RX 7900 XTX RADV NAVI31 59527 [0, 8191.88]; RTX 2080 NVIDIA 620.70.06 59527 [1, 2047.94]; RTX 3090 NVIDIA 620.70.06 59528, 59526 [1, 2047.94]; Iris Xe RPL-P ANV 59526 [0.125, 255.875]; RTX 5080 Laptop NVIDIA 615.71.09 59529 [1, 2047.94]; UHD 630 Intel's Windows driver 59532 [0.125, 255.875]; lavapipe 59525..59529 [0, 256]. The README's floor list says so. - DrawKind::Points is deleted; docs/REFUSALS.md and the API signature table regenerated. - tests: on every device, points of [[point_size]] 4 cover their 4 by 4 pixels, the point pipeline made once at the first draw of points; a point-class state makes it with the state and draws a function without a size 1 pixel wide; under no class such points rasterize nothing and a triangle after them draws; a vertex function that stores runs for a draw of points as for triangles; floor: largePoints missing is named. The replay player's draw of points plays. |
||
|
|
c120b74608 |
replay player: a noted buffer's address in written bytes moves with the buffer
What: once the stream notes a buffer escaped (m2v.bufferEscaped), the player no longer stops at a written word whose value lies in that buffer's recorded range (PlayError::NotedWord, now deleted). It moves the word with AddressMap::move_noted to AddressMap::relocated(value), the address the play gave the innermost live range the value lies in plus the same offset, the same move an address argument gets. This happens after the census counts and before the bytes reach the backend, on all five write paths: - set*Bytes data; - a copied buffer's contents; - m2v.write; - the m2v.copyFromGuestRam pieces; - the m2v.privateBytes bytes before a dispatch. A new stream count, noted_words, counts the words moved. The census counts are still taken from the bytes as the stream holds them. Why: the runtime backend makes objects where it has room, so a pointer the program wrote into memory held the recorded address and pointed at nothing in the play. The stop ended every replay of a stream whose buffers escape (one of reims's plays stopped at frame 216). Every live range has the address the backend made its object at; a make without one already stops at the make. So every noted word can be placed, and the stop has no case left. A pointer into memory no live range holds cannot be told from data and plays as recorded, as before. This runs on every backend and device; nothing is keyed by identity. Docs: REPLAY-STREAM.md section 5 (written words and the escape note) and section 10 (the stream counts and the addresses line), VALIDATION.md, and command-replay's addresses line, which gains noted_words. Tests: - Unit (mock backend), a_word_into_a_buffer_noted_escaped_moves_with_it. After the note, a word in an m2v.write and a word in setBytes data each move to the mock's base plus their offset, and are counted as noted. The same word written before the note, and a word into a buffer with no note, play as written. - lavapipe, a_noted_buffer_s_address_in_written_bytes_moves_and_a_kernel_follows_it. A block at a recorded address holds a data buffer noted escaped (kind 0) and a buffer whose written word is the data buffer's recorded address plus 16. The fixture kernel ab_address (out[i] = held.p[i]) follows the moved word, and out holds the data words from the fifth on, exactly. - Negative: the two tests on development's tip without the move. The play stops with NotedWord. How verified: the lane's compile gate with the validation suite on lavapipe, and the negative job. |
||
|
|
be2c5d567e |
Fragment: the multisampled in-shader depth test is one typed gap on every device, Feature::MultisampledShaderDepthTest
The planner's ruling. A fragment function that runs its draw's depth test itself at more than one sample, without returning its depth, needs each sample's depth. The two forms that gave it were keyed on measured facts (VkProperty::SampleFragCoordDepth on RADV, CenterFragCoordDepth on MoltenVK) that no query produces, so development already refused it on every device, as Unsupported(FramebufferFetch, NotImplemented) at the depth attachment, which a play cannot count apart from framebuffer fetch's own refusals. It is now its own kind. - error/mod.rs: Feature::MultisampledShaderDepthTest. - lower/fragment/depth_test.rs: depth_test_form refuses with it; the module docs say why. - docs/REFUSALS.md regenerated with its reach row (--check passes); api_signatures.tsv blessed (it also takes the extrapolation commit's removal of DriverWorkaround::PerspectiveReadsExtrapolated). - Tests: engine_fragment's per-sample depth and stencil-before-depth refusals, and engine_fragment_imageblock's multisampled tested write, assert the new kind at the depth attachment. The forms keyed on the two never-produced properties, and the window-depth varying that feeds the computed one, go with the other never-produced vocabulary. |
||
|
|
b86c98460a |
Precision note: a perspective read at a sample or an offset records ExtrapolatedInterpolation on every device
The planner's ruling (the note YES). The note was recorded only on a driver with DriverWorkaround::PerspectiveReadsExtrapolated, which nothing sets since the driver-fact tables went: RADV answers such a read with the pixel center's value extrapolated along the quad's coarse derivatives, and no device query says which devices do, so every module that reads a perspective input at a sample or an offset (an interpolant's interpolate_at_sample or interpolate_at_offset, or a coverage loop's sample-qualified varying) records it, on every device. - lower/stage_io/plan.rs: note_extrapolated_read records the note unconditionally. - device/profile.rs: DriverWorkaround::PerspectiveReadsExtrapolated deleted (nothing reads it). - Docs: PrecisionNote::ExtrapolatedInterpolation, API.md's catalogue entry, the interpolate and coverage module docs. - Tests: engine_pull_model, every function that reads its perspective interpolant at a sample or an offset records the note on every committed profile and no other does; engine_coverage_loop, every looping function's module records it. SEMANTICS_VERSION is bumped once at the end of this follow-up batch; the runtime sources' pin follows device/profile.rs in the commit after. |
||
|
|
56d93ffbc7 |
Validation: a texture buffer an argument buffer holds stops only the candidate (texture_buffer_member)
The authoring-capability census counted six rows under texture_buffer_literal, a requirement in the authoring set, so it stopped the Metal oracle as well as the candidate. The schema does express these texture buffers: an argument-buffer texture or a texture-array element takes `texture_type: buffer`, and the oracle makes one through make_texture (a MTLTextureTypeTextureBuffer view of its bytes) and binds it with setTexture:atIndex:. The oracle stop was stale tooling. The candidate's stop is the product's limit. The binder's planned heap makes no texture buffer a member, so a handle naming one misses, and the runtime makes no texture buffer at all (Gap::TextureBuffer). What changes: - The requirement is renamed texture_buffer_member and stops engine_candidate only. - It qualifies on Metal, as mesh_render_pipeline does: the checker admits its cases with Metal alone, and the candidate refuses them, typed. - The analyzer version is now structural-triage-v84, because classification output changes. - The runtime's TextureBuffer basis, and the README's mesh known gap, now say that no replay stream or live session has used either, and that harvested guest functions declare them. REFUSALS.md is regenerated. Both families stay unresolved in the census. The candidate cannot run them, and each is a tooling gap (Limit::Tooling). Verified: the build, clippy and the tests run in the jobs the landing note names. |
||
|
|
58beab6630 |
REPLAY-STREAM: the player as it plays now, on the runtime alone
The player's one backend is the runtime's (replay/new_runtime, through rt_replay, from command-replay play). The doc still described a second backend over the deleted runtime and every rule where the two parted: - Section 5's recorded-address placement (pins, heaps split by their buffers and textures, PlayError::Unpinned) is deleted; the backend places each object where the runtime has room and moves the address arguments. The resource-ID rule says the runtime's own placement. - Section 9's heap note on the old player goes. - Section 10: one copy rule for Managed buffers, one announced-bytes rule, no old backend refusal list; the snapshot procedure is replaced by what the backend does (it takes none, so each named dispatch plays as it is, on the unsnapshotted line) and the split line goes with it; the executed counts are the runtime's metrics (Device::counters, as new_runtime's counters() reads them); the tiled-texture stand-in and the video-surface pages no longer name the old forms; the report's device line reads 'runtime rt', and its pinned line and the old runtime's gauges and covers go. - 'the new runtime' and 'either runtime' read 'the runtime'; two plays compare across devices or commits. Not built; docs only. The gate for the whole pass follows. |
||
|
|
ae946adea7 |
Docs: the deleted switches, codes, fact rows and FAST-PATHS links go
With the old paths deleted, DevicePolicy holds the two domains, containment and isolation, the translator reads no driver identity, and docs/FAST-PATHS.md is gone. API.md sections 1 to 8 and 10 said otherwise: - The policy section's switch bullets (YCbCr in-place, half chains, batch order, render lowering, pipeline waits, wide lines, extended-range blits, queue sharing and turns, unstored DontCare loads) and exact_answers() are deleted. - The measured-driver section said rows keyed on driver identity decide answers; Device::from_queries reads none, so it now says the device's own answer is taken and noted. The deleted runtime's host-page, Managed-copy, shadow and bit-20 prose that followed it is deleted. - Section 10's heap-answer and DontCare-policy bullets are deleted, and its DriverFact clauses with them. - The notice codes no live Degradation names (shader-resolve, word-resolve, zeroed-index-fetch, released-command-state, surface-texels-tail and the rest) are dropped from sections 1 to 8 and 10. - 'the new runtime' reads 'the runtime'. - Every FAST-PATHS.md link outside AGENTS.md is dropped: API.md, the translator's bind, lower and metal docs, a validation mesh case, a conformance case and probe. AGENTS.md's three go to the owner as text. Not built yet; the gate for the whole pass follows. |
||
|
|
fce83ac2cf |
Docs: what the runtime does now, where a line named the deleted one
The rename gave metal2vulkan-runtime to the new runtime, so every line written while the name meant the deleted runtime read as a claim about the live one. Each was read against the new runtime's code: - The precision notes no longer say the runtime announces a kind or a code of its own (it announces none; the conformance suite maps notes to codes), nor what a device Device::new made records (only Device::from_queries remains). The notes the runtime carries stay: DepthStencilState::precision_note, RenderCommandEncoder::DEPTH_BIAS_NOTE, BlitCommandEncoder::GENERATE_MIPMAPS_NOTE, RenderPassDescriptor::precision_note, Texture::precision_note. - An inert kernel's dispatch: the runtime records it like any other. - API.md: the runtime takes no unit-axes variant, and runs a partition-oblivious kernel's every direct dispatch in its tiles (from the runtime's pipeline module docs). - The translator's profile docs: no runtime announces mesh draws, reads YCbCr in-place facts, keeps a bind-offset key or runs a view check. - An aliased-import defect: the runtime has no use_host_ram. - derive.rs: no runtime reads the allocation limits. - texel_rows.metal names the test that runs it now (aliased_encoders). - docs/RUNTIME-PORTING.md is deleted with its README row: 216 of its 351 runtime items no longer exist, and each runtime item's rustdoc names its Metal counterpart. - CHANGELOG 0.2.0: no fast-path switches, announced codes or queue-switch check. Not built yet; the gate for the whole pass follows. |
||
|
|
f3b9e0253a |
Pull-model interpolation: a sample or offset read where the quad may have left is one typed gap on every device
The planner's ruling. interpolant_reads refused a read at a sample or an offset outside the
fragment function's first block, or after a discard in it, only on a driver with
DriverWorkaround::InterpolationNeedsTheWholeQuad, which nothing sets since the driver-fact tables
went: development lowered the shape on every device, RADV included, whose InterpolateAtSample and
InterpolateAtOffset read garbage where the quad's other invocations have left.
- lower/stage_io/plan.rs: the structural test stays as it was (Sample or Offset, past the first
block or after a discard in it) and refuses on every device, as its own kind:
Unsupported::not_implemented(Feature::DivergentInterpolation), so a play counts it apart from
PullModelInterpolation's select, phi and store refusals.
- error/mod.rs: Feature::DivergentInterpolation; PullModelInterpolation's doc points at it.
- device/profile.rs: DriverWorkaround::InterpolationNeedsTheWholeQuad deleted.
- The coverage loop's rung-1 form, beside it: lower/fragment/coverage.rs read the fact nothing
set, so development read a looping function's sample-qualified varyings inside the loop on
every device, where the helper invocations of a partly covered quad have left. The entry now
reads each such varying at every sample a pipeline of the device may have before the loop, on
every device (samples_before_loop, stage_io::read_at_every_sample).
- SEMANTICS_VERSION 2205.
- docs/REFUSALS.md regenerated (scripts/refusal-surface, with the new reach row); --check passes.
- Tests:
- rt's every_device_refuses_interpolation_where_the_quad_may_have_left (lavapipe): a sample
read in a branch, an offset read in a branch and reads after a discard in the first block
are refused, Unsupported(DivergentInterpolation), NotImplemented; the same reads in the first
block, and before a later discard, are made and draw the colour.
- engine_pull_model: pm_offset_after_discard (reads past the first block) is refused on every
committed profile at 1 and 4 samples, before what its reads need is asked.
- engine_coverage_loop: a looping function's sample-qualified varying is read at every sample
by constant index from 0, a power of two of them and at least the pipeline's samples, and at
no computed sample.
|
||
|
|
23d6572c18 |
Push placement: a post-tessellation vertex function's window starts past the control stage's range
A tessellation render pipeline whose vertex and fragment functions' push fields filled the
floor's 256 bytes was refused at link ("unsupported: Tessellation; needs AnyOf: Limit
MaxPushConstantsSize, required 260, available 256"): link places the synthesized control stage's
push range (8 to 24 bytes) at the first free offset beside the two functions' ranges, and since
the tail placement (
|
||
|
|
a247f905e1 |
Re-derive the generated documents at the landing tip
They are generated from the whole case set, and the set grew on `development` while this branch was in flight, so the copy committed here counted a smaller one. Verified: regenerating at this tip leaves no change beyond the `Generated at` stamp. |
||
|
|
28b20187d4 |
CONFORMANCE-COVERAGE.md: regenerated over the declarations left
Regenerated with scripts/conformance-coverage/coverage.py after the shared-in-system-memory declarations went: 43 modules declare a notice where 142 did. Verified: the script wrote the file; its --check runs in the range's gate. |
||
|
|
a7320ad3f9 |
Conformance: no case declares a notice the runtime never announces
The runtime's side announces only the codes of the precision notes its states, textures and sampler states carry (Degradation::from_precision_note). 66 Degradation kinds had no precision note behind them: they were the deleted runtime's notices. A case that named one declared a notice nothing can announce, and a value it loosened by one stayed loosened on no run. What goes: - every declaration of those 66 kinds, in 70 case files and the native-note set (six of its members were among them: float-tininess-after-rounding, unorm-depth-rounding, signed-depth-test, ycbcr-filter-not-exact, device-line-ties, device-subpixel-snap); - the value tolerances justified by one: astc's and etc's compact-twin bounds (decoded-texel-precision), visibility's Boolean words (device-boolean-visibility), rotated-planes' unreached rotation-4 bands (rotated-load-tiles), sample-fills' wide depth digest (drawn-depth-copy), texture-fills' 32-bit float depth digests and fresh-contents' Depth32Float fresh site (restricted-depth-upload, fresh-pattern-zeroed); - the replay helpers staged_records_notice, interlocked_split_notice and set_past_layout_notice, and every call of them; - the 66 variants, their ALL entries and their codes; - what only they used: the mesh pass notice list, the sparse notice lists, the GPU-time list, the buffer-blits and sparse-mappings rows' notices fields, buffer-target-clears' kept_image, buffer-texture-blits' copies_shared_bytes and its two tests, render-draw-forms' bounds-pass helpers, rotated-planes' band_is_reached and surface::stored_at, rotated-targets' reads_destination_alpha_in_color, visibility's boolean_words, and the module prose that described those notices. The one backed kind whose name was not its note's, ImplementationDefinedReconvergence, is now DeviceReconvergence with the code metal2vulkan-degrade-device-reconvergence, the note's kebab name, and docs/API.md section 9 gains its entry. shared-in-system-memory stays for the next commit. The tests that used a deleted kind as a stand-in use a backed one. Every case keeps its shared-in-system-memory declaration; tests that count a case's declarations count what is left. pass_start_reads no longer cites the deleted cost::the_creation_prediction. docs/CONFORMANCE-COVERAGE.md is regenerated. A case whose values the deleted tolerances held is now compared exactly; whether the runtime differs there shows on the venues' replays. Verified: cargo fmt --all. The gate runs once over this and the following commits. |
||
|
|
a4540b3913 |
Re-derive the generated documents at the landing tip
They are generated from the whole case set, and the set grew on `development` while this branch was in flight, so the copy committed here counted a smaller one. Verified: regenerating at this tip leaves no change beyond the `Generated at` stamp. |
||
|
|
9a1c8fe6dc |
metal2vulkan-rt takes the runtime's name: metal2vulkan-runtime, published
The cutover's last mechanical step. The old runtime is deleted, so its name is free: the crate moves to crates/metal2vulkan-runtime, its package is metal2vulkan-runtime and its library metal2vulkan_runtime, and every reference in the tree follows (sources, tests, scripts, CI, generated tables and docs). It is now a published crate, as AGENTS.md said it would be once it took the name: version 0.2.0 with the other two, the translator pinned exactly (=0.2.0, as the translator pins the AIR front end), documentation, keywords and categories, and copies of the repository's four license files, which the published-crates test now holds equal to the root's for three crates. CI packages it with the others. Prose that said it was unpublished, or counted two published crates, says three. AGENTS.md: facts only. The crate table row, the published-crates and version sentences, and the paragraph on the old runtime, whose name the runtime now carries (listed for the owner). Made by one script run on this tip. Verified by the job named in the landing note. |
||
|
|
51be813915 |
Translator cutover: the device checks' modules go (bind::view_check, bind::check_draw)
Only the old runtime's device checks ran them: its view check, which measured the two view cost facts into the description's measured set, and its check of render targets in place over host pages. The signature table and api_surface drop them; API.md drops the measured set. |
||
|
|
97b5c1b65b |
Translator cutover: SEMANTICS_VERSION 2202; the API signature table and REFUSALS.md regenerated
The profile and the lowering of every device made through the removed constructor change, and the removed switches' outputs go: the version bump misses every cached artifact. The signature table drops the removed public items (blessed by scripts/api-signatures/signatures.py, source only); REFUSALS.md loses the stage bound's defect site and the absent read's device refusal. |
||
|
|
77a66a19bf | Translator cutover: API.md and the workaround docs name the one profile; unused test items go | ||
|
|
aaa3213887 | Translator cutover: first trial-compile fixes (imports, the half pair, push tests, removed routes) | ||
|
|
0b94d919d9 |
Translator: the DevicePolicy switches, the driver-fact tables and Device::new go; Device::from_queries is the one constructor
Work in progress of the cutover's translator lane: the policy keeps the pointer and handle domains, containment and isolation; the profile is derived from Vulkan queries alone; the measured description set, the per-identity function storage table and the fact pairs of the profile go with docs/FAST-PATHS.md and tests::fast_paths. Not yet compiled. |
||
|
|
b100185a2d |
Re-derive the generated documents at the landing tip
They are generated from the whole case set, and the set grew on `development` while this branch was in flight, so the copy committed here counted a smaller one. Verified: regenerating at this tip leaves no change beyond the `Generated at` stamp. |
||
|
|
4730af16e7 |
rt: a command buffer waiting for a shared event's value is Scheduled as it is submitted
What: the status hold for shared-event waits is deleted: - hold(), Pending::held and QueueInner::held; - the completion thread's held list and due(); - EventState::holds and its host-set wake, EventInner::shared; - the hold_completions test seam, which only the deleted test used. A command buffer whose wait's signal is submitted is now scheduled as its last segment joins a submission, its scheduled handlers run then, as for a plain event's wait. A presenting one is scheduled after vkQueueSubmit2, as for any other. Its queue's later command buffers are no longer held behind it. Waits on a value that neither the host has set nor a submitted signal promises stay host-held by the submit thread, as before: every queue submits to one VkQueue, and a wait submitted ahead of its signal would hold the signal too (vkspec 8432; 6.6, 8985). Metrics::event_holds counts those. Why: the hold rested on an M3 recording (event-wait-behind-a-running-signal), not on documented Metal. MTLCommandBuffer.h:47-48 describes Scheduled as "All dependencies have been resolved and the command buffer has been scheduled for execution", and :405-406 describes encodeWaitForEvent:value: as a command that "pauses execution of this command buffer until the specified event reaches a given value". So execution pauses after scheduling. On the RTX 2080 walk, after the walk's clock correction, the hold lasted p50 5 ms and p90 9 ms per interval, in command-buffer counts; the 33.6 ms read earlier as the hold was the submit stage, before that correction. What the deletion removes, in the walk's terms: a command buffer's kernel start is its commit, raised to its queue's previous command buffer's scheduling where that is later, and its kernel end is its scheduling. So a held command buffer's late scheduling also delayed the scheduling of every later one on its queue. The deletion removes the held command buffers, and that chain behind each one, from the span before staging. What is left there is the submit thread's own pace: its passes over other groups, their calls and queue locks. Scope of the claim: - It changes nothing about GPU order or when a waiter completes: the wait still goes to the driver with its submission, as before. - It changes when the guest's threads and handlers see Scheduled: a frame loop waiting on Scheduled no longer makes one GPU-to-host round trip per link. - Its effect on presents per second is not known until the walk at the pin. Docs: CommandBufferStatus::Scheduled, add_scheduled_handler, Device::new_shared_event, the runtime README's submission and handler paragraphs (quoting both header lines so the hold is not brought back from a recording), and docs/API.md's accepted differences. The conformance case event-wait-behind-a-running-signal declares the shared-event row's status and handlers loosened on the runtime by that entry, and its test checks that a status other than Committed or Scheduled is still a row. How verified: the lane's lavapipe gate on this series' tip tree, and the negative job for the two tests of the commit before (FAIL there, PASS at the tip). |
||
|
|
98895eb6d2 |
rt: Gap::KernelInput names what the kernel reads, a KernelInputKind
A guest boot (arm64 macOS 15) met one Gap::KernelInput refusal at
newComputePipelineStateWithDescriptor:options:reflection:error:. The refusal said no more than
"the kernel reads an input the compute encoder does not supply yet", so it could not be ranked
by its cause.
Gap::KernelInput is now KernelInput { kind: KernelInputKind }. Its text ends with the kind, and
the kind is decided at the site that finds it:
- interface()'s six checks of the translator's pipeline: PointerTranslation,
HandleTranslation, CommandBuffers, StageIn, DescriptorSet (a set that is not the device's),
StageFlags (flags other than full or varying subgroups);
- its later checks: RuntimeFact (a fact the encoder does not name), Slot, PushField,
ConstexprSampler, ArgumentBlock, PushBytes, Specialization, Workgroup;
- Kernel::new's entry point with a NUL byte: EntryPoint.
A variant that samples a constexpr sampler its module does not, and a constexpr use whose
sampler the translator cannot state, are ConstexprSampler.
interface() returns the kind itself, and Kernel::new returns an Unmade (the kind, or
vkCreateShaderModule's result). So a variant's lowering keeps the kind in
Lowered::Unsupplied(kind), and nothing has to tell a module's failure from a refusal by a
wildcard. Each variant's doc comment names its Metal counterpart.
docs/REFUSALS.md is regenerated and api_signatures.tsv is blessed. Its one changed line is
Gap::KernelInput, now a struct variant: a breaking change to rt's public surface, which is
meant.
|
||
|
|
3cdca62567 |
identity domains: a loaded or converted pointer is the device address it holds, no root table
rt answers MTLArgumentBuffersTier2 and refused the tier's basic buffer member: a kernel reading
two buffers through an argument buffer's pointer members, and one reading a buffer through a
gpuAddress the CPU wrote into a constant buffer, were both "Unsupported{IdentityDomains} (an
encoder value the function reads as RootTableAddress)". A pointer loaded from memory or made
from an integer is a wide pointer, which the resident-table domain resolves by searching the
root table's resident set; the identity domains push no root table, so the gate refused it.
Under the identity domains a pointer is the device address of the byte it names, so a wide
pointer there is (0, a, 0, 0) for address a, the form of a miss of an empty table: a loaded word
or an inttoptr operand is the pointer itself, with no search, a wide buffer parameter is its
slot's address (SlotGuestBase with the bias added back), its Metal address is `at`, and its
accesses are at host + at = a, unchecked and uncounted (a stored address is used as it is; there
is no resident set to miss). Nothing pushes RootTableAddress or ExecutionStatusAddress for it.
An escaping slot root stays static there, as on Profile F, which has no root entries either: a
slot pointer converted to an integer or stored through a static destination is SlotGuestBase
plus its displacement, and the slot's run-time accesses keep their SlotBounds check.
The same gate lifts the texture behind an argument buffer's pointer member (ab_tier2's
ab_indexed) and a kernel that converts a slot pointer to an integer. A slot pointer stored
through a loaded pointer or into an open pointer cell stays refused, as on Profile F
(Unsupported{Lowering(Access)}). Every branch is under the identity domains: the default
domains' modules are unchanged. SEMANTICS_VERSION 2202: these refusals become modules.
Tests: engine_identity_pointers (ab_sum, ab_address, ab_slot_address and ab_indexed on every
committed profile Device::from_queries derives under the identity domains: no RootTableAddress,
no ExecutionStatusAddress and no descriptor, L3, and on the CPU interpreter with buffers above
4 GiB and offset addresses, the words the addresses name, the slot's Metal address and the
increment, and the slot checked against its bounds); rt's argument_tier device tests sum through
two pointer members, read through a CPU-written gpuAddress, answer a converted slot pointer as
its gpuAddress plus its offsets, and read the textures behind a pointer member, each exactly. The
two translator tests and the device test that asserted these refusals go. Run by the lane's
compile gate (fmt, clippy plain, m2v_gpu and m2v_cpu_icd, workspace Rustdoc, the translator's
and rt's suites on lavapipe); job ids in the landing note.
Docs: rt's README says the condition in one sentence (the stored word must be a buffer's
gpu_address plus an offset inside it, and a buffer not placed at the address its guest asked
for has another gpu_address) and drops the three refusal bullets; docs/API.md sections 1 and 5
and PointerDomain::Identity say what the identity domains lower now. docs/REFUSALS.md
regenerates unchanged.
|
||
|
|
1b6a802908 |
Conformance: the rt ledger's bicubic rows on LLVM 23.1.4 lavapipe, the coverage document regenerated
The lane's compile job m3-max-59010 ran on um870, whose lavapipe is llvmpipe (LLVM 23.1.4, 256 bits). Its conformance replay --cpu failed on six unlisted bicubic-texel-classes sites: mixed, r8unorm, rgba16float, rgba16unorm, rgba8snorm and rgba8unorm, each /sampled. The ledger held those sites only for LLVM 23.1.1, the venue of msi's lavapipe. The 115 other rows for the 23.1.4 venue were all held. On 23.1.4 five of the sites give the RTX 3090's answer and rgba8unorm gives 23.1.1's. Each goes in as a "llvmpipe (LLVM 23.1.4, 256 bits)" row after its twin, with the twin's note, which names no device. docs/CONFORMANCE-COVERAGE.md counts and lists the ledger's rows. It is regenerated (scripts/conformance-coverage/coverage.py) for this commit's rows and the 164 rows of the three before it, 7457 rows to 7627. The same job's conformance suite failed the_conformance_coverage_document_is_what_the_sources_derive on those three commits. Verified: m3-max-59010 listed these six gaps and no row as no longer held. Each gap's answer equals its twin's. |
||
|
|
53f3e522e9 |
API.md: section 9 is the catalogue of the precision notes rt carries
Section 9 was the deleted runtime's notice catalogue: its message sink, announce_each, lowering_refuses, DegradeNotice, exactness(), degraded_objects and the METAL2VULKAN_LOG_*, DUMP, QUEUE_TIMES, PENDING_AUDIT and ENCODER_* diagnostics, none of which rt has. - The intro now states rt's model as its code has it. Each note is fixed per operation (module, pixel format, descriptor or state) and given through six accessors: ComputePipelineState and RenderPipelineState::precision_notes, Texture, SamplerState, DepthStencilState and RenderPassDescriptor::precision_note. Two constants carry notes too: BlitCommandEncoder::GENERATE_MIPMAPS_NOTE and RenderCommandEncoder::DEPTH_BIAS_NOTE. A note is never fatal, and rt prints and sends none (its non-test sources hold no eprintln, log or sink); the consumer reads them. - The 87 entries whose code a PrecisionNote variant backs stay. Their text no longer names the deleted runtime (compressed-texel-decode, bicubic-filter-arithmetic, swizzled-opaque-black-border). Their trigger is rt's where the deleted runtime's stood beside it (device-filtered-mipmaps, shared-exponent-kept, compressed-texel-decode). They no longer say when a deleted runtime announced the note, and they drop the blit, fill and clear parts that only that runtime noted (shared-exponent-kept, device-nan-encoding, device-color-conversion, device-pack-conversion). Their driver-fact text is left for the translator-switch commit. - The 165 entries no note backs go: 59 performance, 104 precision and 2 validity kinds of the deleted runtime. - Section 8's last paragraph names metal2vulkan_rt::Error, REFUSALS.md and rt's README. The guide's opening line and README's row say precision notes. tests::fast_paths reads the catalogue only for the codes of its ledger notes, all PrecisionNote codes, which stay. Section 10 still names some deleted codes; that is a follow-up. |
||
|
|
6dda5a4617 |
Conformance coverage: regenerated for the ledger's reasons and the folded justifications
docs/CONFORMANCE-COVERAGE.md quotes known-gaps-rt.tsv's reasons and names each family's justification kinds. 8fd1a5f35f changed the reasons and 57af29bde9 folded NewRuntimeNotice and NewRuntimeAccepted into Degradation and AcceptedDifference, so the document is regenerated (python3 -I scripts/conformance-coverage/coverage.py). Job m3-max-58840 found it stale (conformance_coverage and the coverage check); every other step of that job was green. |
||
|
|
430fd25c60 |
Conformance: carried origins, probes, slugs and the rt ledger name no deleted crate
The old runtime is deleted, so the suite's text stops pointing at it: - The carried cases' origins (compute_threadgroups, sample_fills, sample_positions, texture_buffer_fills, texture_fills, two_plane_copies, handler_waits) state the measurement itself, and the 81 recordings that store an origin carry the new strings. - docs/API.md section 10's four entries that said "the new runtime" say "the runtime"; their slugs follow in the cases that name them (buffer_target_clears, pass_sequence_actions, event_orders, texture_query) and in the quotes of the lead-ins. - The probes drop their runtime_lane and metal2vulkan-runtime citations; a probe whose results lived only in a deleted lane module names that module and the last commit that held it. - known-gaps-rt.tsv's reasons drop the comparisons with the old runtime (226 rows) and say "a known gap of the runtime". The stage-in rows are as they were. Prose that describes the suite's own run-kind branch (Unjustified::OldRuntime, the recording's new_runtime flag) is left with that code. |
||
|
|
b50bf56b3e |
rt and the translator's prose name no deleted crate; REFUSALS regenerated
- rt's error.rs: three Basis citations named the deleted runtime's view plan, mipmap plan and RenderPassProblem; each keeps its Metal evidence without them. docs/REFUSALS.md regenerated. - rt's submit.rs: the group bounds' docs drop "the old runtime's bound". - rt's alpha-test module doc cites its 413 probed rows without the deleted lane's test name. - rt's Cargo.toml comment and README line 3: unpublished until it takes the name metal2vulkan-runtime. - The translator: repro.rs and the cli test say a runtime writes repro bundles through `metal2vulkan::repro`; build.rs names a runtime's shader cache; api_surface.rs says `api_signatures` pins metal2vulkan-air and metal2vulkan-rt (its table is unchanged: no public item moved). Verified: the compile job is named in the hand-off. |
||
|
|
4d3daeace8 |
Docs: the runtime is metal2vulkan-rt; HOWTO's sections on the deleted runtime give way to rt's README
metal2vulkan-runtime is deleted, so the user-facing docs name metal2vulkan-rt as the runtime:
- README.md: the crate table's runtime row is metal2vulkan-rt (not published yet); two published
crates; the git dependency and both README links name it; the runtime needs a Vulkan 1.3 device
with its README's floor; the sentence on the deleted runtime's repro bundles goes.
- CONTRIBUTING.md: the layout lists metal2vulkan-rt and metal2vulkan-conformance; the gate drops
`-p metal2vulkan-runtime` and gains the conformance suite's line, as AGENTS.md's gate has it;
two published crates for the signatures and the license copies; the refusal check reads the
runtime's refusal enums (the deleted runtime's `Problem` is gone).
- docs/VALIDATION.md: the gate as CONTRIBUTING's; "the new runtime" is the runtime in the matrix
rules and the command replay (the record keys and `harness --runtime new` keep their names).
- docs/HOWTO.md: the sections on the deleted runtime's shader cache, host memory (no-copy
buffers, unmapping, copied host buffers, guest RAM) and exported memory described its API
alone; each is now a pointer to rt's README (The cache directory, Imported blocks, Exported
blocks and Exported surfaces), stating only what that README states. Section 4 loses the
deleted runtime's repro bundles; section 8 loses its pipeline names, its start-up checks, its
suspend-time measurements of its own calls and its exit-handler probe, keeping the driver facts.
- docs/ARCHITECTURE.md and the CI workflow's comment name the runtime as metal2vulkan-rt.
Left for the translator's commit (part 2): FAST-PATHS.md and the DevicePolicy text in README,
CONTRIBUTING and VALIDATION's golden-table paragraph ("The old runtime's translations do not
move"), which follows the matrix's old-path rule.
Verified: the compile job is named in the hand-off.
|
||
|
|
ca5aa90e09 |
env_vars: the ten variables only the deleted runtime read go
With metal2vulkan-runtime deleted, ten accessors in crates/metal2vulkan/src/env_vars.rs have no reader: lane_validation, log_pipelines, log_memory, log_shadows, dump_pipelines, log_passes, pending_audit, queue_times, encoder_trail and encoder_times. A grep of the tree finds no call of any of them and no other read of their METAL2VULKAN_* names, in metal2vulkan-rt or anywhere else. They go with their registry rows, so `metal2vulkan --help` lists only the variables something reads: METAL2VULKAN_REPRO_DIR and the METAL2VULKAN_<TOOL> family. METAL2VULKAN_REPRO_DIR's row and accessor doc lose the deleted runtime's half (its bundles of refused creations, and "unset is off (the runtime's)"); the binary's bundles are unchanged, and the binary is the variable's one reader. docs/API.md's paragraph describing the ten variables (section 9, under "How a notice reaches you") goes; the heap-texture refusal line after it no longer begins "Whatever the variables". The rest of section 9 still describes the deleted runtime and is the docs step's. The env_vars module is hidden (not in tests/api_surface.rs or api_signatures.tsv); scripts/api-signatures/signatures.py --check is 0 on this tree. Verified: the gate of this commit (fmt, clippy x3, workspace doc, the metal2vulkan crate's tests). |
||
|
|
5d725aeec7 |
Delete metal2vulkan-runtime, with every test and script that read it
The cutover deletes the old runtime: crates/metal2vulkan-runtime and its workspace member go. Nothing in the workspace depends on it any more: the harness and conformance lost their old arms, and validation dropped its dependency in its own commit. Adapted in this commit, so no gate reads the deleted tree: - CI and scripts/linux-gate-ci: the crate's per-feature clippy group, its `-p` in the Windows clippy and the test step, and its private-doc-links row go. Packaging needs no edit: the workspace's published crates are now metal2vulkan and metal2vulkan-air. - The published-crates test lists those two; devtools' carried trees and the five nextest groups of the old crate's tests go. - scripts/api-signatures: the crate leaves CRATES, FLOORS and the header, its self-test trees name rt (read by the same rules), and the table is re-blessed (the old crate's 4555 rows go); api_signatures.rs pins the three crates left. - scripts/refusal-surface: the old crate's tree and its sections go (RuntimeGap, AppleOnly, Problem and the problem enums it forwards to), with their 87 reach rows, the `--delegations` verb and the test that counted the old Problem's delegations; docs/REFUSALS.md is regenerated. The basis check now holds rt's refusal enums alone, which it already required. - scripts/api-cost-coverage goes: it measured only the old crate's surface. - feature_vocabulary.rs: the old crate's two enable tables go; the Khronos and validation tables stay held to the vocabulary. - The conformance coverage generator's by-hand roots read rt instead of the old crate, and docs/CONFORMANCE-COVERAGE.md is regenerated (MTLResourceOptions' row, which only the old crate modelled, gives way to rt's MTLCommandBufferError). - scripts/matrix: the harness times the new runtime alone (`--runtime new`), so the rules that judged it against the old one go: the new-over-old budget with its floors (floors.tsv, gpu-floors.tsv), ceilings, card variance and status table (status.tsv), the frozen arm, the base spread and the timing once more it set off, the re-timed pairs, the five creation rounds and the old runtime's parked tests and records. A harness row's time is judged as a cross-GPU outlier, with its alone runs as before, and the frame and burst rows by their stored instruction counts; the creation rows run once, in their own process. docs/VALIDATION.md's matrix section says these rules. Checked locally (python, no build): signatures.py --check and --selftest, refusal_surface.py --check, --selftest and --missing-basis, coverage.py --check and --selftest, and scripts/matrix's 49 tests pass. The compile gate (fmt, clippy plain, --cfg m2v_gpu and --cfg m2v_cpu_icd, Windows clippy for gnullvm and msvc, workspace Rustdoc, packaging, the touched crates' suites on the host and on lavapipe) runs on this sha as potluck jobs that the landing note names. |
||
|
|
779eb522b4 |
Re-derive the generated documents at the landing tip
They are generated from the whole case set, and the set grew on `development` while this branch was in flight, so the copy committed here counted a smaller one. Verified: regenerating at this tip leaves no change beyond the `Generated at` stamp. |
||
|
|
ac90becd94 |
Conformance: the old runtime's side goes; rt's side is the only one, held to one ledger
The cutover deletes metal2vulkan-runtime, so the conformance suite stops depending on it. What goes: the old runtime's side (runtime_side.rs, runtime_work.rs, states.rs) and its runs in run.rs, report.rs and the command; the cost verb, the timing-coverage verb, `times`' leg of ours, the `--rt`, `--default-policy`, `--leg`, `--call` and `--cold-shaders` flags; the four split binaries that drove the old runtime directly; coverage.rs; and the old side's ledger, known-gaps.tsv. The harness half of the cutover landed separately. What stays: rt_side is the only runtime side, and `conformance replay` runs it (CI's `replay --cpu` now replays rt on lavapipe). Its ledger, known-gaps-rt.tsv, is the one ledger, with the rows it held; a call rt_side does not answer yet stays Failure::unavailable on it, as before. The cases keep every allowance: the old runtime's Degradation kinds become the suite's own codes (degradation.rs, the same `metal2vulkan-degrade-<kind>` codes), and the old runtime's Metal value enums the cases state become the suite's own (values.rs). The old side's descriptor helpers that rt_side and its tests used move to rt_side/fields.rs. Recordings keep their `costs` and our times as data; `deny_unknown_fields` still reads them. The coverage generator reads rt_side alone, and docs/CONFORMANCE-COVERAGE.md is regenerated. The README describes the suite as it now is. Checked: coverage.py --check and --selftest locally. The compile gate (fmt, clippy plain, --cfg m2v_gpu, --cfg m2v_cpu_icd and for aarch64-apple-darwin, workspace Rustdoc, the suite on the host and on lavapipe, and the lavapipe replay) runs on this sha as potluck jobs that the landing note names. |
||
|
|
a9acc24aa0 |
Coverage map: rows rt and the translator answer through their own calls, per-row sizes, refusals by rt's names
The fast switch to metal2vulkan-rt marked missing every runtime row whose old counterpart rt does not hold under the same name. rt's and the translator's Rustdoc answer more of them: - 28 runtime rows are implemented: the 9-argument texture and buffer-to-texture copies and the options form with no option, `enqueue`, `commandBufferWithUnretainedReferences` (the same call as `commandBuffer`), every `withRange:` setter of both encoders (a loop of the single setter), `useResources:count:usage:` and `useHeaps:count:`, both encoders' memory barriers, `newBufferWithBytesNoCopy` (Device::import_host_memory and a buffer in its block), `MTLCreateSystemDefaultDevice` (Device::new), `MTLCopyAllDevices` (Instance::physical_devices), a texture's `storageMode` through its descriptor, and `renderPassDescriptor` (RenderPassDescriptor's Default); - 23 translator rows are implemented: MTLLibrary and MTLFunction by the translator's Library and Function (from_metallib, function, functions, library_type, install_name, properties, function_constants_dictionary, reflection), and MTLFunctionDescriptor by FunctionDescriptor; - maxBufferLength and a texture descriptor's resourceOptions are the consumer's; - 53 missing rows take their own size and note: encoder calls (S for loops of existing calls and store action options, M for stride binds and indirect draws, L for vertex amplification), render pass fields, a texture buffer's descriptor and alignment, function options; - refusals are named by rt's types: Gap::IndirectCommandBuffers, Gap::KernelInput and Gap::DrawInput for function tables, RenderPipelineKind::VertexAmplification and Tessellation, RenderPassKind::TextureType and NoAttachment, Gap::TextureBuffer; - 629 notes no longer name the old runtime's items (RuntimeGap's variants, FeatureRow's rows, its compiled_reflection, function_handle, allocated_size, new_library_with_source and BlitOption). coverage.py's group names follow (buffers, encoder calls, command buffer options, function options). docs/METAL-COVERAGE.md and docs/CONFORMANCE-COVERAGE.md regenerated: implemented 593, missing 1118, out of scope 424. Verified: every implemented row resolves by the test's own rules in its crate's sources (a script run of them: runtime 237, translator 356, none missing); every `Type::name` a note names is held by rt or the translator (14 checked; the same check over the table before this commit finds 26 it does not hold). The compile job is named in the hand-off. |
||
|
|
8871d40bdf |
Validation: delete the old runtime's lane, parity harness, player backend and old-only tools
The old runtime goes at the cutover, and validation's old-runtime-only parts go with it: - runtime_lane/ (the old runtime's device tests) and the Metal predication probe that pinned its streams. Its one rt-based module, the replay player's rt device tests, moves to replay/rt_replay.rs with its three old-runtime comparisons cut (the census test on both runtimes goes; its rt half is its own test) and a pipeline cache directory of its own in the scratch root. - parity/ (Metal programs compared with the old runtime alone) and its Metal records under corpus/observations/parity. - The player's old backend (replay/old_runtime): command-replay always plays on the new runtime, and `--runtime` is gone. - corpus-draw-ab and format-scout (old-runtime-only tools), scripts/making-bench (corpus-draw-ab's bench), and the eleven public fixtures only the deleted sources used. - The nextest overrides of runtime_lane tests, the queue-plan test group and the few-channels profile; the matrix's device-test filter now names replay::rt_replay. - VALIDATION.md, REPLAY-STREAM.md and validation's README lose the lines of what went. The candidate executor's runtime path, and validation's dependency on metal2vulkan-runtime, go in the next commit. |
||
|
|
220473aafd |
Coverage map: the runtime's counterparts are metal2vulkan-rt's, and the test reads rt's sources
The old runtime is being deleted, and the coverage map's 649 runtime rows named its items. Every runtime row now names metal2vulkan-rt's counterpart or none: - 180 rows whose counterpart rt holds under the same name keep it; - 29 take rt's name for it: DeviceProperties fields that are Device methods, the heap placements that are Device::new_heap_buffer and Device::new_heap_texture, the lod-clamp and stencil setters, the dispatch type taken by CommandBuffer::compute_command_encoder, and a texture's getters through Texture::descriptor; - 73 are out of scope as rt's README gives them to its consumer: labels, MTLHeap and its descriptor, MTLBinaryArchive and every descriptor's binaryArchives, a resource's options, a texture's parent and shareable getters, a library's and a function's device; - 367 are missing, each with a group, a size and a note: indirect command buffers (71), function tables, handles and dynamic libraries (38), mesh (33) and tile (26) pipelines and their calls, encoder calls (59), argument encoders (24), libraries and functions as runtime objects (25), and smaller groups. Their sizes are the group's, to be refined. coverage.py names metal2vulkan-rt as the runtime and gains the new groups; metal_coverage.rs reads crates/metal2vulkan-rt/src. docs/METAL-COVERAGE.md and docs/CONFORMANCE-COVERAGE.md regenerated from the table (implemented 542, missing 1171, out of scope 422). Verified: every implemented runtime row resolves in rt's sources by the test's own rules (a script run of them over the tree: 209 of 209); the compile job is named in the hand-off. |
||
|
|
e639f89d25 |
rt README, API.md: the known gaps a user reads before the old runtime goes
What each line states, in the section that owns it: - Known gaps of pipeline states: on RADV a stage's pushed values that the driver reads from its own upload can be read past that upload's end (a 12-word load widened to 16), which faults where the upload ends the driver's upload buffer and loses a Radeon 780M or RX 7900 XTX. Recorded as open: rt places pushed values with no regard to that widening. - Known gaps of pipeline states: the pipeline cache's cold price per card (RTX 3090 5.8% and 6.8% slower, Iris Xe 9.8% faster, Radeon 780M level) and its warm effect. - Known gaps of pipeline states, the identity domains' list: in plain words, a buffer reached through a pointer member of an argument buffer or a stored gpuAddress, and a kernel that turns a buffer argument's pointer into an integer, each named; the texture behind a pointer member named as such. - Known gaps of render pipeline states: each render content is one whole VkPipeline with no shared parts; the heaviest recorded content's cold driver time on two RTX 3090s (1,408 and 1,335 ms), the dynamic states' share (under 1%), the warm figure, and the render records' warm saving on lavapipe. - Known gaps of render pipeline states: mesh render pipelines have no call in rt and no mesh draw; a mesh or object function in a render descriptor's vertex place is the translator's refusal. - Known gaps of queues: a texture or block not shared outside rt, released while an unsent upload holds it, keeps its memory until that upload is submitted, and with no later call until the device drops. - Floor: Mesa's driver for Apple GPUs (KosmicKrisp, Mesa 26.3.1) meets the floor on macOS; MoltenVK is below it (no nullDescriptor, set 1 refused by its set-layout support query). - docs/API.md section 5, at PushField::SlotBounds: the bounds check's measured cost (harness GPU rows on a 780M, an RTX 3090 and an Iris Xe; replay streams' GPU time a frame; cold pipeline makes on two RTX 3090s), and the rt README's check entry points to it. Why: the old runtime is being deleted; these are the gaps of rt a user meets that the README did not state, stated as what is true now with the jobs that measured each. Verified: docs only; the numbers are read from the jobs each line names (the bounds check rows recomputed from m3-max-56485, -56486, -56546 and -56641). Compile job named in the hand-off. |
||
|
|
0cd2ad765d |
Push placement: on the floor each stage's push ends with its tail, 24 bytes above its other fields
A driver that uploads a stage's push bytes up to the highest one the stage reads, and widens a push load past its last byte by up to 28 bytes, read past the upload where a stage's last field ended its push (RADV: 49 compute stages at tip). A read pinned past the fields (R7) cost the stages a driver holds whole in registers those registers: the pin raised the used-word count past the driver's limit (RADV keeps all 16 words of the harness's lcg_step in user SGPRs at tip, none under R7). The tail adds no read where the stage has a field of a tail kind, and moves one. - lower/push.rs: on PushWindow::Floor, place() lays the longest prefix of the kind order that fits with its tail: the highest field of a tail kind (SlotBounds or ZeroAddress, the two kinds whose value the consumer never pushes with every bit set) moves HOLE_BYTES (24) above the other pushed fields' end; where the pushed fields hold no tail kind, the zero tail word (PushField::TailWord at PushPlacement::tail_word) takes that place, with which push_range ends. One pushed field of one or two words has no tail. The guaranteed window is packed as before. - tail(), check_floor(): the structural tail and the floor's bound, which select checks on every placement as an invariant error. - emit: the stage reads its tail in its first block and returns where it holds the value the consumer never pushes there (emit_tail_guard): the word non-zero, bounds with both words all ones, the zero range's address all ones. - PushPlacement::tail_word (public, serde default, codec), PushField::TailWord (codec, API table); SEMANTICS_VERSION 2201, ARTIFACT_FORMAT_VERSION 556; the old render descriptor key re-pinned at 2201. - Tests: push.rs's floor placements at their tails, the bound's refusals; engine_identity's 31-slot kernel spills 4 addresses to its block; engine_identity_render's vertex range ends at 64. Docs: API.md section 5 (the tail and what the consumer pushes), rt README (24 addresses below the tail), the profile's window doc. Verified at 855d973a38 (this change before development's |
||
|
|
1de18aa609 |
Tests: the stream device tests of the old runtime's queue plan run at most four at a time
What: .config/nextest.toml's default profile puts the validation crate's
runtime_lane::replay_streams tests, and the three runtime_lane::rt_replay tests that play
on the old runtime too (a_private_shown_texture_is_checked_through_a_copy,
a_tiled_texture_takes_its_buffer_s_bytes_and_levels_at_first_use,
the_address_census_is_the_same_on_both_runtimes), in a test group, queue-plan, of
max-threads 4. These are the tests of the GPU legs' filter (DEVICE_TEST_FILTER in
scripts/matrix/matrix) that open a lane device of the old runtime's queue plan (at_plan).
docs/VALIDATION.md's paragraph on a GPU of few channels says so. The few-channels profile
stays: the lane's other at_plan tests lie outside the group, so a whole lane run on such a
GPU still takes it.
Why: the RTX 2080's GPU leg (NVIDIA 620.70.06) failed 3 runs of 3 at
|
||
|
|
f7a833a939 |
conformance coverage: the ledger rows of bicubic-texel-classes; its sRGB rows name both notes
docs/CONFORMANCE-COVERAGE.md lists the ledger rows, so it is regenerated with the case's 35 old-runtime rows. The old runtime's sRGB rows say "the static notes ... and srgb-texel-decode". Verified: scripts/conformance-coverage/coverage.py --check reports the document as derived; m3-max-57864 at 23dcb71cd6 failed only the coverage test this fixes, and its lavapipe replays of both runtimes read the ledger rows clean (exit 0). |
||
|
|
bafdd29f9c |
conformance: bicubic-texel-classes's rows on an RTX 3090; the note's figures with it
The 3090 answers as lavapipe does (its half results unnarrowed, RGBA16Unorm's largest difference 2.16e-4), and the old runtime's sRGB row reaches 1.58e-3 there, so the note's per-format figures in docs/API.md take it. Verified: the rows are the replay's own ready-to-paste rows at 40bc6a759e on the 3090 (m3-max-57815). |
||
|
|
a1c3a472bb |
conformance: bicubic-texel-classes's known-gap rows; the bicubic note states what Metal measured
The case's samples differ from Metal's on every venue by the precision note BicubicFilterArithmetic: Metal's bicubic results lie on the format's grid (a sixteenth of a code for the 8-bit classes, a whole code for RGBA16Unorm, an exact half for RGBA16Float), and at the six RGBA16Float samples whose sum lies exactly halfway between two halves Metal rounds away from zero; ours is the unrounded f32 sum. Under rule 1 a filtering answer within Metal's precision is the device's, under its static note, so no form rounds the sum onto Metal's grid. docs/API.md's catalogue entry for the note and the note's own definition state those measurements and the largest difference per format over the venues run. Both ledgers carry the case's divergent rows per venue (lavapipe, the M3 on KosmicKrisp for the new runtime and on MoltenVK for the old, a Radeon 780M, an Iris Xe), and the new runtime's ledger the sRGB texture's refusal (Gap::BicubicTexels) at every venue. Verified: the rows are the replays' own ready-to-paste rows at 40bc6a759e (lavapipe on msi, m3-max-57732, m3-max-57813 on a 780M, m3-max-57816 on an Iris Xe); the tie scan compared rt's lavapipe samples with the recording in exact arithmetic. |
||
|
|
a816607226 | conformance: Metal's recording of bicubic-texel-classes (the M3, macOS 27.0.1), its arms held by three tests; CONFORMANCE-COVERAGE.md regenerated | ||
|
|
6833eba8e2 |
identity domains: a 2D bicubic sample reads its slot's format treatment from a pushed word
Under the identity domains (Device::from_queries, the new runtime's translator device) every
kernel that sampled a texture through a bicubic constexpr sampler was refused as
Unsupported{IdentityDomains} ("a bicubic filter"), because the filter's treatment of the bound
format (its inner taps, its clamp and its border texels) was a SpecKey::BicubicTexels
specialization the old binder sets from the bound texture. One compute pipeline of every macOS
guest boot met that refusal; the old runtime builds it.
The treatment is now one u32 field per bicubic slot, PushField::BicubicTexels(SlotRef), placed
and filled as TextureIntegerChannels is. The 2D routine already took the bits as a run-time value
(Bits::Value), so a sample reads the field instead of the constant; no per-format pipeline, no
new descriptor. metal::format::bicubic_texels_word(pf, swizzle) gives the word the binder
specializes the constant to (BICUBIC_TEXELS_UNBOUND for a slot bound to nothing), and None for a
format of no measured family or of 8-bit sRGB codes. rt fills the field from the bound texture
when the slot's texture changes, and refuses a dispatch whose bicubic slot holds a texture with no
word as Gap::BicubicTexels, naming the slot and the pixel format. The static precision note
BicubicFilterArithmetic stays.
Still refused under the identity domains, each the refusal it was: a bicubic sample of a 1D
texture or at pixel coordinates (and the in-place two-plane routine), an argument buffer's
texture, an array of samplers. The default domains (Device::new, the frozen old runtime's path)
are unchanged: they still specialize SpecKey::BicubicTexels and state RuntimeFact::BicubicTexels,
and the binders refuse the new field.
SEMANTICS_VERSION 2199 -> 2200, ARTIFACT_FORMAT_VERSION 554 -> 555 (a new push field tag).
docs/REFUSALS.md regenerated; api_signatures table blessed; docs/API.md and the rt README's known
gaps say what is lowered and what is refused.
Tests:
- engine_identity::a_bicubic_kernel_reads_each_slots_format_treatment_from_its_pushed_field
(replaces the refusal test; fails without the change): bcu_formats on lavapipe and moltenvk-m3
profiles under the default domains keeps its 10 facts and 10 spec keys and no push field; under
the identity domains it compiles, passes L3, pushes the 10 slots' fields, declares no spec key
and no fact, and keeps the precision note; bcu_forms (1D) and bcu_address (pixel) still compile
on the default domains and are refused under the identity domains.
- rt tests::bicubic (device cfg): each format bound at every slot of bcu_formats pushes its word,
its arm asserted per format (R32Float linear; RGBA8Unorm, RGBA16Unorm, R8Unorm the [0, 1] clamp;
RGBA8Snorm the [-1, 1] clamp; RGBA16Float no clamp), an unbound slot the unbound word, and an
RGBA8Unorm_sRGB texture at slot 3 is Gap::BicubicTexels naming slot 3 and the format.
|
||
|
|
b506518794 |
rt: prepare_dispatch's tests, README and surface; the player's read-ahead encoder a struct
Tests: the pre-pass grid against each call's own (a saturated dispatchThreadgroups axis, a dispatchThreads grid of u32::MAX on a size that does not divide it, indirect), GPU-free; on a device, prepare-then-dispatch of an observing kernel for each kind, each call making exactly one pipeline (and the ragged grid its one lowering) and the dispatch then waiting for nothing; a second call making nothing; what the dispatch records nothing for or refuses making nothing; the emulated-SIMD-group variant prepared; a square-form grid eight deep prepared; and the same counts recorded and submitted with the calls and without, on two devices. README: the hook in the compute pipeline states section, and the translation bound the caller's width multiplies. api_signatures blessed; REFUSALS.md regenerated (the refusal sites moved into the shared helpers, no new refusal). Verified: the check job that follows this commit. |
||
|
|
e4de7cc44e |
rt: undo the per-slot refill and the changed-words push; a draw and a dispatch refill every slot again
What. Reverts the refill series ( |