One work packet, landed as 2 commits (6e5d7acfc7..6c8a857d8b on archive/development-linear-2026-10-28), in order:
* Take IdPlacement::Outside for a texture over the caller's VkImage
`Device::new_texture_with_vk_image` now accepts `IdPlacement::Outside`,
the runtime extension `Device::new_texture` already takes for a caller's
helper texture: the placement check is skipped for Outside, and
`Texture::made` (already handed `IdUse::Program(placement)`) takes no ID
and holds no slot. The wrapped path otherwise behaves as before; it still
takes no device sampler ID at any placement.
Why: the consumer wraps its swapchain images with this call. Refused at
Outside, it had to give them `Any`, so they took texture resource IDs and
a guest's textures' `gpuResourceID` and `uniqueIdentifier` started past
them while a window was open: the guest's answers depended on whether a
window existed. At Outside the program's textures are numbered as with
no window.
Docs: `IdPlacement::Outside`, the resource-ID module docs,
`check_texture_placement`, `Problem::OutsidePlacement`,
`TextureDescriptor::placement`, the call's own doc (which now says it is
a runtime extension and how it places the texture), docs/API.md and the
runtime README. docs/REFUSALS.md regenerated (the OutsidePlacement row's
wording). No public signature moved (`signatures.py --check` passes).
RUNTIME_VERSION 1647: a call that was refused now makes a texture, which
the version's rule ("a refusal or its class") counts as a behaviour
change. runtime-sources.sha256 follows the edited runtime files.
Test: `presenting::a_callers_image_placed_outside_takes_no_id` (device
lane). After a reservation of 20000, a plain texture takes 20001 on a
device with no caller's texture; a caller's texture placed Any takes
20001 itself and moves the plain texture to 20002; one placed Outside
answers 0 and the plain texture takes 20001. Placed Outside before the
reservation it starts no space (the plain texture still takes 20001),
and a clear of it is what a blit copy of it reads.
Verified, on this Mac (Apple M3 Max, MoltenVK, --cfg m2v_gpu, under
the shared GPU lock): the new test passes and prints "the plain texture
after a reservation of 20000 answers 20001 with no caller's texture;
(Some(20001), 20002) after one placed Any; (Some(0), 20001) after one
placed Outside". With the old unconditional placement check put back it
fails: new_texture_with_vk_image returns
Invalid(OutsidePlacement). Also passing in the same run: every
presenting test, resource_ids::an_outside_texture_takes_no_id, and the
runtime-sources guard. clippy -D warnings for metal2vulkan-runtime
(all targets, all features) plain, and for metal2vulkan-runtime and
metal2vulkan-validation under --cfg m2v_gpu; runtime rustdoc with
-D warnings; the refusal_surface, api_surface and api_signatures tests.
* Re-pin the runtime sources at the landing tip
The landed packet changed a runtime-sources input, so the committed digest no
longer described the sources and `the_runtime_sources_are_the_committed_ones`
would fail. Recomputed over the same inputs and committed by land-pkt.sh.
One work packet, landed as 2 commits (86ec320bae..8485bc6865 on archive/development-linear-2026-10-28), in order:
* Take sampled textures over host pages in place where the device's check passes
A 2D texture (or array) over host pages is now a linear image aliasing those pages, with no shadow,
when all of these hold:
- its declared usage only samples or reads it (no RenderTarget, ShaderWrite or ShaderAtomic);
- the pages are a no-copy buffer's, imported by their pointer or as dma-bufs, or a buffer the
runtime placed in fresh pages;
- a startup check shows that, on this device, the image's first move keeps every byte while the
CPU writes beside it.
Vulkan makes such an image start UNDEFINED (VUID-VkImageCreateInfo-pNext-01443) and lets the move
read and write every byte bound to it. Relying on the driver here, once checked, is the owner's
ruling ("In place, trusting the driver"): a deliberate, scoped exception, recorded in FAST-PATHS.
The switch is DevicePolicy::host_page_textures:
- HostPageTexturePolicy::InPlace is the default.
- HostPageTexturePolicy::Shadow is the exact form, which exact_answers() selects. Under it every
such texture stays a shadow and no check runs.
The check (in_place_check.rs):
- It runs on a thread of its own, started by the first texture that asks, per class of pages:
pointer imports, fresh pages and dma-buf imports. On a Unix target the dma-buf class uses an
exported allocation of the device's own.
- Each class tries 11 shapes, 3 rounds each, through the product's own Buffer::new_texture:
- packed rows of 1, 2, 4, 8 and 16-byte texels;
- rows with bytes between them, for the same texel sizes;
- one 3840x2160 surface.
A shape the device makes no image of is skipped, as the product makes none either.
- A writer thread writes the pattern's complement through texels, the bytes between rows and the
bytes after the image while the move runs. Every byte is then compared.
- The pattern is a 4099-byte prime period, so it lines up with no row, page or texel. The window
is filled by copies and compared written bytes first, then a period at a time. That makes the
33 MB surface cost about 11 ms a round in release.
The verdicts are kept as one record in the shader cache's content store:
- The record is named by vendor, device, driver ID, version, name and info, the UUID, the check's
kind and version, and RUNTIME_VERSION.
- It is checksummed. A bad, partial or other-version record counts as none: the check reruns and
overwrites it.
- With no cache directory, the check runs once per process.
- A forced failure (DeviceOptions::fail_in_place_check, a hidden test hook) keeps nothing.
Every texture that still takes a shadow announces why (shadowed-texture) and is counted by cause:
- the policy;
- usage that renders or writes;
- check pending, failed or unchecked;
- refused: rows, detached, image, pitch, placement, the dma-buf source, other dma-buf reasons.
WorkCounts also counts the in-place textures by class and pitched images, and the check's runs and
verdicts.
How an image in place is made, used and visible:
- Pointer and fresh pages take a linear image made for host allocations at Metal's pitch, or a
DRM_FORMAT_MOD_LINEAR image at an explicit pitch over the host allocation where the driver makes
one. Dma-buf pages take the modifier image over a dma-buf of the texture's own pages.
- A rebind remakes these images like the others.
- A write or pass beyond the declared usage goes through the existing usage shadow and attachment
stand-in.
- A CPU write reaches the image's commands as it reaches the buffer's (Host Write Ordering
Guarantees).
RUNTIME_VERSION 1643 -> 1644. The runtime-sources pin is left for the landing.
Check duration, Apple M3 Max on MoltenVK 1.4.2:
- 75-78 ms in release: Pointer and Fresh passed; DmaBuf unchecked, as there are no dma-bufs on
macOS.
- 1.76 s in a debug build.
- The first version took 4.1-4.2 s in debug, almost all of it the 3840x2160 shape's per-byte
hashed fill (240 ms) and compare (461 ms) per round, times 3 rounds and 2 classes; the GPU move
itself took 0.15-3 ms.
- Nothing was dropped from the check. The 64x64/256 shape became 64x16/256, and packed shapes of
each texel size were added, because MoltenVK takes no padded pitch: the first version made only
4-byte images there.
Verified on the M3 Max (debug lanes, --cfg m2v_gpu):
- in_place_textures, all five tests:
- the path follows the check, and an event-held CPU write after the commit is read;
- a kernel write and a pass beyond the usage go through their shadows and keep the image;
- a forced failure keeps the shadow and no record; the next device runs the check, and the one
after recalls three verdicts and checks nothing;
- the costs.
- first_use_writes under both settings: 1920x1080/7680 in place, 0 of 542 writes undone.
- no_copy_textures read/write under both settings: ShaderRead-only textures in place at packed
rows, the rest shadows.
- pitched_surfaces, including the new _in_place variants of the only-reads and read-only-pages
tests.
- The runtime and translator suites passed (4971 tests), with clippy plain and under --cfg m2v_gpu.
Cost on the M3 Max, release, median GPU time per command buffer, in place against shadow:
- 3840x2160, one pass reading a 32-row strip: 492 against 553 us.
- 1920x1080 strip: 457 against 452 us.
- 1920x1080 whole: 393 against 466 us.
- 1920x1080, three whole passes: 566 against 545 us.
Untested here: RADV, lavapipe and the dma-buf class, which follow; ANV and NVIDIA have no venue
now.
* Re-pin the runtime sources at the landing tip
The landed packet changed a runtime-sources input, so the committed digest no
longer described the sources and `the_runtime_sources_are_the_committed_ones`
would fail. Recomputed over the same inputs and committed by land-pkt.sh.
The steps this packet landed as, in order:
- Re-derive the generated documents at the landing tip
- Re-pin the runtime sources at the landing tip
Content: the tree of `development` at b5b8bb0770, unchanged.
The steps this packet landed as, in order:
- Re-pin the runtime sources at the landing tip
- Record that a library's entries now decode once between them
Content: the tree of `development` at b0f80e38e9, unchanged.
The steps this packet landed as, in order:
- Re-pin the runtime sources at the landing tip
Content: the tree of `development` at 20c998aa93, unchanged.
The steps this packet landed as, in order:
- Carry a shadowed texture's image across one command buffer's encoders
- Divide a large plane's first copies in, and read one on a device
- Count the device leg's shadow before its texture is made
- Re-pin the runtime sources at the landing tip
Content: the tree of `development` at 81cbe5101d, unchanged.
The steps this packet landed as, in order:
- Re-pin the runtime sources at the landing tip
Content: the tree of `development` at ae7ed9fa17, unchanged.
The steps this packet landed as, in order:
- Bless the surface and the API guide for the kernel's narrowed inputs
- Re-pin the runtime sources at the landing tip
Content: the tree of `development` at 3eefc94c48, unchanged.
The steps this packet landed as, in order:
- Bless the surface for the shared-queue counter and correct three doc claims
Content: the tree of `development` at 087149c5b8, unchanged.
The steps this packet landed as, in order:
- Record the new stage-input case's cost bounds and its timings
- Re-derive the conformance coverage document for the new case
- Measure what a compute kernel's unread stage-input attributes cost its translation
- Build the stage-input case's element words with iterators
Content: the tree of `development` at 63136aa1e4, unchanged.
The steps this packet landed as, in order:
- Fetch a signed normalized vertex attribute as the device fetches its unsigned twin
- Re-pin the runtime sources at the landing tip
- Bless the surface and the tables for the vertex variant keys
Content: the tree of `development` at 131c24f2fb, unchanged.
The steps this packet landed as, in order:
- Read the records lane's files only once the device that wrote them is gone
Content: the tree of `development` at fdf4232b79, unchanged.
The steps this packet landed as, in order:
- Say in the ledger that the descriptor view's sink is built, and which feature it needs
Content: the tree of `development` at c8516b14c3, unchanged.
The steps this packet landed as, in order:
- Select the sink's place only where the store needs no word atomic, and re-bless
- Account for the sink's descriptor in the tests it moved, and read coherence through the selection
- Set the two variable-pointer features through their Vulkan 1.1 members
- Name the two variable-pointer members in validation's feature table
- Flatten the one-entry by-name copy and write the runtime-sources pin
- Re-pin the runtime sources onto the twin-resolve landing
Content: the tree of `development` at 55117cdfe4, unchanged.
The steps this packet landed as, in order:
- Record what the kept samples' negative control actually read
- Read an extended-range attachment's samples back after its resolve too
- Re-pin the runtime sources after the kept-samples change
- Re-derive the generated documents at the landing tip
- Bless the public surface the shader-cache landing added
Content: the tree of `development` at 60ff6f9405, unchanged.
The steps this packet landed as, in order:
- Write a creation's shader cache entries on the device's cache thread
Content: the tree of `development` at 1ff199a2eb, unchanged.
The steps this packet landed as, in order:
- Name a device-lane shard by the whole area it starts in
- Read a nextest listing by what its filterset takes, not by what it holds
- Say in --help what a slice marks in the report
- Keep the lane runner's lines and its verdict readable
- Say what the device lane's ignored tests actually are
- Align the shard table's header with its rows
- Hold each shard to the tests it had to run, not to nextest's skipped figure
- Say why no shard run builds under the wrap
- Compile each device-lane shard before it takes the GPU lock
- Say why both halves of a shard keep the workspace scope
- Say what a shard's wrapped seconds are, and what they are not
Content: the tree of `development` at 48daef6735, unchanged.
The steps this packet landed as, in order:
- Re-derive the generated documents at the landing tip
- Record the runtime sources' hash after the indexed draw on a DRAW-only buffer
Content: the tree of `development` at 4d0b93e5a3, unchanged.
The steps this packet landed as, in order:
- Stop claiming two indirect calls are refused when the runtime takes them
Content: the tree of `development` at 161fd37a49, unchanged.
The steps this packet landed as, in order:
- Record the runtime sources' hash after the stale-record corrections
Content: the tree of `development` at f5c1a00903, unchanged.
The steps this packet landed as, in order:
- Take RUNTIME_VERSION 1605 for the tile dispatch past Metal's limit
- Add the limit boundary and an odd dispatch to the tile spill's counted basis
- Rewrap the tile module doc's line at 100 columns
Content: the tree of `development` at b2670d8596, unchanged.
The steps this packet landed as, in order:
- Ask the read probe only for the plane form Metal makes
- Re-derive the generated documents at the landing tip
Content: the tree of `development` at 468e7db286, unchanged.
The steps this packet landed as, in order:
- Measure the slots past the records before anything is taken, and read the taken calls at commit
- Bless the public signature table after the bind-count refusal's variant
- Take runtime version 1605 and re-derive the generated documents at the rebase tip
Content: the tree of `development` at 7f47d5fffe, unchanged.
The steps this packet landed as, in order:
- Note the sRGB twin resolve in the color-resolve ledger row
- Re-derive the generated documents at the landing tip
Content: the tree of `development` at 6ad082ffc1, unchanged.
The steps this packet landed as, in order:
- Record Metal's answers for the four sparse move cases
- Record the seven gaps the sparse move cases' replay found
- Re-derive the generated documents at the landing tip
Content: the tree of `development` at 92107f95a7, unchanged.
The steps this packet landed as, in order:
- Name BGRA4Unorm's packed-16 attachment and its color input in the API guide
Content: the tree of `development` at ebd18b3408, unchanged.
The steps this packet landed as, in order:
- Take a late store action of `Store` on a memoryless attachment
Content: the tree of `development` at 0c4ffadc0a, unchanged.
The steps this packet landed as, in order:
- Give BGRA4Unorm its texture round-trip row, recorded on Metal
- Re-derive the generated documents at the landing tip
- Record the runtime sources' hash after the level-copy narrowing
Content: the tree of `development` at 233e95d38e, unchanged.
The steps this packet landed as, in order:
- Re-derive the generated documents at the landing tip
Content: the tree of `development` at 4ca407bfc0, unchanged.
The steps this packet landed as, in order:
- Re-derive the generated documents at the landing tip
Content: the tree of `development` at 238b032f74, unchanged.
The steps this packet landed as, in order:
- Re-derive the generated documents at the landing tip
Content: the tree of `development` at a2203c191a, unchanged.
The steps this packet landed as, in order:
- Keep the quoted Metal messages out of rustdoc's link syntax
- Record the runtime sources' hash after the sub-problem basis lines
Content: the tree of `development` at 3ade9d9999, unchanged.
The steps this packet landed as, in order:
- Re-derive the conformance coverage document for the new sparse case
- Move the sparse tiles Metal's run of destination tiles moves
- Recompute the runtime sources' pin after the sparse move's rule
Content: the tree of `development` at 66fac14c19, unchanged.
The steps this packet landed as, in order:
- Re-derive the generated documents at the landing tip
Content: the tree of `development` at 788eeefda0, unchanged.
The steps this packet landed as, in order:
- Read the selectors the suite's Metal leg sends by hand
- Type the receivers the suite's Metal leg binds by pattern
- Read the receiver, the chain and the closure the leg actually writes
- Say what still costs an unresolved call site
- Re-bless the golden tables after the extension vocabulary grew
Content: the tree of `development` at 1116f3a6d0, unchanged.