Commit Graph
385 Commits
Author SHA1 Message Date
Anees Iqbal cfe3cadd65 Count a render target's shadow over host pages apart from a shader write's
One work packet, landed as 3 commits (fd42939b4c..6801186813 on archive/development-linear-2026-10-28), in order:

* Count a render target's shadow over host pages apart from a shader write's

What: WorkCounts::host_texture_shadows_written (a texture over host pages made a shadow because
its usage renders into it or writes it) is split into two counts:
- host_texture_shadows_render_target: the usage holds RenderTarget, whatever else it holds. A
  texture of both RenderTarget and ShaderWrite counts here, and so does an Unknown usage (Metal
  reports every usage for it).
- host_texture_shadows_shader_write: the usage writes it through a shader (ShaderWrite or
  ShaderAtomic) and does not render into it.
ShadowCause::Written becomes ShadowCause::RenderTarget and ShadowCause::ShaderWrite in
in_place.rs. Render target wins because such a texture stays a shadow whatever a check of shader
writes could show.

Why: whether guest frames make shader-written textures over host pages at all decides whether
writing them in place is worth its check. The old count lumped them with render targets, so no
run could tell. Writing them in place is parked on park/shaderwrite-in-place.

The shadowed-texture notice's words are unchanged for both causes, and every texture takes the
path it took. No run's answer or announcement changes, so RUNTIME_VERSION is unchanged.

Tests:
- tests::in_place's decision test now expects each cause by usage. The usages include render
  target with shader write, render target with atomic, shader write with atomic, and every usage.
  It also checks that a shader write's notice reads as a render target's.
- New device lane in_place_textures::textures_that_render_or_write_count_their_shadows_apart:
  64x64 R32Uint textures over no-copy pages, of seven usages, under InPlace and under Shadow. Each
  moves exactly the count it should (render target, shader write, or the exact form's).

Verified:
- cargo clippy for metal2vulkan-runtime, metal2vulkan and metal2vulkan-validation, all targets
  and features, plain and under --cfg m2v_gpu.
- The runtime's in_place and degradation unit tests.
- metal2vulkan's fast_paths, api_signatures and refusal_surface tests.
- api_signatures.tsv blessed.
- The runtime-sources pin is not updated.

Not run: the new device lane. It was landed without its device run on the user's word
("skip the tests, just land it"), so its first run is development's gate.

Removed: WorkCounts::host_texture_shadows_written (now host_texture_shadows_render_target and
host_texture_shadows_shader_write). Nothing in the tree read it but api_signatures.tsv.

* 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.

* Re-bless the golden tables for the new profile field

The YCbCr in-place packet (42abe9a315) added a field to the device profile, which moves every
profile's key. The tables record each profile's key beside its cells, so both went stale on
`development`.

Only the 20 `profile` key lines in each table change; no cell moved (every other line is
identical), so SEMANTICS_VERSION needs nothing here.

Verified: `cargo nextest run -p metal2vulkan --all-features --run-ignored ignored-only
-E 'test(bless_golden_hashes)'` passed at 00404a4ba4, and the diff holds profile lines only.
2026-10-28 17:24:19 +02:00
Anees Iqbal cdf59197cc Read a YCbCr texture's planes in place on integrated GPUs
One work packet, landed as 2 commits (42abe9a315..391480a6b2 on archive/development-linear-2026-10-28), in order:

* Read a YCbCr texture's planes in place on integrated GPUs

On an integrated GPU or a CPU device, a function that only samples a two-plane YCbCr texture now
reads the texture's planes directly. Such a texture is `YCBCR8_420_2P` or `YCBCR10_420_2P` over
plane 0 of a surface. "Only samples" means nearest or linear, no comparison, no anisotropy and no
`min_lod_clamp`; reading the texture's size is allowed too. The function fetches the codes from a
uniform texel buffer over the planes' bytes, then converts and filters them as Metal does, with
Metal's integer arithmetic. The draw or dispatch reads those bytes alone, so the texture's image is
not converted for it. Every other device, and every other use (a `read()`, a gather), keeps today's
form: the image is converted from the planes through the refresh, then sampled.

Both forms are exact, so there is no precision note and no switch. The device's kind picks the
cheaper one, by Vulkan's deviceType: INTEGRATED_GPU and CPU read in place; DISCRETE_GPU,
VIRTUAL_GPU and OTHER keep the image. This is the same rule as hasUnifiedMemory. Nothing is timed
at startup.

The measured basis is GPU time of a 3840x2160 texture whose planes lie in host memory, composited
into 1680x1050. Figures are microseconds, best of 3 x 40, over unchanged planes; "image" means
today's refresh compare plus the sample. Mesa 26.2.4 and MoltenVK 1.4.2.

  device             codes   in place 1 pass   image 1 pass   in place 3 passes   image 3 passes
  Radeon 780M        8-bit        340              1178             1027               3013
  Radeon 780M        10-bit       457              1509             1371               3344
  RX 7900 XTX        8-bit       1819              1754             5460               1876
  RX 7900 XTX        10-bit      3614              3479            10843               3613
  M3 Max (MoltenVK)  8-bit        127               259              375                634
  M3 Max (MoltenVK)  10-bit       125               364              378                737

A discrete GPU reads the host's planes across its bus at every pass, while its image lies in its
own memory. Where the planes changed, the image's form also converts every texel: 1055 to 1252 us
more on the 780M, 1790 to 3636 on the 7900 XTX, 350 on the M3 Max.

The texel buffer formats are R8G8_UINT for 8-bit codes and R16G16_UINT for 10-bit ones. Vulkan
requires UNIFORM_TEXEL_BUFFER support for both on every device ("Required Format Support": the
1-3 byte-sized components table and the 16-bit components table). Each element holds two luma
codes or one chroma pair.

The translator:
- bind::YCbCrInPlace (new, public) holds the slot's push words and the view's format and bytes:
  the size, the planes' places and rows in elements, and the conversion word.
- On a profile that reads in place (ProfileFields::ycbcr_in_place), a 2D float texture slot whose
  every access the form reads records RuntimeFact::YCbCrInPlace { slot, samplers }.
- The plan takes VariantKey::ycbcr_in_place for such a slot when the bound texture states
  TextureFacts::ycbcr_in_place and every runtime sampler it is sampled through has one filter for
  min and mag, no anisotropy, no cubic filter, no comparison and the weighted-average reduction.
  The slot then binds WriteSource::YCbCrInPlace and PushField::YCbCrInPlace.
- The variant lowers each sample through lower::sampler::in_place. It builds Metal's texel from
  the luma code and the 9/3/3/1 chroma, and feeds extended's exact filter routine
  (Decode::InPlace). A runtime sampler's address word is mapped in the shader, as 4:2:0 maps
  repeat and mirror to clamp-to-edge.
- Size and level-count queries answer from the push words.
- The YCbCr image variant excludes these slots, so the variant's plan states the same key.

The runtime:
- texture/ycbcr_image.rs states PlanesInPlace for a converted texture where the device reads in
  place. Otherwise the texture keeps its image, counted by reason in
  WorkCounts::ycbcr_images_kept_{device,layout,swizzle,alignment,elements,reach,view}:
  - device: the device's kind;
  - layout: another layout, or staged planes;
  - swizzle: a swizzle;
  - alignment: the planes' first byte misses minTexelBufferOffsetAlignment;
  - elements: more than maxTexelBufferElements;
  - reach: planes past the buffer, which Metal reads as zeros;
  - view: no view usage.
- Binding a slot under the variant makes the texel buffer view, counted in ycbcr_planes_bound.
  It records a read of the planes' bytes in the tracker, so writes to the planes through the
  buffer, plane textures or blits are ordered before it. The texture's image is not used there.
- The image stays allocated; making it lazily is later work.

SEMANTICS_VERSION 1868, RUNTIME_VERSION 1645.

Also fixed: development's runtime_lane/dma_buf_imports.rs did not compile on Linux under the GPU
cfgs (layer_reported_nothing not imported). It now imports it.

Docs: the runtime's ycbcr.rs and ycbcr_image.rs module docs, docs/FAST-PATHS.md ("Costs of
matching Metal", and the YCbCr filter row), docs/API.md, the runtime README. The api_surface table
and api_signatures.tsv are blessed. REFUSALS, METAL-COVERAGE and CONFORMANCE-COVERAGE did not move.

Verified:
- New interpreter tests (tests::engine_linear_half::in_place) run every texel of a 7x5 texture
  against Metal's model, on lavapipe and moltenvk-m3:
  - 8-bit and 10-bit codes, with junk in the 10-bit words' low bits, under all six conversions;
  - constexpr linear, nearest and offset (2, -1) samples;
  - runtime linear, nearest and repeat-as-edge samples;
  - half and float results.
  They also check that the planner states the fact on lavapipe and moltenvk-m3 and not on
  nvidia-rtx5080-laptop, and that a dynamic offset, min_lod_clamp or a 3D texture gets none. A
  negative control, a deliberately broken in-place form, failed them.
- bind::plan::slots: the_in_place_variant_takes_a_slot_its_texture_and_samplers_read.
- The device lanes, filter test(/ycbcr/) over the validation and runtime crates, 49 tests:
  - M3 Max, MoltenVK 1.4.2, INTEGRATED: 48 passed. The one failure, a constexpr linear mip
    filter that is now read in place, is fixed in this commit's test.
  - Radeon 780M, RADV, Mesa 26.2.4, INTEGRATED: 49 passed. The samples bind the planes:
    ycbcr_planes_bound 3, refreshes 0, whole conversions 0 per three-dispatch round. The 4K
    10-bit minify and padded lanes match Metal's hashes in place (planes bound 7, no refresh).
  - RX 7900 XTX, RADV, DISCRETE: 49 passed. ycbcr_images_kept_device is counted, the planes are
    bound 0 times and the refresh runs.
  - lavapipe (linux-gate, LLVM 21.1.8, CPU): 47 passed. The 2 failures are test expectations,
    fixed in this commit: the constexpr mip case above, and the baked-sampler test, where the
    in-place variant bakes no sampler. The minify lanes read in place and match Metal's hashes.
- Chunked dma-buf buffer, runtime_lane::dma_buf_imports::
  a_ycbcr_texture_over_a_buffer_of_chunks_reads_its_planes_in_place. The buffer is
  list_limit + 76 single pages, assembled from 2 udmabuf chunks into 1 sparse buffer.
  - 780M: read in place across the chunks, every texel Metal's (planes bound 1, no refresh).
  - 7900 XTX: kept the image, every texel Metal's.
- Conformance replay on the M3 Max: ycbcr-minify-band-x and -y, ycbcr-texel-reads-420v and
  ycbcr-two-plane-format-descriptors all compare exact against Metal's recordings. The bands now
  count ycbcr_planes_bound 1 and no refresh, where the recordings hold ycbcr_refreshes 1, so their
  cost records want a re-bless on development.
- clippy -D warnings over the workspace (all features), and over the validation, runtime and
  translator crates under --cfg m2v_gpu. cargo fmt.
- The core suite is still running at commit time; its result goes in the report.

* 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.
2026-10-28 17:24:19 +02:00
Anees Iqbal 54a8b32154 Bind a memoryless texture as plain Metal does, and fail what uses it
One work packet, landed as 2 commits (6c0070d57d..a759d0e88f on archive/development-linear-2026-10-28), in order:

* Bind a memoryless texture as plain Metal does, and fail what uses it

A memoryless texture bound at a texture slot was refused at the setter (`StorageMode`), as
Metal's API validation layer refuses it. Plain Metal takes the binding, so a program that binds
one died here at `setFragmentTextures:withRange:` where it runs on Metal. Seen on an RX 580
under RADV, where the device is told framebuffer reads are unsupported.

Measured on an M3 Max under macOS 27.0.1, plain Metal (probes committed under
crates/metal2vulkan-conformance/probes/memoryless_*.m):
- Every setter returns. A command that uses the texture fails the command buffer with
  MTLCommandBufferErrorInvalidResource (9). That covers a draw, a dispatch or a tile dispatch
  whose function statically uses the slot, an empty one included, and one that reads the slot
  only behind a branch that is never taken. It also covers useResource of the texture, with or
  without a later command, and a blit into or out of it (a zero-size copy included), and
  generateMipmaps of more than one level.
- Nothing fails for a slot no function uses, a slot rebound before the draw, a pass with no
  draw, a memory barrier, the optimize hints, synchronizeResource, a copy of no slices, or the
  mipmaps of one level.
- Granularity: the submission that holds the command runs nothing, as Metal splits the command
  buffer (a render pass alone, a run of blit or compute encoders with no event command between
  them). Neither does anything after it, and its signals do not fire. The submissions before it
  run and their signals fire. The queue runs on.
- The CPU calls of a memoryless 2D texture move nothing; a memoryless texture buffer's fault
  the process. Every view of one is nil.

The runtime now:
- binds it;
- fails the command buffer with the new CommandBufferError::InvalidResource from the first
  encoder of the Metal submission (State::fail_submission_from, checks::submission_start);
- records nothing for the failing command;
- moves nothing in the CPU calls, still refusing the texture buffer's;
- answers nil (`Nil`, `StorageMode`) for views.

The check per command is one emptiness test of a per-table set of the slots that hold a
memoryless texture.

An execution's command whose function uses such a slot is the runtime's gap: Metal's answer
there is not measured. That is IndirectRenderCommands for render, and CommandReplay for an
inherited compute table.

RUNTIME_VERSION 1646. The runtime-sources pin moves with it. docs/REFUSALS.md is regenerated,
api_signatures is blessed for the new variant, and the degrade catalogue's
memoryless-texture-buffer entry is updated.

Verified on MoltenVK over this M3 Max under the validation layer:
- runtime_lane::memoryless_uses: draw shapes (read, empty, branch never taken, earlier draw,
  use_resource, unused, rebound, rebound to nil, no draw); the probe's encoder sequences (CcC,
  BbB, CbC, BcB, BSbB, bSB, CSc); compute and blit uses; CPU access and views.
- runtime_lane::memoryless, and the runtime's unit suite (plain cfg).
- tests::command_buffer::a_memoryless_use_fails_from_its_submission_s_first_encoder.
- Negative controls:
  - failing per encoder instead of per submission fails the sequence and blit/compute tests;
  - dropping the draw check fails the draw test (the draw is refused).
- Clippy in both cfgs, rustdoc -D warnings for the runtime, and the pin guard.

Not run: lavapipe, RADV, and the full validation and conformance suites.

* 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.
2026-10-28 17:24:19 +02:00
Anees Iqbal 87994746ea Take IdPlacement::Outside for a texture over the caller's VkImage
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.
2026-10-28 17:24:19 +02:00
Anees Iqbal 675a3ee122 Take sampled textures over host pages in place where the device's check passes
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.
2026-10-28 17:24:19 +02:00
Anees Iqbal fc6e726daa Write no zeros into a region of a chunk that reads zero unwritten
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.
2026-10-26 13:19:22 +02:00
Anees Iqbal 5136c8e4eb Hold the dynamic multi-variable choice against the variant, not the device
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.
2026-10-26 13:19:22 +02:00
Anees Iqbal 20b73503c0 Let the device say whether a binding of several variables may be dynamic
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.
2026-10-26 13:19:22 +02:00
Anees Iqbal 9446f08bd4 Count what a large surface's copy in costs per encoder
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.
2026-10-26 13:19:22 +02:00
Anees Iqbal 3b48637d3c Name a render stage's module without hashing its words again
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.
2026-10-26 13:19:22 +02:00
Anees Iqbal 911e7719ab Record a present's whole-plane copy in as a cost, not a gap
Content: the tree of `development` at f115373c0b, unchanged.
2026-10-26 13:19:21 +02:00
Anees Iqbal 5524692bd1 Record the shadow copy-in's per-encoder cost as two known gaps
Content: the tree of `development` at 3da5713b31, unchanged.
2026-10-26 13:19:21 +02:00
Anees Iqbal 586bf2ad59 State what a translated module contains on its stage
Content: the tree of `development` at c21116f557, unchanged.
2026-10-26 13:19:21 +02:00
Anees Iqbal d12ea9bbe7 Name the merge's planned dispatches and examined words in the API guide
Content: the tree of `development` at 27935d575e, unchanged.
2026-10-26 13:19:21 +02:00
Anees Iqbal 201803fc48 Compile a kernel once for the stage-input attributes it never reads
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.
2026-10-26 13:19:21 +02:00
Anees Iqbal 18bf703b5d Predict a compute region only where the request states its threadgroup
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.
2026-10-26 13:19:21 +02:00
Anees Iqbal 6d814a512f Compare a compute stage input whose descriptor states more attributes than its kernel reads
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.
2026-10-26 13:19:21 +02:00
Anees Iqbal e67a3a9f5a Keep narrow_float out of the key of an attribute read as half
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.
2026-10-26 13:19:20 +02:00
Anees Iqbal a73af4db0b Keep one driver pipeline cache per record, named by what converts a stage
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.
2026-10-26 13:19:20 +02:00
Anees Iqbal c00d13b838 Say in the ledger that the descriptor view's sink is built, and which feature it needs
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.
2026-10-26 13:19:20 +02:00
Anees Iqbal ca74ea24d4 Send a dropped store through a descriptor view to a sink binding, not around a branch
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.
2026-10-26 13:19:20 +02:00
Anees Iqbal 939e9d6e4a Keep the samples a resolve drawn after the pass reads, as Metal keeps them
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.
2026-10-26 13:19:20 +02:00
Anees Iqbal ee51060c1c Declare the shader-cache write kind last, so no ALL index moves
Content: the tree of `development` at 1649811132, unchanged.
2026-10-26 13:19:20 +02:00
Anees Iqbal fc63e360fa Count the render and the dispatch pipeline predictions apart
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.
2026-10-26 13:19:20 +02:00
Anees Iqbal 81577d0e6a Narrow the dropped-store gap to the descriptor view, and name the copy gap
Content: the tree of `development` at 2e4c21ff6f, unchanged.
2026-10-26 13:19:20 +02:00
Anees Iqbal acece28ea8 Record the memoryless packed-10 exception and the guard's own fast-math shape
Content: the tree of `development` at 55e723ae6b, unchanged.
2026-10-26 13:19:20 +02:00
Anees Iqbal a14ea5dba8 Make the --cfg m2v_gpu device lane one repeatable command
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.
2026-10-26 13:19:20 +02:00
Anees Iqbal 3cb648543f Take the indexed draw a buffer of DRAW alone runs as nothing
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.
2026-10-26 13:19:20 +02:00
Anees Iqbal d83182d197 Record the runtime sources' hash after the two indirect over-refusals
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.
2026-10-26 13:19:20 +02:00
Anees Iqbal 9cb2a21913 Record the runtime sources' hash after the stale-record corrections
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.
2026-10-26 13:19:20 +02:00
Anees Iqbal 0d37c17103 Measure what plain Metal runs for a tile dispatch past the tile, and for an indirect indexed draw past its index buffer
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.
2026-10-26 13:19:19 +02:00
Anees Iqbal b31e26710b Serve a blit out of a plane whose GPU rows share bytes
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.
2026-10-26 13:19:19 +02:00
Anees Iqbal 04bc130a4c Make the indirect buffer and bind counts plain Metal makes, and refuse only what its process does not survive
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.
2026-10-26 13:19:19 +02:00
Anees Iqbal e283c925a9 Resolve a multisampled attachment into its sRGB twin in the twin's encoding
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.
2026-10-26 13:19:19 +02:00
Anees Iqbal dd9868c0fc Author the sparse move past the bounds against Metal's measured rule
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.
2026-10-26 13:19:19 +02:00
Anees Iqbal 1395addb47 Say what Metal leaves where a plane's GPU rows share bytes, and guard the copy that had no rule
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.
2026-10-26 13:19:19 +02:00
Anees Iqbal 2887c7e7a3 Remove RenderPassProblem::MemorylessStore, a refusal nothing can construct
Content: the tree of `development` at 7e5eb0f84f, unchanged.
2026-10-26 13:19:19 +02:00
Anees Iqbal 588c40f91e Credit the format-by-type grid the read-write tier case puts to Metal
Content: the tree of `development` at 294fa689f9, unchanged.
2026-10-26 13:19:19 +02:00
Anees Iqbal 02ce60a7f3 Remove Problem::NoBufferBound, a refusal nothing can construct
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.
2026-10-26 13:19:19 +02:00
Anees Iqbal 87d4d3b881 Copy the levels plain Metal copies and refuse only what it refuses
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.
2026-10-26 13:19:19 +02:00
Anees Iqbal 5ef24f1f56 Record the runtime sources' hash after the memoryless and unbound-offset narrowings
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.
2026-10-26 13:19:19 +02:00
Anees Iqbal 0552f2b971 Compare the two device tiers and the behaviour each one promises
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.
2026-10-26 13:19:19 +02:00
Anees Iqbal 6b069c02fe Record the runtime sources' hash at the landing tip
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.
2026-10-26 13:19:18 +02:00
Anees Iqbal 2dd3557a98 Hold an IOSurface plane whose GPU rows overlap as a shadow
Content: the tree of `development` at 16ad1f5af6, unchanged.
2026-10-26 13:19:18 +02:00
Anees Iqbal 49d886e78c Measure BGRA4Unorm's write conversion and its filter, and compute its mipmaps
Content: the tree of `development` at 8d3c33ee76, unchanged.
2026-10-26 13:19:18 +02:00
Anees Iqbal f9ad123a0a Place every tile threadgroup argument offset, as plain Metal does
Content: the tree of `development` at c51c2421ff, unchanged.
2026-10-26 13:19:18 +02:00
Anees Iqbal 26c7aad1d0 Name the device and release behind twenty-one forwarded refusals' measurements
Content: the tree of `development` at ead49055ec, unchanged.
2026-10-26 13:19:18 +02:00
Anees Iqbal 1366be1718 Read the problems a Problem forwards to, and hold each to a basis
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.
2026-10-26 13:19:18 +02:00
Anees Iqbal 25ab1ea82b Read the storage mode the suite's cases actually state
Content: the tree of `development` at 1f1ac002e7, unchanged.
2026-10-26 13:19:18 +02:00
Anees Iqbal cfcb83b069 Say when a heap texture takes the shadowed-texture notice
Content: the tree of `development` at 24bfeec43c, unchanged.
2026-10-26 13:19:18 +02:00