fc8809d849e2e5b72f3e89c2d12cd4eafa61ea44
62
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
69033afcd4 |
rt: a Shared heap's texture on a device without unified memory is an image of its own
The L21 ruling, the third use of rule 2's unified-memory query (Vulkan's device type). On an integrated or CPU device a Shared heap's image texture lies in its heap, as before. Elsewhere it is an optimal image of its own in device memory, made as new_texture makes one but not zeroed (Metal's heap textures are not), and its heap range is left unused. Before, a discrete device either refused the placement (Gap::HeapTexture where its optimal images take no Shared type: the RTX 2080 and 3090 on NVIDIA 620.70.06) or bound the image in system memory, which every read crossed the link for (97 times a Private heap's time on an RX 7900 XTX, job m3-max-79841). How: heap_source decides by core.unified_memory() and the block's class. The own form checks the placement against heap_texture_size_and_align's answers by the same rule the in-heap form uses (heap_place, factored out of make: a heap range past its block, a texture past the heap's end, a byte off the alignment are Refusal::HeapTexturePlace), then makes Source::HeapOwn: Bind::Pooled (a place in a texture block or an allocation of its own, which spills as a texture's does), the heap's hazard id kept, no alias Placement, and Under::Heap with at None, so use_heap still covers it (heap_block) and blits see no shared span (bound). Texture buffers and textures over heap buffers are untouched. Docs: AGENTS.md rule 2's unified sentence gains the clause (the count stays fourteen); the runtime README's heap text and known gaps (the device memory sum beside the heap's block, where it runs out, and the earlier speed row); new_heap_texture(_for_views), heap_texture_size_and_align, has_unified_memory and Gap::HeapTexture docs; docs/API.md and the conformance heap-size side's step 2; docs/REFUSALS.md regenerated (HeapTexturePlace's site is heap_place). RUNTIME_VERSION 2564 (renumbered at landing: development held 2563). runtime-sources.sha256 unchanged (guard PASS, m3-max-84127). Verified: red FAIL / new PASS on the RTX 3090 (build m3-max-84138, run 84144), the RX 7900 XTX (84137, 84221; rt suite under m2v_gpu 993 passed, 4 skipped, 84222) and the Iris Xe (84227, 84238); CPU suites 84127 (conformance + rt 1279 passed, 2 skipped); clippy plain 84180, m2v_gpu 84172, m2v_cpu_icd 84181, rustdoc + api-docs 84182, all EXIT=0; states-only play on lavapipe 84256 equal to the base (gb-3090-r2 10643 render / 15299 compute, windrag-780m-b4-um790 8972 / 225, 0 refused). The consumer's arm64 guest walk on the RTX 3090 at pin S (m3-max-84046) asked for no texture on a Shared heap, so the evidence is the device tests and timing. |
||
|
|
2549c339c6 |
CI: the runtime's device tests again on lavapipe at 128-bit vectors, with a Mesa shader cache of their own
What: a Linux step after the CPU ICD step runs the runtime's device tests from that step's archive with LP_NATIVE_VECTOR_WIDTH=128 (lavapipe's subgroups of 4, the width arm64 lavapipe runs at) and MESA_SHADER_CACHE_DIR set to a directory of the leg's own in the workspace. It prints vulkaninfo's device name and subgroup sizes first and fails unless they show 128 bits and subgroups of 4, so a green step shows the width ran. scripts/lavapipe-image's nextest command takes --write and --env as run does, so the leg's cache directory and variables reach the container. scripts/linux-gate-ci gets the same step, as docs/VALIDATION.md asks of every Linux step. AGENTS.md's CI line and VALIDATION.md's note on the width name the leg and the cache rule. Nothing in product code reads either variable. Why: the planner wants a stand-in for a device whose SIMD group is 4 wide (tile GPUs are a target). The lab's 128-bit runs failed because of llvmpipe's disk cache, not our lowering. llvmpipe keys its texture functions (lp_texture_handle.c) and its cache id (lp_screen.c) without lp_native_vector_width (Mesa 26.2.4), so a cache that 256-bit runs filled gave a 128-bit shader an 8-wide texture function. A cache of the leg's own cannot collide with the 256-bit one. Verified on lavapipe (Mesa 26.2.4, LLVM 23.1.1, 128 bits, subgroups 4), at aeb0ca9560, the runtime's whole cpu_icd suite: - shared default cache: 989 tests run: 887 passed, 102 failed, 4 skipped (job m3-max-83853); - the cache off: 989 tests run: 989 passed (2 slow), 4 skipped (job m3-max-83888); - gdb on two of the crashes stops at the same JIT store, vmovaps of a ymm register, the 4th of four plus a byte at 0x80: an 8-wide texel struct written into a 4-wide caller (job m3-max-83878). The step itself ran in the lab from ci.yml's step text, in the pinned lavapipe image (Mesa 26.2.4-arch1.1, LLVM 23.1.1): deviceName = llvmpipe (LLVM 23.1.1, 128 bits), subgroupSize 4 (min and max 4); 764 runtime device tests listed; Summary 762 tests run: 762 passed, 231 skipped; job exit 0 (job m3-max-83928, on the RTX 5080 Laptop machine's lavapipe). scripts/linux-gate-ci's new step passed bash -n only; it has not run end to end. No Rust changed, so clippy, Rustdoc and the suites have the inputs they had. |
||
|
|
a3c5682883 |
AGENTS.md: rule 3's first exception is a texture over a buffer of any storage mode
The planner's wording ruling of 12-03. Rule 3 named the linear-image exception for "a texture
over a Shared buffer", but the runtime takes the device's linear image in place over a buffer of
every storage mode (texture.rs check_over and over_descriptor; the runtime README's
Buffer::new_texture entry): Private, Managed (its device copy), Shared and the imports. Metal's
newTextureWithDescriptor:offset:bytesPerRow: aliases the buffer's bytes in every mode, and an
optimal image there would need a copy per use, which rule 3 forbids. So the code is right and
the sentence was narrower than meant. This is a wording correction, not a growth: still two
exceptions, no new form, no new copy. Rule 2's unified-memory clause is unchanged.
Found by the audit lane's read of rule 3 against the code at 6e83de343d; the planner read the
same sites at
|
||
|
|
1c68dd10f4 |
Texture buffers: a read-write one is words where its format's own view reads none without a format
A texture buffer's form (rule 2's texture buffer formats, metal::format::texel_buffer_form) asked three accesses of a format's own view: a uniform texel buffer, a storage texel buffer, and a storage texel buffer written without a format. A function that reads a texture buffer through access::read_write reads its storage element without a format, which Vulkan asks of the view's format (VK_FORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT, VUID-vkCmdDispatch-OpTypeImage-07030), so on a device whose own view of a format lacks that bit the runtime refused the draw or dispatch (Gap::StorageElement, ReadWithoutFormat). ANV on the Iris Xe (RPL-P) lacks it for BGRA8Unorm, B5G6R5Unorm, BGR5A1Unorm and BGR10A2Unorm (jobs m3-max-81883, m3-max-82116); its committed profile (intel-irisxe-rplp-anv) answers the same for RG11B10Float, RGB10A2Unorm and RGB10A2Uint, and so do intel-irisxe-anv and intel-uhd770-rpls-anv for all seven (job m3-max-82025). Holding those formats as words for every texture buffer would cost one made to be read 31.6% and 31.7% on that Iris (texel_buffer_bgra8_read and texel_buffer_b5g6r5_read, job m3-max-82136). The form now asks a fourth access, the storage read without a format, only of a texture buffer whose usage, fixed at its making, holds both MTLTextureUsageShaderRead and MTLTextureUsageShaderWrite, or is MTLTextureUsageUnknown (metal::format::texel_buffer_read_write): Metal lets a function reach a texture buffer through access::read_write only where its usage holds both. texel_buffer_form(pf, usage, profile) is one answer per format and usage per device; one made to be read or written alone keeps the three-access answer. On the three ANV profiles the seven formats move to words for such a texture buffer and nowhere else. AGENTS.md's rule 2 says so in the same commit: the three accesses, plus the storage read without a format for a texture buffer made with both usages, one answer per format and usage per device; it is still one query-chosen form, and the count of fourteen is unchanged. The word says the usage, as it says the format, so a shader that meets a texture buffer through a handle, as one at a slot, tells which answer holds: bit 11 of a texture buffer word of a format with a word layout, TextureWord::TEXEL_BUFFER_READ_WRITE, is set where it was made both to be read and to be written. It lies within the 14 low bits an argument buffer's handle carries (HANDLE_WORD), and the word stays the same on every device. The translator holds the codes a profile holds as words per usage (WordCodes: alone, read_write); the words twin's held test tests bit 11 beside the code only where some format is words for the one usage and not the other (read_write & !alone), and where the two sets are equal the test and the module are what they were. The runtime asks texel_form of the texture's usage at its making, and Device::minimum_texture_buffer_alignment, Metal's query of a format alone, answers the larger of the two forms' alignments: on the three ANV profiles (uniform offset alignment 1, storage 16, a single texel enough for both) B5G6R5Unorm and BGR5A1Unorm go from 2 to 4 bytes (a word against a 2-byte texel), and BGRA8Unorm, BGR10A2Unorm, RG11B10Float, RGB10A2Unorm and RGB10A2Uint stay 4; every other profile's two forms are equal, so its answer is unchanged (computed from the committed profiles' limits, not measured apart). Public contract, in this commit: TextureWord::of_texture_buffer(pixel_format, width, usage), texel_buffer_form(pf, usage, profile), the new texel_buffer_read_write and TextureWord::TEXEL_BUFFER_READ_WRITE (api_surface, api_signatures.tsv); docs/RESOURCE-ID.md's bit 11 row, its texture buffer word section and its test vectors: tests/resource_words.tsv gains a usage column, each format with a word at read (1) and read-write (3) usage with its widths, and at write (2) and unknown (0) at width 1. Consumer search: reims-vgpu at 4f46e27e3b (main's) and at its current e447795571 (mine): no guest computation of words; of_texture_buffer, texel_buffer_form, TEXEL_BUFFER_ and resource_words have no hit, and TextureWord's one hit is link-order.txt, a symbol order list naming TextureWord::of. The runtime README's known gap now says the read is served for a texture buffer made with both usages, and keeps the measured words' cost scoped to those; its form, alignment and words-cost paragraphs, docs/API.md and docs/REPLAY-STREAM.md name the usage. The zero for amd-rdna2-apu-radv, intel-arl-anv and nvidia-pascal-linux is unaudited: those committed profiles report all 39 word formats as words, so no format can move there by this rule (main opens a row to re-record them). SEMANTICS_VERSION 2339 (development holds 2338): the words twin's module on the three ANV profiles and the form's answers move. RUNTIME_VERSION 2558: a texture buffer's form, its word and the alignment the runtime answers move. runtime-sources.sha256 re-pinned (metal/format/texel_words.rs and metal/format/mod.rs are runtime inputs). docs/REFUSALS.md does not move (refusal_surface.py --check passed). Verified at 0cbe4dfc70, a commit of this same tree on a try branch (tree dd16b6a2f7): - red: the test before this one (rebased here as 5900eb8642), at ed24bac82a, job m3-max-83041 on the Iris Xe (RPL-P, Mesa 26.2.6): every_device_runs_texture_buffers_made_to_be_read_and_written_at_every_slot failed with B5G6R5Unorm, BGR5A1Unorm and BGR10A2Unorm "not dispatched", the read-written slot's ReadWithoutFormat refusal; - the Iris Xe (RPL-P, Mesa 26.2.6), the runtime's texture buffer tests (--cfg m2v_gpu, filter test(texture_buffer)), job m3-max-83121: 12 run, 12 passed; the new test alone, job m3-max-83127, passed, every one of the 15 formats answering the CPU's at every slot. It asserts, per texture buffer made, that the words gauge (Gauges::word_texture_buffers) moved exactly where the form answers words for its usage, and that the words twin ran once per dispatch where one bound is words; every_device_reads_and_writes_texture_buffers_of_formats_held_as_words printed B5G6R5Unorm, BGR5A1Unorm and BGR10A2Unorm "own view; made to be read and written, words: every answer the CPU's", where they were refused before; - the Iris Xe, rt_replay's texture_buffers_play_with_their_recorded_ids_and_the_cpu_s_texels (--cfg m2v_gpu), job m3-max-83115 (at 9eb68e9c2c, which differs from this tree by a test helper's name in the runtime's texture_buffer_words.rs alone): BGRA8Unorm and B5G6R5Unorm play as "own view, read_write words" with the recorded IDs (each word with bit 11 where made to be read and written), the CPU's texels and values, where the play ended in the refusal before; - the Intel UHD 630 (Windows driver 101.2145, validation layer 1.4.363.0), job m3-max-83145 (the win-cross build m3-max-83134): the runtime's whole suite, 985 run: 984 passed, 1 failed, 4 skipped; every_device_runs_texture_buffers_made_to_be_read_and_written_at_every_slot and every_device_reads_and_writes_texture_buffers_of_formats_held_as_words passed. The one failure, half_simd_reductions' every_device_sums_and_multiplies_half_simdgroups_as_metal, fails the same way at pin Q (m3-max-82853) and at 2e9f9866be (m3-max-83061) and is outside this change; - job m3-max-83128 (Linux): the runtime's, devtools' and harness's suites 280 run, 280 passed, 2 skipped; validation 1323 run, 1323 passed, 3 skipped; conformance 1052 run, 1052 passed; doctests; on lavapipe (--cfg m2v_cpu_icd) the runtime's texture buffer tests 12 run, 12 passed, and rt_replay's texture buffer play passed, every format the same form for both usages there; - the Linux gate, job m3-max-83122: cargo fmt --check, signatures --check, refusal_surface.py --check, clippy -D warnings (plain, --cfg m2v_gpu, --cfg m2v_cpu_icd) and rustdoc all clean; the translator's and AIR suites 3459 run: 3458 passed, 1 failed, 22 skipped, the one failure golden_hashes_match_the_table, a bless due of 80 cells under 2339 (the 78 below and development's own 2); the runtime guard (the_runtime_sources_are_the_committed_ones) passed; - golden cells (job m3-max-83165: the golden test's every changed cell at this tree and at development's |
||
|
|
4a96499072 |
Translator: an unknown runtime-library routine is refused as its family, and AGENTS.md allows the families
AGENTS.md's name rule now also allows the body-less runtime-library routines Metal's compiler links by symbol: the ___metal_* maths routines and the __tensorops_impl_* family. Their declarations have no body, so the symbol is the only thing that says what the routine is. An unknown member of such a family is a typed refusal. Both families were already gated on that structure. The bitcode reader classifies a routine name only on a declaration, and the matmul2d lowering takes a __tensorops_impl_matmul2d_op_* function only when it has no body and is in air.externally_defined. Two tests now show that a defined function of either name is the module's own: - a_defined_function_named_as_a_runtime_routine_is_the_modules_own (bitcode, through llvm-as); - a_defined_function_named_as_a_tensor_op_is_the_modules_own (canon). Both tests pass at the base as well. An unknown member used to be refused as Linking, the refusal for an undefined function that linking could supply, which these never are. Now the post-check refuses a surviving call to a body-less declaration as its family: - an unmodeled ___metal_* routine as an unknown intrinsic, the same refusal an unknown air.* name gets; - a __tensorops_impl_* function in air.externally_defined, outside the matmul2d ABI, as Tensors, which is how the matmul2d lowering already refuses its own unmodeled functions. The same name outside that section is not a family member, and still needs linking. intrinsics::is_routine_family and tensor_ops::in_family state the two families. docs/REFUSALS.md lists the new Tensors site. Verified on the CPU with no device, in job m3-max-82525 at a commit of the same tree ( |
||
|
|
740d12b3a6 |
Texture buffers: the twin's docs, the player's twin gauges and metrics, and B5G6R5Unorm harness rows
AGENTS rule 2's texture buffer form and the runtime's README name the stage constant, the words twin made in the same make as each plain pipeline, what picks it, and its second compile and memory as the form's known gap; docs/API.md and RESOURCE-ID.md name the gate. The replay player prints the word pipelines' and word-held texture buffers' gauges and the twins' makes and time beside pipeline_creation_nanos. The harness's texel_buffer_b5g6r5_write and texel_buffer_b5g6r5_read rows time a format the lab's cards hold as words, a 2-byte texel written by two atomics and read through the words' routine, checked against the CPU's exact conversion and decode. Not built yet. |
||
|
|
7cdaa1cc3f |
Texture buffers: each device holds a format as words only where it lacks the format's own view for an access
metal::format::texel_buffer_form is the one place that decides, per format and device: the format's own view where the device holds it directly as a uniform texel buffer, a storage texel buffer and a storage texel buffer written without a format; else words where it has a word layout; else its own view of the first two (whose writes the runtime refuses). The resource ID word is unchanged and the same on every device; a module takes the codes its profile holds as words (texel_buffer_word_codes) and tests a word's code against them, emitting nothing of the words where the profile holds none so. The routines' cases and the precision notes follow those codes. The runtime's texel_form takes the same answer. AGENTS.md rule 2 gains the fourteenth form; the runtime's README records the words' cost (7.3x the own view's GPU time for an R8Unorm texture buffer written on an RTX 3090, job m3-max-80580). This commit alone was not built; the series is checked at its tip. |
||
|
|
16f7bc942e |
Runtime: a texture over host memory's import is restored inside its make, which waits for it
The planner ruled the seam (ii), for new_texture and new_texture_in_place alike, one form: the
restore pair of a texture in place over host memory's import runs in a submission of the
runtime's own inside the make, and the make returns after it completes. Metal touches no bytes at
a make, and a CPU write to a Shared buffer that no pending GPU command uses is fully defined.
Running the pair at the next submission on any queue let one thread's commit revert another
thread's write (reims: an app wrote its first frame into a fresh pool surface under a lock that
waits on nothing, and a later submission from another process ran the pair mid-write): a lost
write documented Metal never loses. The planner's earlier term (the pair in the texture's first
command buffer, held by an ordering test) is withdrawn. Discrete devices are untouched: they have
no pair.
Device::texture, for a texture whose image restores (Keep::Restore), has the upload that holds
its move home go at once, alone (WorkState::flush), and waits on the progress semaphore for it
(Done::wait), the pattern Texture::get_bytes and new_buffer's Private zeroing use. The upload's
barrier orders the save after the GPU work already submitted, so the make waits for that work
too. An encoded shared-event wait is held on the CPU and never submitted, so it never holds the
make's submission back. The make is refused in a scheduled handler (Refusal::InScheduledHandler),
which runs on the submit thread that the make waits for, as those calls are.
Docs: new_texture's and new_texture_in_place's, InScheduledHandler's list, the counters'
(HostMemoryRestore inside the make), check_over's and the homing comment; the runtime README's
Imported blocks paragraph and its known gap, which now says what remains (a host write from
another thread during the make) and carries the Radeon 780M row (Phoenix, RADV, job
m3-max-81673: 696 against 537 us a frame at one draw, 1025 against 793 at four);
docs/REPLAY-STREAM.md; AGENTS.md rule 2 ("after one counted copy pair at its making") and rule 3
("a counted copy pair at the texture's making restores the bytes"), in the planner's words.
Tests: host_in_place, over_causes and import count the pair at the make.
Verified on lavapipe, job m3-max-81704: the seam test failed at the commit before (exit 100) and
passed here (exit 0), with clippy under --cfg m2v_cpu_icd clean. With the series' final code (runs
at its README commits, which change no code), the touched device tests with in_place_views passed on
the Apple M3 Max under KosmicKrisp 26.3.1 (job m3-max-81753, 12 of 12), the Radeon 780M (job
m3-max-81798, 18 of 18), the Iris Xe (job m3-max-81801, 18 of 18) and the RTX 3090 (job
m3-max-81792, 18 of 18), the integrated three restoring in place inside the make (32 restore copies
over sixteen 1080p makes); gate job m3-max-81765 (clippy in three configurations, Rustdoc, the
runtime's private Rustdoc, and the runtime, translator, validation and conformance suites) passed
with the series' final code.
|
||
|
|
0703c09cdb |
Runtime: a texture over host memory's import in place on an integrated or CPU device alone, the counted copy at each use elsewhere
The planner's ruling on row 1 (a). The in-place form over a host-pointer import is chosen by rule 2's unified-memory query, Vulkan's physical device type (Core::unified_memory, the query that keeps one copy of a Managed buffer): in place on an integrated or CPU device, after one counted copy pair at its first use; on a discrete or virtual device the per-use counted copy stays. The planner's earlier term that deleted the per-use path is withdrawn by name: that path stays, for discrete devices alone. It is the same query and the same form, widened, not a new one. Grounds. On an integrated device a texture over Shared memory is already a linear image in place by rule 3, on the ordinary Shared-buffer route and on the dma-buf import route, and pays the same linear read; the host-pointer import was the one case still copying at each use. The speed pair (a scratch timed test, never landed: a 1920x1080 RGBA8Unorm texture over host memory the CPU writes whole each frame, read at every texel by a 1080p pass of 1 or 4 draws; base |
||
|
|
4b7f935a80 |
Runtime: a texture over host memory's import in place, its bytes saved and written back once
A texture over a buffer in host memory's import (Device::import_host_memory) used to be the counted copy at every use. Its bytes were copied into an image of its own before each submission that used it, and back after each write. Now it is in place: the device's linear image, made for host memory's handle, bound in the import's own memory. The condition is that the external image query for VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT answers the linear image importable, compatible and not dedicated-only, and that the image passes the tests of any texture over a buffer in place. This is not a new copy. It is the existing last form made smaller: one copy pair in the texture's life, in place after it, on documented behaviour only. - Created UNDEFINED: an image bound in imported memory names the import's handle type (VUID-vkBindImageMemory-memory-02989), so it starts undefined (VUID-VkImageCreateInfo-pNext-01443). - Saved and written back around the one transition: a move out of the undefined layout may discard the bytes (Vulkan 1.4, section 7.1.1). - Host access by memory-domain operations: host memory has no other side whose release an acquire could match (section 11.2.6). The image's one move home is in the upload ahead of the first command buffer submitted after the making, from any queue, in this order: 1. a barrier from every earlier command's writes, including earlier submissions on the one queue, to the save; 2. a copy of the bytes bound under the image into a Private block taken at the making; 3. the move, in a barrier that waits for the save's reads; 4. the write-back, with a barrier between write-backs, since two imports of the same pages may meet; 5. a barrier from the write-backs to every later command and the host. The block goes back once the upload retires. A later use copies nothing. Where the query offers no linear image of the format and usage, the texture stays the counted copy at each use. On the Mac driver that is every render target, since it makes no linear colour attachment. Counts: - the two copies count in Metrics::over_copies_host_memory (and over_copies, over_copies_imported, bytes_copied), each of the bytes bound under the image; - new: Metrics::textures_in_place_over_imports counts each texture in place over an import, host memory's or a dma-buf's, at its making; - the replay's frame metrics carry it. Docs, in this commit: - AGENTS.md rule 3's first exception gains the planner's clause verbatim; - the runtime README's Imported blocks gives the form, and states the two VUIDs' rule in plain words; - its known gap gives the pair, the window while the upload runs (a host write may be lost, and a host read may see the bytes undefined), and which formats and usages keep the per-use form on which driver, by query; - REPLAY-STREAM.md and Buffer::new_texture's doc follow. Tests: - host_in_place gains two checks: a fill submitted before the making and not waited for is in the first read, and the texture counts once at its making; - over_causes, import's texture test and imported_aliases now take either form, asserting in place on lavapipe and the copy where the query refuses. Verified on the system lavapipe (llvmpipe, LLVM 23.1.4), job m3-max-81271, filter host_in_place, over_causes, import's texture test, imported_aliases, import_overs and layouts: 17 tests. - Red at the commit before: host_in_place fails at its in-place assertion; the other 16 pass. - Green, at a tree whose code equals this commit's: 17 of 17 pass. The restore pair is 2 copies, 512 bytes. In imported_aliases, the Half textures are in place, two pairs for two textures over one import. Clippy -D warnings under --cfg m2v_cpu_icd is clean for the runtime and validation. |
||
|
|
7687644485 |
CI: the device-executing steps run on lavapipe in an image of one Arch Linux Archive date
CI's lavapipe steps ran on Ubuntu's Mesa 26.0.8 (LLVM 21.1.8), whose llvmpipe faults in its JIT code on the conformance case reconvergence-constructs' rc_break draw (a null load on its rasterizer thread), while the ledger's llvmpipe rows were recorded on Mesa 26.2.4 with LLVM 23.1.1. The device tests, the conformance replay and public case qualification now run in a container image of exactly that Mesa and LLVM, and nowhere else. scripts/lavapipe-image/pin names the image: the Arch Linux bootstrap tarball of 2026.10.01 and its sha256, the archive date 2026-10-05 its packages come from, and each package's exact version (vulkan-swrast 1:26.2.4-1, llvm and llvm-libs 23.1.1-1, vulkan-icd-loader and vulkan-validation-layers 1.4.363.0-1, spirv-tools 1:1.4.363.0-1, vulkan-tools 1.4.363.0-1, python 3.14.7-1). scripts/lavapipe-image/lavapipe-image builds it: the tarball by curl -A curl, checked against the sha256; its root imported with docker or podman; then pacman, against that date's archive repositories alone, fetching through curl -A curl (XferCommand), with signatures required and checked by the bootstrap's own keyring. Its downloads stay under ~/.cache/m2v-lavapipe-image, which CI caches keyed on the pin, so a run whose pin has not moved downloads nothing. `ensure` prints the pin, the packages the image holds and its device's name and driver, and fails where any differs from the pin or from the ledger's new `# llvmpipe:` line, which names the venue's Mesa, LLVM, loader and layers. That line holds upstream versions: the image is Arch's build (mesa 1:26.2.4-1), and the rows were recorded on another distribution's build of the same release (3:26.2.4-1). The tests are built on the host and only run in the image, with no network, only the environment named, and the checkout mounted read-only (qualification writes the corpus alone). lavapipe exports a dma-buf through /dev/udmabuf, so a container gets the host's where the host's user may open it, and offers the exports the host's lavapipe does. Each container is held to its job's memory (LAVAPIPE_IMAGE_MEMORY, else the host's) and CPUs (CARGO_BUILD_JOBS, else the host's), since the container runtime runs it outside the job's processes. The archive serves a connection slowly at times, so the build fetches the transaction's packages eight at a time with the same curl command before pacman runs. The device tests are the tests the --cfg m2v_cpu_icd build lists and the plain builds do not (only_in.py): a test that opens a device compiles only under the cfg, and the plain builds' tests, the .ll fixtures' test with Ubuntu's LLVM 21 among them, run on the host as before. They go into the image as a nextest archive, which needs no toolchain there; the replay and qualification run the binaries built in the checkout. The host keeps the Vulkan loader and no driver. AGENTS.md and CONTRIBUTING say in one sentence each that the pin and the ledger's line move together. Verified in the lab's replica of CI's Linux job (job m3-max-79517, at this change on e086e51c7e, docker 29.10.1, lavapipe on x86-64 AVX2): the image builds from the cached downloads in 55 s and its check passes (every package equal to the pin; "llvmpipe (LLVM 23.1.1, 256 bits)", "Mesa 26.2.4-arch1.1 (LLVM 23.1.1)"). The device tests: 810 listed, 809 run, 809 passed. The conformance replay holds exactly the 4,712 open gaps the ledger expects on llvmpipe, with no fault. Public case qualification passes. Without /dev/udmabuf (m3-max-79408) one device test met "the device exports no DmaBuf" and the replay refused four surface-textures cases at replace-region; with it both are as the ledger expects. The two red host steps of both runs, golden_hashes and the pinned opened chains, are the tables the next pin blesses, not this change. |
||
|
|
23847fe2ae |
Runtime: a pass that mixes a marked surface plane with another attachment renders it through a stand-in
A surface plane in place whose format's LINEAR tiling renders only through VK_FORMAT_FEATURE_2_LINEAR_COLOR_ATTACHMENT_BIT_NV (VK_NV_linear_color_attachment: such a format renders "as long as all the color attachments in the render pass instance have VK_IMAGE_TILING_LINEAR tiling") was refused in any pass that set something beside it, Gap::LinearPlanePass. A guest met it: a view of an exported 1920x1080 surface's R8 luma plane as colour 0 beside an ordinary RG8 texture as colour 1, both loaded and stored. Red on the RTX 5080 Laptop GPU (job m3-max-78092) and the RTX 3090 (job m3-max-78106, NVIDIA 620.70.06). The planner's ruling, form (ii): in a pass that mixes a marked plane with another attachment (a colour attachment that is not one, a depth or stencil attachment, or a multisample attachment resolving into it; decided by the format query's mark and the pass's attachments alone, pass::mixes_linear), each marked colour attachment and each marked resolve target renders into its stand-in, an optimal image of the runtime's of the plane's format and size (TextureObject::stand_in). The pass's begin moves the stand-in from undefined and, where the plane's Vulkan load op is LOAD, copies the render area of the plane into it; its end copies the stand-in's render area into the plane where its store op is STORE or the pass resolves into it. The plane stays general. A pass of marked planes alone still renders them in place; a device whose LINEAR tiling offers the format as a colour attachment renders the plane in place in every pass. Counted: Metrics::plane_copies_in, plane_copy_in_bytes, plane_copies_out, plane_copy_out_bytes (in bytes_copied too). The guest's pass pays both: its luma plane is loaded and stored, so each run copies 2,073,600 bytes in and 2,073,600 bytes out. The stand-ins are bounded by structure, one per (plane image, format), made at the first mixed pass and freed with the plane (StandIns, Free::StandIn), counted in Gauges::plane_stand_ins and plane_stand_in_bytes, which each_device checks are zero at the device's drop. A draw of such a pass that reads the plane through a texture, or fetches it, stays refused: Gap::Draw of AttachmentRead or FetchedAttachment (the plane holds what the pass rendered only after its end); a read of another plane of the same surface is not. Gap::LinearPlanePass and LinearPlanePassKind are gone: every kind (OtherColor, DepthStencil, Resolve) renders. AGENTS.md's rule 2 grows to thirteen forms with the mixed-pass entry; the runtime README's exported surfaces, floor and render encoder known gaps say the form and its cost; docs/REFUSALS.md and the signatures table are regenerated. Tests: the plane tests assert the plane copies (none in place; one out for a cleared plane beside a colour or resolved into; one in and one out for the loaded plane beside a depth attachment and the guest's pass), and a new test runs eight mixed passes over one plane: one stand-in where it is marked, none elsewhere, freed when the surface drops. The unit test of mixes_linear replaces linear_shape's. Device runs follow in the lane's report. |
||
|
|
503431ab7d |
AGENTS.md: the twelfth form's known gap names a kernel's slower bound access beside the set's cost
The planner's amendment of the bound-buffers clause: the known gap now records two things, the descriptor set's CPU and GPU cost, and a kernel's slower run on a device whose bound access costs more than its address access. Why: how the Iris Xe streams' loss splits between the set and the kernels' own accesses is not measured, and one filter kernel's loss there is measured as not the set's (only its message kind differs), so the rule records the loss the owner accepted without naming an unmeasured cause. The rest of the clause is unchanged; the clause's last lines are re-wrapped. Docs only. |
||
|
|
7144e839a1 |
AGENTS.md: rule 2's twelfth form records a bound dispatch's descriptor set as a known gap
The bound-buffers clause gains what the owner accepted with the form, in the style of the other eleven and with no figures: a dispatch whose buffers differ from those its command buffer bound last writes and binds a descriptor set, and that set's CPU and GPU cost on a device that takes the form is recorded as a known gap. The figures belong in the runtime README's known gap. Also joins a line the clause's earlier edit left short. Docs only. |
||
|
|
b9b456b15a |
AGENTS.md: rule 2's twelfth form and rule 3's clause in the planner's words
Rule 2's bound-buffers item now reads 'a device with' the pipeline-robustness feature (the runtime enables the feature, a device does not), names 'a compute function's' buffer arguments in place of 'a kernel's', and drops the commas around 'by structure'. Rule 3's clause says which replaces which: for a compute function's buffer arguments, bound buffers where rule 2's query takes them. The text is the planner's fourth round, wrapped to the file's width. Verified: docs only; no line of the edited paragraphs passes 100 columns. |
||
|
|
3ed7d424cf |
AGENTS.md: rule 2's twelfth query-chosen form, bound buffers, and rule 3's clause for them
The owner's authorization of 11-26 (brief 'bound'): rule 2 counts twelve forms, the twelfth bound buffers, stated as its query (the pipeline-robustness feature, robustBufferAccess2 and robustBufferAccessUpdateAfterBind, then the limits its layout reaches) with the address form and the check that stays by structure as known gaps; rule 3's direct addresses take a kernel's bound buffers in their place where that query takes them. Worded by bound buffers, not by descriptor type. |
||
|
|
efd7dbcd4d |
AGENTS.md: rule 2's eleventh form, Shared memory's host coherence, with its known gap
The owner chose this form, Telegram 2963, verbatim: "Correction, a-narrow sorry". That answers
the planner's question whose A-narrow option named the eleventh form; it replaces 2961. This
commit lands with the form's code (the commits before it), so development never holds the form
without its rule.
AGENTS.md, rule 2 only: "for ten only" becomes "for eleven only", the list's final "and" moves
before the new entry, and the entry names the query (the host-coherent flag of the memory type
Shared takes), the second form (on the cached type without coherence, what is flushed before
the GPU reads it and what is flushed then invalidated before the host reads it), and its known
gap (no device the tests run on shows a missed range; the flush's cost grows with the Shared
bytes a submission reaches). The planner accepted the wording with two changes, both applied.
Nothing else in AGENTS.md changes.
crates/metal2vulkan-runtime/README.md, the known gaps of memory blocks: a submission's flush
names every Shared range its command buffers reach, written or not, merged, so its cost grows
with the Shared bytes a submission reaches, not with what its commands wrote.
The cost on devices whose Shared type is host-coherent, as measured at 890f6580ac against
development
|
||
|
|
5a722b5c3f |
Stencil output: a device without VK_EXT_shader_stencil_export draws it by bits, the owner's tenth form
A fragment function's [[stencil]] output is the reference of both faces' stencil test for its
fragment (MSL Table 5.7, 5.2.3.5). On a device without VK_EXT_shader_stencil_export it was refused
at creation (StencilExport). Under the owner's grant (rule 2's tenth form, chosen by that
extension's query alone), such a device now draws it by bits; a device with the extension is
unchanged (FragStencilRefEXT, no fact, no note, the draw issued once).
Translator: the function stores no reference; each return kills the fragment where the draw's new
push field PushField::StencilBit k is below 8 and bit k of the output's low 8 is 0, and keeps
every fragment at 8 or more (one module, no specialization). The function states
RuntimeFact::StencilBitDraws (Mechanism::PushConstant) and its fragment stage the static note
PrecisionNote::StencilOutputOverlap. Refused there, naming the extension (Unsupported
StencilExport): a function that also writes a colour (the colour would be written by every
repeat) or memory, one whose returns cannot kill (an interlocked body, a loop over its covered
samples), a mesh pipeline, and a render pipeline made for indirect command buffers. Where the
device also lacks the pixel interlock, a function writing memory in a raster order group meets
that refusal first (RasterOrderGroups). SEMANTICS_VERSION 2301 -> 2302, ARTIFACT_FORMAT_VERSION
595 -> 596 (new codec members).
Runtime (depth_stencil::BitDraws, render_encoder::draw): with w the low 8 bits of the write masks
of the faces having a Replace operation, a draw whose stencil test is on and w is not 0 is drawn
once with every fragment kept under the reference 0 (Replace zeroes w's bits, every other
operation runs once), then once per bit k of w keeping the fragments whose output holds bit k,
under the reference 255, write mask (1 << k) & mask, Replace kept and every other operation Keep,
and no depth write; where the state writes depth under a compare other than Always and Never, the
first draw writes none and a last draw writes it with stencil write masks of 0. Each draw records
only the dynamic state that differs from the last; the encoder's tests and reference are recorded
again at the next draw. Counted in Metrics::stencil_bit_draws (the draws beyond the first).
Refused at a draw, Gap::Draw of DrawKind::StencilOutput: a face compare other than Always or Never
(the output decides that test), and, where w is not 0, a draw inside a Counting visibility
segment (every draw would add its samples). A Boolean segment is drawn. Vulkan Appendix I: the
repeats change stencil reference, operations and write masks between draws of one pipeline,
which Rule 2 lists as required (write masks) and strongly suggested (stencil parameters) to be
invariant; the note records the one difference the repeats make.
The note (rule 1): fragments of one draw that overlap leave the OR of their values. Where two
fragments of one draw reach one sample under Replace, the sample stores the OR of their outputs'
low 8 bits within the write mask, where Metal stores the later fragment's value; under a depth
test that writes, each fragment's stencil operation is chosen against the depth from before the
draw. Measured on an RTX 3090 (NVIDIA 620.70.06) under the validation layer 1.4.363.0, job
m3-max-73635: two triangles of one draw outputting 0x35 then 0x4a store 0x7f on the 32 texels both
reach, where Metal stores 0x4a, and 0x35 on the 32 one reaches, in 8 bit draws; the 780M (RADV)
and the Iris Xe (ANV), which list the extension, store 0x4a with 0 bit draws.
AGENTS.md rule 2: "for nine only" becomes "for ten only", the list ending with fragment stencil
output (the planner's text, relayed by main, word for word).
Tests: the translator's engine_stencil (every committed profile: the extension or the draws by
bits, L3 both ways; refusals for colour, memory, mesh and indirect command buffers); rt's host test
of BitDraws::of; rt's device cells (stencil_export.rs): the stencil alone and the stencil with the
depth under Always and Less over a quad, exact, texels of stencil 0 among them; the overlap row;
the refusals; the route of a 4-sample Depth32Float_Stencil8 source read at sample 0 into a
single-sample target under Always/Replace 0xff and depth Always with write, beside colour 0
RGBA8 of write mask none; the codec round trip; the mechanism table.
Docs: docs/API.md (the stencil output passage and the catalogue entry
metal2vulkan-degrade-stencil-output-overlap), rt README known gap and floor row,
docs/REFUSALS.md regenerated, api_signatures blessed. The conformance degradation and the
validation allowance (unbounded) of the note. known-gaps-rt.tsv: stencil-output and
stencil-output-loaded on NVIDIA, refused at renderCommandEncoder (draw 3's back face Equal against
the output) and divergent at case/stencil as a result. runtime-sources.sha256: the guard's inputs
changed only by mechanism.rs gaining the new fact's arm, which no existing artifact states, so no
run of an existing artifact changes.
Golden rows and the engine inventory (22 cells) are re-blessed on development: 20 move from the
StencilExport refusal to a module (stx_stencil_by_pixel, stx_stencil_discard,
stx_stencil_with_depth, stx_stencil_ms_by_sample, fragment_depth_stencil on nvidia-pascal-linux,
nvidia-rtx50-linux, nvidia-rtx5080-laptop and runtime-floor), and the 2 cells
stx_stencil_in_order and stx_stencil_ms_in_order on runtime-floor move from StencilExport to
RasterOrderGroups, still refused. Why: the memory-write refusal now runs on the emitted module
(pipeline/compile.rs), after the body's own refusals, so on a profile without the pixel interlock
the raster order group these functions write memory in is refused first; at the base the plan's
entry refused every [[stencil]] output on such a device before any body was lowered.
Verified (this tree, or the rt archive of d6bd77d203 where named; the rt and translator sources
there differ from this tree in the translator's test and a doc comment alone):
- msi check, job m3-max-73648 (this tree): fmt, signatures, refusals, clippy -D warnings with all
features plain, --cfg m2v_gpu and --cfg m2v_cpu_icd, Rustdoc, the rt nextest archive and the
conformance binary built; rt's whole suite on lavapipe under the validation layer 1.4.363.0,
738 tests run: 738 passed, 3 skipped; the lavapipe leg, 7 tests run: 7 passed: export enabled,
the overlap row storing {4a}, bit draws 0 on every cell.
- RTX 3090 (NVIDIA 620.70.06, layer 1.4.363.0), job m3-max-73635 (d6bd77d203): 7 passed; the
overlap row above, bit draws 8; the stencil alone and with depth under Always and Less, 64
texels exact, bit draws [8, 8, 9]; the route exact, bit draws 8; refused a colour beside the
stencil (StencilExport), Equal and a Counting segment (DrawKind::StencilOutput), a Boolean
segment drawn. Conformance stencil-output and stencil-output-loaded: refused at
renderCommandEncoder and divergent at case/stencil (4 elements, largest difference 80), the
four known-gaps rows.
- RTX 5080 Laptop GPU (NVIDIA 615.71.09, layer 1.4.363.0), job m3-max-73652 (this tree): 7
passed; overlap {7f} where both reach, {35} where one, bit draws 8; cells exact, bit draws
[8, 8, 9]; the route exact, bit draws 8; the same refusals; conformance replay with this tree's
binary matched the four NVIDIA rows (exit 0).
- Radeon 780M (RADV, Mesa 26.2.6), job m3-max-73636 (d6bd77d203), and Iris Xe (ANV, Mesa
26.2.6), job m3-max-73650 (this tree): 7 passed each, export enabled, overlap {4a}, bit draws 0.
- States-only plays of recorded streams, base
|
||
|
|
a7dd2e846e |
Translator: the binder's plan goes, with everything only it reaches, and the TexelRows and YCbCrInPlace forms
The runtime never made a plan (it binds each draw and dispatch by the pipeline's interface), and since the census digests each pipeline's content alone (two commits back) nothing in the tree calls one. What only the plan reached goes with it: - bind: BindState, BindShape and their shapes, BindingPlan and its instantiation (DispatchCommands, DrawCommands, push, descriptor and root-table templates and writes), plan.rs and plan/ (compute, resources, slots), instantiate.rs, resident.rs, the neutral resources' plan side, the heap's member planning and table bytes, the mesh arguments pass (MeshArguments, MeshArgumentsForm, fold_object_grid, metal_object_grid), ExecutionStatus and StatusBits as public items, TextureShape::Buffer, IndirectRef with the four indirect call variants (Dispatch::ThreadgroupsIndirect, DrawCall::Indirect, PatchesIndirect, MeshThreadgroupsIndirect) and IndexBufferRef::fetch_end. Dispatch, DrawCall and IndexBufferRef stay: validation states its cases' calls with them. - error::BindError leaves the public surface; a crate-private BindError of three variants stays as the error of the heap's view derivation, which lower::texture::slot's storage-read check reads (bind::heap::tier_read_gaps). That check keeps only the storage view's format: the sampled-view branch and ImageViewDesc were reached by the plan alone. - vk::DrawCommand, the plan's draw output. - pipeline: ComputePipeline::plan, RenderPipeline::plan; cache: VariantKey::covers and large_buffer_form. - The TexelRows form (bind::texel_rows, LoweringInputs::texel_rows, RuntimeFact and PushField TexelRows) and the YCbCrInPlace form (bind::ycbcr_in_place, lower/sampler/in_place.rs, LoweringInputs::ycbcr_in_place and ycbcr_planes_sampled, RuntimeFact and PushField YCbCrInPlace, PrecisionNote FloatSampleFilter and HalfSampleFilter, Routine::Quad). Only the binder set those inputs. - The tests of the deleted items, and the plan halves of mixed tests. Of 6810 tests (`#[test]` functions in the workspace) 309 leave and 11 come in their place: the lowering halves of mixed tests, kept without the plan (the heap layout, the stage-in stride and region facts, the emulated-simdgroup and bicubic facts, the iris-xe storage classes), and the kept tests of the two renamed files. 50 others are edited to drop a plan half or a deleted item (the api_surface round trips; the simd_emulated, extended-range, recursion, dynamic-root, handles, heap-storage-read and mesh lowering cases). 6512 remain. engine_graphics_binder.rs and engine_heap_binder.rs keep one and two tests and are renamed engine_unattached_colors.rs and engine_heap_groups.rs. - The runtime guard test's list of files the runtime inputs reach without being inputs drops the seven no input reaches since the cut: cache/digest.rs, lower/simd/divergent.rs, lower/simd/workgroup.rs, pipeline/artifact.rs, pipeline/layout.rs, pipeline/stage_io.rs and pipeline/vertex.rs; three of its reasons that named the plan or the binder say what reaches the file now. 559 public items leave (api_signatures.tsv: 55 structs, 26 enums, 140 variants, 245 fields, 52 methods, 24 associated constants, 7 constants, 5 functions, 5 impls). Consumer search, the consumer's development at 92ffbed817, `git grep -w NAME` of each of the 112 removed names: 0 hits for 105; the others are the consumer's own items: TessellationFactors 4 (its Bound::TessellationFactors), YCbCrMatrix 3 (its own string and doc), texel_rows 2 (its own fn), ThreadgroupsIndirect 6 (its own Dispatch enums and rt::Dispatch::Indirect), DrawIndexed 1 (a doc naming MTLIndirectCommandType values), covers 109 and plan 105 (generic words; the `.covers(` calls are its Extent's, the `.plan(` calls its video encoder's rate.plan). Its one import of metal2vulkan::bind is the argument-buffer layout types, which stay. The forms' audit. A texture over a buffer: the runtime's tests::over::every_device_holds_a_texture_over_a_buffer_in_place. A two-plane YCbCr sample: no runtime test; the runtime makes no texture of a two-plane YCbCr format (Gap::TextureFormat, the runtime README's "A format is made where the translator's format table maps it" row), the conformance cases ycbcr_gathers and ycbcr_textures record Metal's answers, and known-gaps-rt.tsv lists the runtime's refusals (ycbcr-gathers-*, ycbcr-texel-reads-420v). Versions: - RUNTIME_VERSION 2550: it covers plan instantiation and the binder's run-time data. Nothing calls those since step 2: the runtime never used the binder, and the own-context executor is gone. A run of an unchanged artifact does nothing different, so the guard hash (runtime-sources.sha256) moves alone, and the RUNTIME_VERSION doc is rewritten to name what it still covers. - SEMANTICS_VERSION 2273: no output changes for any input that still exists. The TexelRows and YCbCrInPlace forms, their facts, push fields and the two notes were reachable only through LoweringInputs::ycbcr_in_place, ycbcr_planes_sampled and texel_rows. Only the binder set those; the runtime sets none. The function key appended each of them only when set, so every surviving key hashes the same bytes. Two type declarations stay where they were, so module words do not move: bool in the bicubic types, uvec4 in the bicubic routines. Byte-identical modules are expected, not verified here; the 252-row hash probe is the check. - ARTIFACT_FORMAT_VERSION 591: the codec tags enum variants by name. The removed RuntimeFact, PushField and PrecisionNote variants leave their tags unused, which cache/mod.rs's rule says needs no bump: an old entry holding one fails to decode, which is a miss. No codec_struct field is removed. That is why SamplerDesc.ycbcr stays. The guard hash (crates/metal2vulkan-validation/runtime-sources.sha256) moves for the bind/ sources this deletes and edits and for vk/draw.rs, which leaves its list. No run of an unchanged artifact changes: what stays in bind/ computes what it did (the heap's tier check takes the same storage format; its removed sampled branch had no caller). Docs: docs/API.md (section 5 is the interface; the binding and plan sections go), README.md, docs/ARCHITECTURE.md, docs/HOWTO.md, docs/VALIDATION.md, the runtime README's DrawInput and identity-domain rows, docs/REFUSALS.md (regenerated; the binder's section goes), api_reference.md, api_signatures.tsv (blessed: removals only), tests/api_surface.rs, the signatures floor (5000), the bind modules' own docs, and the public field docs of PushField, RuntimeFact and SpecKey that named BindState, BindShape or BindingPlan. AGENTS.md: the project table names pipelines and their interfaces, not binding plans; its "core lives in" line stays true (bind/ still holds what the lowering reads). Verified on 31692939d4, this commit's tree (steelbrain/cutbinder-probe-6): job m3-max-68107, fmt, signatures, refusal surface, clippy -D warnings (workspace plain, --cfg m2v_gpu, --cfg m2v_cpu_icd; the translator with no feature and with each alone; the AIR crate alone), workspace Rustdoc -D warnings, each crate's private intra-doc links at 0, api-docs; job m3-max-68109, the product, validation and conformance suites, doctests, and on lavapipe the validation and runtime suites under --cfg m2v_cpu_icd, the conformance replay and the public cases' qualification. |
||
|
|
25387588ea |
AGENTS.md rule 2: the list's "and" moves to its ninth item, the push window
The push window's clause made the list end "..., and run-time texel offsets (...), and the push window (...)". The first "and" goes, so the nine items read as one list. The planner ruled it inside the edit the owner's word (Telegram 2686, option B) covers; no meaning changes and nothing else in the owner's rules moves. Nothing in the tree parses this wording (one_path.rs names the rule only in a message). |
||
|
|
d9077dfa0d |
Push window: each device's maxPushConstantsSize sizes it, up to 256 bytes (rule 2's ninth form)
What: the push window is one value per device, `DeviceProfile::push_window`, the description's
maxPushConstantsSize up to 256 bytes, decided in the profile `Device::from_queries` derives
(device/profile.rs:115). Every window reads it: push placement (`lower::push::window`, `place`,
`spills` and `check_floor` take its bytes; lower/select.rs, lower/access/mod.rs and
lower/access/table.rs pass it), and in the runtime the one pipeline layout's push range
(device.rs:688), the kernel and render pipelines' push checks (pipeline.rs:2119, render.rs:1043)
and the encoder's push bound (encoder.rs:1759). With W that value, a kernel pushes in [0, W), a
vertex function in [base, W - 8) and a fragment function in [base, W); object and mesh functions
keep 0..32 and 32..64. A stage's fields past its window spill to its parameter block, whose
address the window holds, as they did past 256. `from_queries` refuses a maxPushConstantsSize
below 128, Vulkan's least, only (`Unsupported{PushWindow}`, required 128), and the runtime's
floor no longer lists maxPushConstantsSize (floor.rs: its row and PUSH_CONSTANT_BYTES go; the
layout's range was a constant 256). There is no constant 128 path, no switch and no environment
gate: the limit query is the only input. Ported from the held branch steelbrain/amdfloor-window
(d6880ca16b) onto today's development, every line reference confirmed against this tree.
Why: the owner's word choosing option B. A device reporting 128 bytes was refused by the floor;
it now runs with a window of 128.
AGENTS.md rule 2 takes the owner's authorized text: "for eight only" becomes "for nine only",
and the push window joins the list after run-time texel offsets.
Known gap (runtime README, Known gaps of indirect command buffers): in a window of 128 bytes a
command reaches 9 vertex slots, and 8 where the vertex function spills, against 25 and 24 at 256
((W - 8 - 16 - 28) / 8; from code: lower::push's
an_indirect_draw_s_vertex_function_pushes_25_or_9_slot_words). A kernel pushes 8 buffer
addresses beside its dispatch region at 128 bytes against 24 at 256, the rest from its ring.
Caches: a device of 128 and one of 256 share no cached artifact and no pipeline. The profile's
fingerprint hashes every ProfileFields field by Debug (device/profile.rs:312, :327), the limits
included (:346, maxPushConstantsSize at :625); `function_key` hashes the fingerprint
(pipeline/compile/key.rs:182, :189; passed at pipeline/compile.rs:2973), as does
`queried_render_descriptor_key` (key.rs:546); a cached artifact or pipeline loads only under an
equal fingerprint (cache/artifacts.rs:71, :204, :238; cache/envelope.rs:142); and the runtime's
enables digest, which the stage keys check, hashes it (metal2vulkan-runtime/src/device.rs:1533).
SEMANTICS_VERSION stays 2273: no module changes under an unchanged key. Every device
`from_queries` accepted before reports 256 bytes or more (it refused below 256), so its window is
256 as before and its modules are the same bytes; a device of fewer bytes was refused, so it
holds no artifact to go stale, and its modules are new under its own fingerprint. The golden
test at this tree found 0 cells changed under an unchanged key over the 15 committed profiles,
and 1855 under a changed profile fingerprint, runtime-floor's column alone (m3-max-68089; the rows
whose assembler Linux lacks are not observed there).
Golden table: runtime-floor.json and its generator drop the floor block's maxPushConstantsSize
of 256, so the profile reads Vulkan 1.3's least, 128, and its fingerprint moves. Its cells are
re-blessed on development (the bless needs macOS's assembler).
Validation: runtime-sources.sha256 is rewritten (d4a8dbf2...), since device/derive.rs and
device/profile.rs are runtime inputs the guard hashes.
Docs: the runtime README (the floor's limits note and table, compute Parameters, the render push
range, the indirect command buffers' known gaps), docs/API.md section 5 and the from_queries
paragraph, PushWindow's doc, reach.tsv and docs/REFUSALS.md (regenerated; the PushWindow row
only), the device profiles' README, and api_signatures.tsv (DeviceProfile::push_window). The
api_surface table is unchanged: no public type is added.
Tests: lower::push's placement at 256 and 128; from_queries (each committed profile's window is
its limit up to 256, runtime-floor's 128; 128 derives, 64 is refused with required 128); the
tessellation control range, the engine identity and spill tests in each profile's window; and
the runtime's push_window, patch and indirect token tests in two arms each, the device's own
limit and the limit held at 128 by the tests' device shim (tests/command.rs push_window_128,
DeviceOptions::described).
Verified:
- m3-max-68088 (this tree): fmt, the signatures table, the refusal surface, clippy -D warnings
plain, --cfg m2v_gpu and --cfg m2v_cpu_icd, workspace Rustdoc -D warnings: each exit 0. The
runtime suite on lavapipe (--cfg m2v_cpu_icd): 647 passed, 3 skipped. Its push lines read
"push_window: the push window is 256 bytes", "push_window_128: the push window is 128 bytes",
"window 128, 12 buffers: 3 ring writes and 3 pushes over 3 dispatches", "icb_tokens: ... the
push window 256 bytes, 25 slot words", "icb_tokens_128: ... the push window 128 bytes, 9 slot
words", and draw_patches_full_range at 256 and _128 at 128.
- m3-max-68089 (this tree): the core crates 3881 of 3882 passed, 24 skipped; the one failure
is the golden table, stale under runtime-floor's moved fingerprint (1855 cells, one per row
observed on Linux, 0 new, 0 gone, 0 under a changed source, 0 changed under an unchanged key).
Validation 1314 passed, 3 skipped. The translator's push tests print each committed profile's
window: runtime-floor 128, the vertex function ending at 120, 9 inputs; the 14 others 256.
- m3-max-68067: the whole runtime suite on lavapipe at an earlier tree of this change
(a98af765ad, before the rebase onto
|
||
|
|
2d12a2be0b |
AGENTS.md rule 2: eight query-chosen second forms; the driver-zeroed clause goes
The owner, Telegram 2599 (20:29 PST 11-21, through the relay), verbatim: "Re 98, I accept". Item 98 put to him rule 2's text and this edit: "nine" becomes "eight", and the clause on driver-zeroed memory is removed. Nothing else in the file changes. The form left the code in |
||
|
|
38dcc857dd |
Runtime: a sample's run-time texel offset is its own Offset operand where the device has maintenance8
The owner allowed a ninth query-chosen form (Telegram 2465): "I allow the ninth query. Use it
where you can". This answers the texel-offset question inside his compile-time order ("Multi
minute compiles are unacceptable").
What: the floor reads VK_KHR_maintenance8 and its feature maintenance8 where the device lists the
extension (one of OPTIONAL_EXTENSIONS, and one of the OPTIONAL features, each of which chooses one
of two forms; VkPhysicalDeviceMaintenance8FeaturesKHR is bound by hand, as ash 0.38 lacks it, its
layout checked as the crate compiles). Device creation enables both, Capabilities answers
texel_offset_operand, and the translator's description is told of Maintenance8 and
KhrMaintenance8 (shader_enables). The translator already takes a run-time offset on a sample as
the Offset operand where its profile has maintenance8 (lower::sampler::select::dynamic_offset).
Until now the runtime never enabled the feature, so with_enabled dropped it, and every run-time
offset that reached lowering became a switch of up to 256 ConstOffset arms. NVIDIA's compiler
takes minutes to create that switch (lane stagesize: 255 arms 193 s on an RTX 3090, the operand
80 ms). Canonicalization's unroll of a proven small nest is unchanged on every device.
A device without the feature keeps the branch: Intel's Windows driver for the UHD 630 (101.2145)
lists no VK_KHR_maintenance8 (vulkaninfo, job 64024). The runtime README records the branch's
compile time as a known gap of pipeline states, and its floor tables gain the extension and the
optional feature. AGENTS.md rule 2 changes in this commit: "for eight only" becomes "for nine
only", and the list gains run-time texel offsets.
Spec (1.4.366): VUID-RuntimeSpirv-Offset-10213 is the only gate on Offset outside a gather. The
value is OpBitFieldSExtract(v, 0, 4), in [-8, 7], inside the required minTexelOffset <= -8 and
maxTexelOffset >= 7 (VUID-RuntimeSpirv-OpImageSample-06435/06436). Gathers already took Offset
through shaderImageGatherExtended, which the floor requires. Enabling maintenance8 changes no
other path the runtime takes: its blits stay within one 3D image, it names no queue family
ownership transfer flag, and it merges no pipeline caches.
Caches: the translator is unchanged, so SEMANTICS_VERSION stays. The translator's profile
fingerprint (DeviceProfile::fingerprint, over every profile field, ImageCaps::dynamic_sample_offset
among them) moves on a device that has the feature, and with it every FunctionCompileKey and render
record name in the cache directory. A lowering made without the feature is not taken by a device
with it (tests::filter_nest's every_device_keeps_the_operand_s_and_the_switch_s_lowerings_apart).
Tests: tests::floor's a_run_time_texel_offset_is_the_sample_s_operand_where_maintenance8_is_reported
fails without the change (no Maintenance8 among the enables); the_optional_features_decide_the_
capabilities takes the eighth case. tests::filter_nest (device cfgs): the unrolled kernel, the
operand and the switch (a translator told of no maintenance8 on the same device, test-only) write
the same 64 sums; the module needs maintenance8 and holds no OpSwitch where creation enabled it,
and holds a switch otherwise.
|
||
|
|
6ef64ae3ee |
rt: a depth bias's clamp is the device's own
setDepthBias:slopeScale:clamp: bounds the bias by its clamp: "Pass a positive or negative value to limit the largest magnitude of a positive or negative bias, respectively. You can disable the bias clamping functionality by passing 0.0" (Apple's page for the method, as fetched). Vulkan's depthBiasClamp is the same bound (dbclamp: x for 0, min(x, clamp) above 0, max(x, clamp) below). rt refused every clamp but 0 (DrawKind::DepthBiasClamp), where the deleted runtime passed it. floor: depthBiasClamp joins REQUIRED. Every dumped venue reports it (vulkaninfo m3-max-48727 to 48731, 48736, 48737 and 61508 for the RX 550: RX 7900 XTX, the three 780Ms, RTX 2080, RTX 3090, Iris Xe, RTX 5080 Laptop, llvmpipe, the UHD 630's Windows driver, KosmicKrisp on the M3 Max, RX 550), and Vulkan 1.4 and Roadmap 2022 require it. render encoder: set_depth_bias keeps the clamp beside the bias and slope scale and records it in vkCmdSetDepthBias, as dynamic state (no pipeline). It returns nothing now, as Metal's call does: its only error was the clamp. DrawKind::DepthBiasClamp is deleted. The consumer's checkout names both: rt_platform/render.rs:380 (`e.set_depth_bias(...)?`) and rt_platform/unbuilt.rs:873 (a test's sample refusal of DepthBiasClamp); each needs a one-line change at its next pin. AGENTS.md: the Scope sentence on features no guest has used is replaced with the planner's wording: a feature a program can ask about is answered from the Vulkan query; one Metal gives every Mac device with no way to ask is built, a typed refusal in the known gaps until it is. Docs: the README's floor table, its depth bias paragraph and its render encoder known gaps; docs/REFUSALS.md regenerated (Draw's basis and sites); api_signatures.tsv blessed (the setter's signature, the variant gone). The conformance ledger drops render-state-depth-bias's refusal row. Tests: every_device_tests_writes_and_biases_a_depth_attachment's first draw is biased by 2^23 (0.25 or 0.125 in the device's unit at depth 0.25) clamped to 0.0625, and the depth read back is 0.3125 on every device; the later draws' answers are unchanged in kind. The conformance case render-state-depth-bias (a slope-scaled bias under the clamp -0.0125) now compares against Metal's recording. |
||
|
|
b5f6b03fe1 |
AGENTS.md: the consumer-use check is a search of the consumer's checkout
Before a published crate's public item is deleted, the lane searches the consumer's checkout for it and names the hit or the zero in the commit message. The consumer is asked only where a search cannot answer (a macro, a re-export). A search takes seconds and leaves the same evidence as a round of messages. |
||
|
|
4576277fad |
AGENTS.md: a published crate's public item a consumer calls is used
The orphan pass deleted ArgumentBufferLayout::from_descriptors because nothing in
this tree called it; the consumer did, and its build broke at
|
||
|
|
e9dcf9ed50 |
AGENTS.md: the deleted switches and FAST-PATHS leave the facts; "No switches." stays as the rule
The cutover deleted the translator's speed-for-accuracy switches, the driver-fact tables, the device checks, docs/FAST-PATHS.md and tests::fast_paths. AGENTS.md still said they "stay correct until the cutover deletes them", listed FAST-PATHS.md in the doc table, and named it among the honest trade-offs that change with behaviour. Those three passages now say what is true: - the doc table loses the FAST-PATHS.md row; - the old-runtime paragraph becomes "No switches. Never add a policy switch, a fact-table row, a device check or a ledger row."; - "The honest trade-offs stay current" names REFUSALS.md, METAL-COVERAGE.md, CONFORMANCE-COVERAGE.md and API.md's catalogue, without FAST-PATHS.md. DevicePolicy itself stays: it now holds only the consumer's domain, containment and isolation choices, none of which trades accuracy for speed. Verified: git ls-tree shows no docs/FAST-PATHS.md and git grep finds no fast_paths under crates/ at the parent; the diff touches AGENTS.md only. |
||
|
|
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. |
||
|
|
2e1ed78e94 |
AGENTS.md: docs/API.md's section 9 is the precision-note catalogue
Section 9 now catalogues rt's precision notes (
|
||
|
|
3620f4dc6b |
AGENTS.md: the crate and doc tables name seven crates and no deleted runtime
The old runtime crate is deleted (
|
||
|
|
268b496894 |
AGENTS.md: a refusal a guest meets is a bug, ranked by how often guests meet it
The scope sentence said a Metal feature no replay stream uses is a typed refusal until a stream needs it. The owner did not rule that and asked for it to change: a feature no guest has used, in a replay stream or a live session, is a typed refusal until one does, and a refusal a guest meets is a bug, ranked by how often guests meet it. Docs only; nothing compiles differently. |
||
|
|
dd4193cab3 |
AGENTS.md: rule 2's eighth query-chosen form is driver-zeroed memory; the rt README states the zeroed take as the one exception to a block's undefined bytes
The owner allowed driver-zeroed memory as a device-chosen form ("I'll allow it", relayed by the
planner from the owner's Telegram reply on 2026-11-19). Rule 2's list now names it, before
unified memory: a device with the zero-initialize feature allocates its memory zeroed and a block
says so at its take; a device without it writes every zero itself. The README's first memory
bullet no longer says nothing the driver does counts: a block's bytes are undefined except where
a take answers BlockInfo::zeroed, whose rule (high-water per allocation, rt's own zero requests
unchanged) the bullet below it states.
Docs only. The form itself is the commits before this one (c5607a598b..f776af3cb3): checked by
m3-max-53011 (clippy x3, rustdoc), m3-max-53003 (rt+harness 152/152, api_signatures 3/3, rt on
lavapipe 365/365 with both device tests), the negative control m3-max-52975 (the outside-writes
test fails on 114d718d46), and device runs on the 780M (53019), Iris (53022) and RX 550 (53026),
369/369 each.
|
||
|
|
441b9dbfd2 |
AGENTS.md: rule 3 names the exported surface's plane texture as the second exception
The owner allowed one more exception to optimal images, exactly a plane texture of an exported surface: a linear image on the surface's own exported memory at the export's pitch and plane starts, and the copy form of the same call, counted and recorded as a known gap, where the device offers no such image or cannot meet the layout. The Shared-buffer exception is kept word for word. Checked against Device::new_exported_surface as built: in place, each plane's image is bound to the surface's exported memory (a dma-buf's per-plane import of it, or the opaque handle's one allocation) at SurfaceExport::planes; otherwise SurfaceForm::Copy, counted in Metrics::surfaces_copied, its gaps in the rt README. |
||
|
|
03ec529f22 |
AGENTS.md: rule 2 lists seven second forms; the null descriptor's goes
The owner's order (relayed by the planner, Telegram message 1924): "Remove unused lines from the rules." The eighth second form of rule 2, a small zero image or the default sampler where a device lacks the null descriptor, is unused: nullDescriptor is a floor feature (crates/metal2vulkan-rt/src/ floor.rs requires robustness2.null_descriptor), so no device above the floor takes the zero-image form and no code holds it. Verified: a grep of the tree's Markdown and Rust for another statement of eight forms or of the zero-image form finds none outside AGENTS.md. The rules' other named items (the attachment feedback loop's counted copy in crate::over and the attachments' copies, the optional features in floor::OPTIONAL, DevicePolicy, tests::fast_paths, docs/FAST-PATHS.md) exist. |
||
|
|
d92119383c |
AGENTS.md: the null descriptor is an eighth query-chosen form
The owner approved it on 2026-11-18, typed in the planner's session, verbatim: "I approve it", on the planner's question "allow it as an eighth query-chosen form". Rule 2's list now holds eight: a device without the nullDescriptor feature gives every element of the texture and sampler arrays that no resource owns a small zero image or the default sampler, recorded as a known gap. The closing sentence (a second form chosen by anything else is not allowed) is kept. Docs only; the form itself is not built yet (it waits for the Mac lane). |
||
|
|
f0df30b6ba |
AGENTS.md: rule 2 lists unified memory and the attachment feedback loop as query-chosen forms
Owner rule 2 named five features whose query may choose a second form. The owner allowed two more on 2026-11-18, relayed verbatim by the planner from the Telegram bot: - "I allow it", answering whether unified memory, decided by the Vulkan device type, may be a query-decided form. That is the one-or-two-copies choice for Managed buffers that Device::has_unified_memory answers. It is decided by the physical device type alone, never by a vendor or device ID. The earlier sixth form (explicit pitch) stays dropped. - "Wait never mind, copying is fine if the gpu/driver genuinely doesn't support it", reversing the typed refusal for attachment reads on a driver without the feedback-loop features. On such a device a draw that reads its own render target goes through a counted copy of the target, as the last form there, reported as a known gap. The Copies rule is unchanged: this is not leave for a copy on any device that has the feature. The rt test that enforces rule 2 (tests::one_path) forbids identity names, environment reads and policy types. It does not list the allowed queries, so it does not change. |
||
|
|
86a305415f |
AGENTS.md: SIMD groups are the fifth feature whose query may choose a second form
The owner ruled it on 2026-11-17 (to the planner, "Add it"), on the item "SIMD groups: the subgroup size range and maximal reconvergence". Rule 2 now lists five features: the four before, and SIMD groups, the subgroup size range with its stages and operations, and maximal reconvergence. What follows for the translator and the new runtime: the three SIMD-group tiers (pinned, 32-lane clusters, emulated), the large-kernel trigger and the form for a device without maximal reconvergence are allowed on the runtime's one path, chosen by those queries. The identity-keyed stage-bound fallback stays out. Measured behind it: every lab GPU and lavapipe has shaderMaximalReconvergence except the UHD 630 under Windows (driver 101.2145); there, the 53 benchmark kernels with simdgroup lockstep barriers compile on the emulated tier whole. Pinning large kernels costs 1.3-4.4x GPU time and 2-19x creation time on the Intel GPUs, so the size-range choice stays. |
||
|
|
066122aad6 |
AGENTS.md: docs/RESOURCE-ID.md in the doc table
The resource ID's spec landed with a6277b1a10. Doc-only change. |
||
|
|
4dcd5a74b9 |
AGENTS.md: docs/REPLAY-STREAM.md in the doc table
The replay stream format and its player landed in 84fc9a95fc; the doc table names every doc an agent reads. Doc-only change. |
||
|
|
017ff31e2f | wip harness crate | ||
|
|
65660ef735 |
AGENTS.md: the one exception to optimal images, and its fixed conditions
Rule 3 said "optimal images in real layouts" without the exception the owner accepted for textures over Shared buffers, so the two contradicted each other. The rule now names the exception and its conditions: a linear image on the buffer's memory, in the device's own layout, created so its first use keeps the bytes, with the alignment the guest reads from Metal's minimum linear texture alignment; where a format query offers no linear image for a format and usage, a counted copy at commit. The owner fixed these conditions and said they do not grow. Doc-only change. |
||
|
|
5c121fec94 |
AGENTS.md: no calibration rung; second forms only for four query-decided features
The owner's decisions on the runtime rewrite's rules: - The workaround ladder loses its calibration rung. Where no single form wins on every device, the form that is best on the slowest GPU is taken and the loss on the others is recorded as a known gap. The ladder is now four rungs; the thresholds' time box ends at rung 4. - "One form" means one form per Vulkan capability. A second form chosen by a feature's query is allowed only for the four features the floor cannot require on every lab device: 16-bit floats, storage-image reads without a format, 64-bit atomics and 64-bit floats. - Copies: nothing is copied that Metal would not copy; a copy is only the last form on a device with no other, reported as a known gap. Doc-only change; nothing else refers to the removed rung. |
||
|
|
28b6b0b9df |
metal2vulkan-rt: the new runtime's crate, and AGENTS.md's rules for one path on every device
What: a new, unpublished workspace crate, crates/metal2vulkan-rt, that will replace metal2vulkan-runtime and take its name at the cutover. It has no public API yet. Its first test, tests::one_path, reads the crate's product sources (line comments removed) and fails on: - a vendor, device or driver identity name (vendor_id, deviceID, DriverId, driver_name ...); - a GPU vendor's ID as a hex literal (0x1002, 0x10de, 0x8086 ...); - an environment read (env::var, option_env!); - a struct or enum named as a policy. Two more tests prove the scan finds each form and passes prose and unrelated numbers. AGENTS.md takes the owner's new rules, in priority order: 1. correct for documented Metal, with the device's arithmetic and static notes per operation; 2. one path for every device; 3. native-like speed; 4. small. It also takes: - the workaround ladder, the never-list and the thresholds; - the matrix rules: every check fans out one leg per GPU at once, and the replay matrix runs on development after each merge with deterministic metrics and leak gauges; - the freeze: the old runtime, DevicePolicy switches, driver-fact tables, device checks and docs/FAST-PATHS.md get regression fixes only until the cutover deletes them, and nothing new of those kinds is added; - the scope rule: below the floor is a typed refusal, and a Metal feature no replay stream uses is a typed refusal until a stream needs it. The crate table, the doc table, CI's crate lists and the gate commands in AGENTS.md, CONTRIBUTING.md and docs/VALIDATION.md name the new crate. Why: the owner's plan replaces the runtime with one that has no per-device code paths. These are the rules every lane of that work follows from its first commit. Verified: cargo fmt. Build, clippy and the crate's tests run on development after this lands. |
||
|
|
6267d10c6f |
CI: clippy of the published crates and devtools for Windows, on Linux
x86_64-pc-windows-gnullvm (the primary Windows target) and x86_64-pc-windows-msvc, with --all-targets --all-features and warnings denied. Clippy links nothing, so the Linux job needs only the two targets' standard libraries. AGENTS.md's CI paragraph names the step. Verified: the same clippy lines ran in potluck jobs on Linux (msi) for both targets. |
||
|
|
7d14d60cad |
Keep each worktree's target directories inside it, where kache shares incremental state
kache 2.0 imports a crate's incremental state from another worktree's target only when both
targets sit inside their worktrees: a CARGO_TARGET_DIR outside its worktree is attributed to the
target's parent directory instead, and neither gives nor takes. AGENTS.md and CONTRIBUTING.md
now say so: target/ (Cargo's default), and target/gpucfg for --cfg m2v_gpu builds, as CI and
docs/VALIDATION.md already name it.
Verified on the M3 Max at
|
||
|
|
64b4e42d75 |
Build on nightly-2026-11-03 with rustc's parallel front end, kache and incremental builds
The owner asked for a nightly toolchain, -Zthreads, kache 2.0 with its incremental cache, and Rust's incremental compilation on. - rust-toolchain.toml pins nightly-2026-11-03 (rustc 1.101.0-nightly 1c3a65069), dated so every machine runs one rustc, clippy and rustfmt. The published crates keep rust-version 1.98, which this build no longer checks by itself (clippy's incompatible_msrv still flags newer std items). - .cargo/config.toml passes -Zthreads=0 (a thread per core) through Cargo's profile rustflags, which add to RUSTFLAGS instead of being replaced by it, so `--cfg m2v_gpu` lanes and CI's -Dwarnings keep it. - scripts/rustc-wrapper hands each compile to kache where kache is on PATH outside CI, and to rustc otherwise; `RUSTC_WRAPPER=` (empty) builds without it. - CARGO_INCREMENTAL=0 is gone from scripts/device-lane, AGENTS.md and CONTRIBUTING.md. - CI installs the toolchain the file names; both Dockerfiles take the same nightly. What the nightly asked of the code: - Its standard library containers take more trait-solver levels (Box -> BoxRaw, RawVec -> PhantomData), so proving a RenderCommandEncoder `Send` from a program's crate ran past the default recursion limit (tests/consumer_auto_traits.rs failed, a future-incompat lint that will become an error). The encoder now holds its own lowering in `OwnLowering`, whose `Send` impl is written out over a compile-time proof that `RenderLowering` is `Send`, as `LoweringSlot` already was. The runtime crate's own proofs need recursion_limit 256. - New clippy lints: needless_range_loop, single_element_loop, new_instead_of_clear (a false positive on a moved-from Vec: the part's segments are now taken explicitly), needless_borrows_for_generic_args, redundant_closure, unnecessary_lazy_evaluations, manual_range_patterns; AtomicU64::fetch_update is deprecated for try_update (present in 1.98). - Cargo warns that `homepage` equals `repository`: homepage removed from the manifests. - nightly rustfmt formats ir_id! invocations one argument per line. Verified on the M3 Max: `cargo clippy --workspace --all-targets --all-features -- -D warnings` clean on the nightly; `cargo build -v` shows -Zthreads on every rustc invocation and scripts/rustc-wrapper in front of each. |
||
|
|
6fba488835 |
Drop the exact golden table, a duplicate of the default one
One work packet, landed as 2 commits (4bf2c22aad..9090d9a1b1 on archive/development-linear-2026-10-28), in order: * Drop the exact golden table, a duplicate of the default one `DevicePolicy::exact_answers()` now sets only the runtime's switches (heap compression, completion, batch order, render lowering, host-page textures), none of which a translation reads: the table's own structural test held its profiles' fingerprints equal to the default table's, so `golden_hashes_exact.tsv` pinned a subset of `golden_hashes.tsv` cell for cell. The table, its comparison test, its structural test and the `samples` filter go; the bless writes the one table. Verified: clippy (workspace, all targets, all features) clean; the golden module's structural tests, fast_paths and published_crates pass (14 tests). * State the native-arithmetic rule in AGENTS.md and the ledger The owner ruled on 2026-10-27: "Just promise the GPU's native arithmetics, no more 'exact' emulation." Rule 1 now says so: arithmetic and value answers are the device's own native form, recorded as a precision note where they can differ from Metal's, and no path or switch emulates Metal's bits where the device has a native form; capability emulation stays; the remaining speed-for-accuracy switches (outside arithmetic) keep both forms, the fast one the default. The "Scope is the device's" honesty rule names the native answer as a recorded near-equivalent. docs/FAST-PATHS.md's opening says the same and what its tables hold. Verified: tests::fast_paths passes. |
||
|
|
acea7ad20b |
Measure how much of each Metal enum the conformance suite compared
The steps this packet landed as, in order: - Wrap the option-space axis's two overlong lines - Blank a source for the hand-modelled scan only where a match needs it - Remove the self-test's trees when it is done with them - Say that a sweep by ordinal states no value by name - Record why an ordinal-stated value must not be resolved by field name - Re-derive the generated documents at the landing tip Content: the tree of `development` at 9e1c5a54d5, unchanged. |
||
|
|
2047524f92 |
Give EtcDecode its first check against Metal rather than against itself
The steps this packet landed as, in order: - Give AstcDecode its first check against Metal rather than against itself - Inventory what the conformance suite verifies, not what we implement - Leave no bytecode cache beside the coverage script - Group the conformance inventory by SDK header as well as by container Content: the tree of `development` at 0375c9b833, unchanged. |
||
|
|
a356129821 |
Add the conformance suite's core as its own crate
The steps this packet landed as, in order: - Prove the conformance loop with two seed cases, recorded on this M3 Max - Own the committed-AIR shader path, and three more exhaustive byte cases - Compare a case's words in named columns, and keep the suite's two venues green - Bump the runtime version and pin the runtime sources after the binding fix Content: the tree of `development` at 4b4ecc5628, unchanged. |