Commit Graph
71 Commits
Author SHA1 Message Date
Anees Iqbal 35dd559a04 Bound a run of indexed indirect draws' index fetches in two dispatches
The steps this packet landed as, in order:
- Announce a provoking mode past 1 at the draws Metal's third way draws otherwise

Content: the tree of `development` at 107929f7b9, unchanged.
2026-10-26 13:19:07 +02:00
Anees Iqbal 8294000cbf Encode a predicated compute encoder again at a rebind where it was its unit alone
The steps this packet landed as, in order:
- Regenerate docs/REFUSALS.md over the twelfth stack
- Pin the runtime sources and bless the golden table over the twelfth stack

Content: the tree of `development` at 6ca8b9005a, unchanged.
2026-10-26 13:19:07 +02:00
Anees Iqbal 9d783a4e3a Run the emulation's wrapped indirect object grids, reporting Metal's wrapped grid
Content: the tree of `development` at f976f1035d, unchanged.
2026-10-26 13:19:07 +02:00
Anees Iqbal b0b61ac179 Time a fault that later failing encoders follow as Metal's GPU reaches them
The steps this packet landed as, in order:
- Stop a running predicated loop at the GPU's recovery from a fault or a hang
- Resolve multisampled extended-range targets by Metal's measured rules
- Run the emulation's indirect mesh draws with an object function

Content: the tree of `development` at 60cf488339, unchanged.
2026-10-26 13:19:07 +02:00
Anees Iqbal 642435208f Draw a run of direct indexed strips' lists in one dispatch
The steps this packet landed as, in order:
- Draw far-start public draws under the last provoking vertex in the pulled list form

Content: the tree of `development` at 77ada94845, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal effa0c09a2 Refuse a second-source blend without its output as Metal refuses it
The steps this packet landed as, in order:
- Expect Metal's refusal of a second-source blend without its output in the extended-range test
- Blend a fetched four-channel sRGB attachment as Metal does
- Regenerate docs/REFUSALS.md after the sRGB blend and Metal's second-source refusal

Content: the tree of `development` at e2db96d3b2, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal f84481cddd Fail an object grid Metal's GPU discards with Metal's error, and keep MeshGridPastLimits for the device's
The steps this packet landed as, in order:
- List the mesh_object_grid fixture in the engine inventory and AIR printouts, and re-bless the opened chains

Content: the tree of `development` at c81b828f80, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 1d494932f7 Clear the object-grid lane's targets to zero before reading them as drawn nothing
The steps this packet landed as, in order:
- Run any object grid Metal runs, in pieces within the task stage's limits
- Upload a folded object draw's fold when it launches nothing too
- Run an unfolded object stage's direct grid as Metal does when its threads wrap
- Bump the semantics, artifact format and runtime versions for the seventh stack
- Pin the runtime sources of the seventh stack
- Bless the golden hash tables over the seventh stack

Content: the tree of `development` at a6f6b269ad, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal e69068885b Write a kernel's draw of a primitive type past Metal's five as points, as Metal's encoding does
The steps this packet landed as, in order:
- Give the private-writes fixture its golden printout and inventory rows
- Draw an indirect render command's private primitive types as the encoder's draws of them
- Count an injected page fault or hang toward a queue's revocation, as the error it stands for
- Drop a unit's ungated dispatches at its unbalanced first record, as Metal does

Content: the tree of `development` at 8e08f4d248, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 3bd3f8ace2 Skip mesh pipelines that read weights where the device has no barycentrics
The steps this packet landed as, in order:
- Gather the lists of indirect draws in runs, planned on the GPU
- Regenerate the refusal surface over the indirect gather

Content: the tree of `development` at 9aa8e75be9, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal ac54e28297 Blend a fetched attachment with the second source, as Metal allows
The steps this packet landed as, in order:
- Regenerate docs/REFUSALS.md after the second-source blend of a fetched attachment
- Bind the generic blend lane's buffers at a u32 index

Content: the tree of `development` at d556610e9d, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 245f432e2e Keep a two-plane 3D texture over its first slice in a heap, with Metal's blits and CPU copies
The steps this packet landed as, in order:
- Bump the semantics, artifact format and runtime versions for the third stack
- Pin the runtime sources of the third stack
- Bless the golden hash tables over the third stack

Content: the tree of `development` at 2fde63f27f, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 54e399ca25 Draw indirect mesh grids as Metal does, through an arguments pass on mesh-shader devices
The steps this packet landed as, in order:
- Regenerate the refusal surface after the indirect mesh draws
- Read the task limits through the profile's public limits in the mesh draws lane
- Name VK_EXT_post_depth_coverage in the candidate's enable list
- Re-bless the opened chains, and let a late depth test behind an imageblock writer link
- Withhold the mesh shader extension's features with it in the mesh lane

Content: the tree of `development` at 3e1d7fbbe1, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 007879f9f9 Blend a fetched attachment of any float-class format in the shader, logged
Content: the tree of `development` at a9eec8fa77, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal e323ba2f72 Run tile threadgroups of every even shape in Metal's thread layout
The steps this packet landed as, in order:
- Read the coverage after the early depth test for [[sample_mask, post_depth_coverage]]
- Copy a stencil view's texels by the CPU as plain Metal does
- Give multisampled fragment imageblocks a block per sample, and test before writes a test may drop

Content: the tree of `development` at becd3e74a9, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal a653c11b49 Match Metal's detach timing: per submission, until the handlers ran
Content: the tree of `development` at 281583adb4, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal 1400c9049f Resolve a NaN clear as Metal does in a pass whose draw calls draw nothing
The steps this packet landed as, in order:
- Leave a resolve texture untouched where Metal's tile is not stored into its format
- Take setDepthCleared, setStencilCleared and setVertexAmplificationMode as Metal does
- Run the private alpha test in the fragment function as Metal tests it
- Clamp depth comparison references as Metal's fragmentDepthCompareClampMask says
- Take vertexAmplificationMode and explicitVisibilityGroupID as Metal does
- Record no restricted depth range where the driver keeps depth values outside [0, 1]
- Draw Metal's private logic operation: copy and no-op everywhere, the rest through logicOp
- Leave the default alpha test and clamp mask out of the inputs encoding test's derived Debug
- Clamp the reference of a depth comparison the shader makes under the clamp mask
- Key each Vulkan logic operation's pipeline apart
- Refuse a multisampled extended-range resolve naming its format and Metal's rule

Content: the tree of `development` at 0231dbbd54, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal 9516e41497 Say what an indirect command holds of the pipeline state set on it
The steps this packet landed as, in order:
- Time indirect commands' CPU setters and getters in host_ab
- Read and write one field of an indirect command's record
- Set and read an indirect command's fields one at a time
- Call an indirect execution's check where it may see something, and run the CPU's later writes
- Load vkGetDescriptorSetLayoutSupport inside the exit guard's sections
- Hand out indirect command buffer IDs to 2^31 - 1 and place every one's records, as an M3 Max does
- Refuse an indirect command buffer reservation Metal hangs at as such
- Place an indirect command buffer's records at any length, found only at their start
- Leave a resource ID pool made after a reservation of 0 alone, as Metal does
- Ignore a late reservation call before looking at what it holds, as Metal does
- Expect the merged-draw tests' pipeline makings' notices on every device
- Keep an indirect compute command's threadgroup lengths where Metal keeps them
- Take the pieces of the ICB identifier range Metal's encoders take
- Answer a GPU-written command's state identifier as the state its ID named then
- Run a GPU-written record's released state as Metal does, from the buffer's kept programs
- State and test the bound on the programs a GPU-writable buffer keeps
- Record the earlier-window record of a re-held ID as a known gap

Content: the tree of `development` at 7d31ebb207, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal 0d9e71903b Read VK_EXT_provoking_vertex: provokingVertexLast and provokingVertexModePerPipeline
The steps this packet landed as, in order:
- Write the index rewrite pass's primitives in either provoking vertex order
- Draw Apple's last provoking vertex: a last-vertex pipeline, else lists led by it
- Test Apple's provoking vertex modes against Metal's on the device
- Describe the provoking third way as pipeline-dependent; fix the table test
- Check the last provoking vertex through a geometry stage; key its slice notice on stages
- Test that executions keep the first vertex; scale the weights check by the values
- Register rt6_provoking in the engine inventory and golden printouts
- Add host_ab's provoking workload: flat-shaded draws at provoking vertex modes 0 and 1
- Add the index gather pass: one dispatch for a run of direct draws' lists
- Gather direct indexed draws' lists in runs: one dispatch per run, not three per draw
- Add the rotated-weights variant: Metal's barycentric weights from a rotated triangle
- Count private lists' gathers under a last-vertex pipeline; take the open runs whole
- Draw listed triangles' barycentric weights through the rotated-weights variant
- Draw every provoking vertex mode past 1 the third way, its top bit set or not
- Announce nothing for a provoking-mode draw that makes no primitive

Content: the tree of `development` at 91b1df7b21, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal 787d92fdc2 Answer a heap texture's allocatedSize from the place that holds it
The steps this packet landed as, in order:
- Answer a kept heap texture requirement before asking the device's limits
- Answer whether a command buffer or submission uses given objects, cloning nothing
- List devices' registry IDs without making devices, and open one by its ID
- Give a made pipeline state's reflection from its compile, after its creation
- Enable optional device extensions where each device can, and say which it enabled
- Let a caller vouch for its host pages' write permission, skipping the kernel's answer
- Import read-only host pages from the caller's dma-buf source, and say whether a device takes shared pointers
- Hold a texture of Apple's private usage 0x8 alone to what Metal does with it
- Measure RADV 26.2.4 on the RX 7900 XTX: its pointer imports follow their address
- Free a no-copy buffer's dma-buf imports before its keep-alive goes
- Measure a file's pages mapped under a live RADV pointer import, a known gap
- Let what waits for a dma-buf import's free go as its fields drop

Content: the tree of `development` at 0a38130573, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal 6da0b55c4b Leave a commit's own work behind a render encoder's end in flight, on request
The steps this packet landed as, in order:
- Regenerate the refusal surface and pin the runtime sources with commits behind the lowering thread

Content: the tree of `development` at 770f8bce10, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal e3ade73ace Run a fragment's quads whole through MoltenVK 1.4.2 without shaderQuadControl
The steps this packet landed as, in order:
- Withhold MoltenVK 1.4.2's blend warning of attachments it cannot blend
- Measure the M3 Max at MoltenVK 1.4.2, named apart from the M4
- Say what queue_storms measured at MoltenVK 1.4.2 plainly
- Make a heap's set layout MoltenVK's support query refuses only where it runs it, announced

Content: the tree of `development` at 285be2f493, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal 1505f4f5b3 Lower a render encoder's end on the device's lowering thread, on request
The steps this packet landed as, in order:
- Regenerate the refusal surface and pin the runtime sources with the end on the lowering thread

Content: the tree of `development` at bf576119ea, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal 59f83d5bd4 Lower a render encoder's logged calls on the device's lowering thread, on request
The steps this packet landed as, in order:
- Regenerate the refusal surface and pin the runtime sources with the lowering thread

Content: the tree of `development` at e282080dd5, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal 19ccb91916 Log a render encoder's calls and lower them after they return, on request
The steps this packet landed as, in order:
- Regenerate the refusal surface and pin the runtime sources with the logged render encoder

Content: the tree of `development` at f3cfaa3feb, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal 83ecf464ec Make a long new host-visible buffer in fresh pages imported by pointer, with nothing written
Content: the tree of `development` at 12606c508c, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal 33e89bd482 Fit mesh, compute and tile pipelines to ANV's compiler word bound
On ANV a pipeline whose largest stage module passes 400,000 words under the exact forms is
retranslated with those forms dropped until it fits; render pipelines already were, and now mesh,
compute and tile pipelines are too, announced as exact-forms-over-compiler-limit with the kind of
pipeline state named. New Device::fit_mesh_variant, fit_compute_pipeline and fit_tile_pipeline for
pipelines linked from stages compiled ahead. The known gap is gone from docs/FAST-PATHS.md.
Verified: the fit tests for every kind, 188 translator and runtime tests and the device notice tests
on ANV, and 7 of 7 on RADV.

Folds in:
- Fit mesh, compute and tile pipelines to ANV's compiler word bound
2026-10-19 00:16:00 +03:00
Anees Iqbal e320a1f475 Drop design-record, work-package and evidence codes from comments, and retire vk12-bare from the corpus
Comments, fixture notes and docs lose their design-record numbers, work-package codes and evidence
codes; lines that earlier commits of this series added carry their cleaned text there, so this
commit holds the cleanup of lines that predate the series, the retired vk12-bare profile's corpus
rows (a rationale and two observation rows), and docs/FAST-PATHS.md's measurements stated as they
stand. Thirteen hash-keyed files keep their citations, because their bytes are case or record
identities: eight case-keyed .ll fixtures and five parity sources.
Verified: the CPU suites (4997 of 4997 and 1328 of 1328), clippy, rustdoc and doctests.

Folds in:
- Drop evidence codes, design-record numbers and work-package codes from comments and fixture notes
- Drop the retired vk12-bare profile from the corpus
- Say the fast-path ledger's measurements as they stand, without commits, rounds or host incidents
- Keep the case-keyed .ll fixtures byte for byte
- Keep the parity lanes' fingerprinted sources byte for byte
2026-10-19 00:16:00 +03:00
Anees Iqbal affd8a5eb7 Split an interlocked pass at the fetch on every GPU, and delete the whole-pass reroute
The UHD 770's cost fact said an interlocked pass ran faster kept whole; measured again, splitting at
the fetch wins on every measured GPU (UHD 770, Iris Xe, Radeon 780M, RTX 3090, RTX 5080 Laptop) on
the window server's passes, so the UHD 770 carries InterlockedPassSplitNoSlower like the rest. With
no device keeping a pass whole, the whole-pass reroute is deleted:
DriverFact::InterlockedPassWholeFaster, RenderCommandEncoder::reroute()'s whole branch and
interlocked_colors(). The extended-range half shadow's draw keeping stays.
Verified: the framebuffer_fetch, extended_range and multisample lanes on all seven GPUs, 271 of 271
each.

Folds in:
- Run an interlocked pass split on the UHD 770 as on every GPU measured, by the corrected cost fact
- Delete the whole-pass reroute, which no device reaches since the UHD 770's fact was corrected
2026-10-19 00:16:00 +03:00
Anees Iqbal 6898b52edf Hold freed memory for the program's own with_vk_queue submissions, and tear the device down on its own thread
On drivers that park freed memory (MoltenVK among them), memory freed while the program's own
with_vk_queue submissions may still use it now waits for them, by a mark each use signals. The watch
of those marks and the release of freed memory hold only the device parts they use, never the
device, and teardown closes the parking first and waits for the handler threads: the program's last
drop tears the device down on its own thread before it returns, as Metal's last release does
(vkDestroyDevice needs external synchronization and every child object destroyed first).
freed_memory.rs is listed among the modules that may keep the device's functions, with that reason.
Verified: the freed-memory and teardown tests on ANV, lavapipe and the M3 through MoltenVK (14 of 14
each), the two teardown tests fail without the fix, and the presenting test that crashed in the
batch passed 20 of 20 on the M3.

Folds in:
- Hold MoltenVK's freed memory for the program's own with_vk_queue submissions, by a mark each use
  signals
- Hold nothing of the device in the watch of the program's marks and the releases of freed memory
- List freed_memory.rs among the modules that keep the device's functions
2026-10-19 00:16:00 +03:00
Anees Iqbal 7bc5866f45 Draw a multisampled 32-bit float depth copy, announced, where the driver's fragment depth is unmeasured
On a driver whose fragment depth is unmeasured, a multisampled Depth32Float copy is drawn and
announced rather than refused.

Folds in:
- Draw a multisampled 32-bit float depth copy, announced, on a driver whose fragment depth is
  unmeasured

Verified by each folded change's own checks; the tree this series ends on is the one verified
at the tip on six GPUs, the CPU suites and lint (see the tables commit).
2026-10-19 00:16:00 +03:00
Anees Iqbal 5783db2459 Keep a fetched merge's texels in an image copy of its shadow, the kept images held per queue
A fetched merge keeps its texels in an image copy of its shadow where the copy in takes no keep, and
kept images are held per queue and taken by any later keep of the same shape once its encoder ended,
so merges stop making a new image each time.

Folds in:
- Keep a fetched merge's texels in an image copy of its shadow where the copy in takes no keep
- Keep merges' kept images per queue, taken by any later keep of the shape once its encoder ended

Verified by each folded change's own checks; the tree this series ends on is the one verified
at the tip on six GPUs, the CPU suites and lint (see the tables commit).
2026-10-19 00:16:00 +03:00
Anees Iqbal e841dd6b4a Read the Radeon 780M of Hawk Point as the measured Phoenix 780M, with its own device profile
The Radeon 780M of Hawk Point (PCI device 0x1900) takes the driver facts measured on the Phoenix
780M (0x15bf), the same GPU, and gets its own committed device profile.

Folds in:
- Read the Radeon 780M of Hawk Point (0x1900) as the measured Phoenix 780M (0x15bf)

Verified by each folded change's own checks; the tree this series ends on is the one verified
at the tip on six GPUs, the CPU suites and lint (see the tables commit).
2026-10-19 00:16:00 +03:00
Anees Iqbal d77bd86377 Compute half + - * and fma in 16 bits under the 16-bit float controls
On a device whose half roundings take the 16-bit float controls (RoundingModeRTE, DenormPreserve
and SignedZeroInfNanPreserve for 16 bits with shaderFloat16: ANV and RADV among the committed
profiles), a half + - * is now the device's 16-bit OpFAdd, OpFSub or Fma(a, b, -0.0), kept apart,
between exact conversions (ops::f16_binary, the form the measured MoltenVK fact already takes).
Where shaderFmaFloat16 is enabled too, a half fused multiply-add is OpFmaKHR on 16 bits (new
fma::Route::F16Khr), under either policy. Elsewhere the f32 operation and its rounding pair, the
round-to-odd routine and native device maths' Fma stay as they were.

Exact: Vulkan's precision table lists OpFAdd, OpFSub and OpFMul for half precision, and OpFmaKHR,
as correctly rounded, to nearest even under RoundingModeRTE, with denormals kept under
DenormPreserve and zero signs under SignedZeroInfNanPreserve, the modes the entry declares where it
computes in 16 bits (narrow::computes_in_16_bits). That is Metal's half arithmetic and Metal's
half fma, which the round-to-odd routine emulated. A NaN's bits are the device's, as the
controlled rounding's already are; Metal's NaN is selected around the instruction where the
profile asks for it. The half fma under native device maths no longer records NativeFma there.

Why: the device's compiler spent most of a large half fragment function's making on the f32 ->
f16 -> f32 rounding pairs, most of which follow a + - * or a fused multiply-add. On ANV a
consumer's largest fragment library made in about 4 s, and about 2.2 s without its rounding pairs.

New: VkFeature::ShaderFmaFloat16 (the Khronos table, enables, the ash and runtime feature chains,
derivation, the codec), OpFmaKHR's feature by its operands' width, the builder's OpFmaKHR on 16-bit
floats, and the owned fixture engine/hfb_filter_bank (a 32-case switch of runtime-sampler tap
loops and half arithmetic chains) with its engine inventory rows. The validation engine's enable
list enables shaderFmaFloat16 from VkPhysicalDeviceShaderFmaFeaturesKHR beside shaderFmaFloat32,
and the opened-chains pin records it for the profiles that list it. Docs: docs/FAST-PATHS.md's half
rounding row, and the NativeFma notice in artifact.rs and docs/API.md.

Verified, as the commits state:
- On the UHD 770 (ANV, Mesa 26.2.4) the fixture's fragment library made in 1.74-1.89 s against
  4.64-5.26 s before (3 alternating rounds, no driver caches), SIMD8 instructions 25,902 ->
  18,736, translation 0.17 s release; driver_deviations::half_arithmetic_answers_as_metal passes
  there.
- On the UHD 770 in the release m2v_gpu build, the groups that failed before the engine enabled
  the feature pass: candidate engine runs, platform enables and device, engine_render,
  engine_compute, engine_textures, acceptance_pipelines, the runtime lanes kernel_textures,
  sparse_textures, renders, argument_buffers and runtime_probe, and the half and fma driver
  deviations.
- Debug translator tests: engine_arith, lower::arith, the fma, derivation, device, ash_interop,
  cache and fast_paths tests, and the engine inventory's llvm_as parts; engine_native_half
  (counting the 16-bit operations and their exact conversions) and engine_spirv_cross_forms (no
  NativeFma where the half fma route is F16Khr), with fused and engine_arith, 213 passed.
- clippy of metal2vulkan.
2026-10-19 00:16:00 +03:00
Anees Iqbal b6addb96c0 Read storage without a format by its format's bit under VK_KHR_format_feature_flags2 or Vulkan 1.3
Vulkan enables the SPIR-V capabilities StorageImageReadWithoutFormat and
StorageImageWriteWithoutFormat by shaderStorageImage{Read,Write}WithoutFormat, by Vulkan 1.3, or
by VK_KHR_format_feature_flags2; under the last two each format's own
STORAGE_{READ,WRITE}_WITHOUT_FORMAT bit (VkFormatProperties3) says whether it may be accessed so.
Intel's ANV and SwiftShader lack shaderStorageImageReadWithoutFormat, and the translator took the
feature as the only route, so a storage read the shader cannot declare with a SPIR-V format was
refused there even where the format's own bit grants it. Metal accepts such reads: an A8Unorm
storage texture read, and a fetch of an A8Unorm color attachment through the pixel interlock.

Now:
- VkExtension::KhrFormatFeatureFlags2 joins the Khronos name table, the cache codec, the
  runtime's and the validation platform's extension tables and the enable facts (core in 1.3, no
  feature member). The runtime enables it below Vulkan 1.3 where the device lists it.
- A module's Requirements list the two capabilities without their feature
  (device::requirements::WITHOUT_FORMAT_CAPABILITIES), and DeviceProfile::check and
  DeviceDescription::required_enables resolve them on the device: the feature where the device has
  it, else nothing at Vulkan 1.3, else the extension. A device with none is refused naming the
  feature, as before.
- metal::format: a typed declaration stays preferred wherever SPIR-V names the format; the
  declarations SPIR-V cannot name (the storage choice, the fetch's storage form, the depth and
  stencil fallbacks, the slot's formatless refusal, the ulong form) go by the features or by the
  format's own bit.
- A heap stays on the features: a per-pipeline check of each member's bit is not built, and
  docs/FAST-PATHS.md's known gap says what the formats' bits leave refused on ANV.

Effect on the committed profiles, read at the runtime's Vulkan 1.2 with and without the
extension over every PixelFormat: on intel-irisxe-rplp-anv and intel-uhd770-rpls-anv an A8Unorm
storage texture read and read-write, and an A8Unorm color attachment fetch read and written,
single and multisampled, now compile (an A8_UNORM view declared without a format), and an A8Unorm
texture buffer takes the A8_UNORM view in place of R8_UNORM holding alpha in red (both Metal's
texels). On intel-irisxe-anv and swiftshader nothing lifts. Every other changed cell on the four
profiles (1280) keeps its refusal and now names the format's missing bit in place of the feature.
The engine fixture tables do not change on any profile. The validation platform's Vulkan 1.2
device contexts enable the extension where a profile lists it, and the opened-chains pin records
it (32 contexts on 16 profiles, one more extension each).

Verified, as the commits state: the unit tests device::tests::enables (the feature, the version or
the extension), metal::format (access by the format's bits with the extension),
lower::fragment::fetch (an A8Unorm attachment fetched by its own bit, the fetch tests at Vulkan 1.2
with and without the extension), spirv::requirements and spirv::serialize, and the
framebuffer-fetch compile test all pass; public_fixtures_engine parts 1-8 unchanged; the
per-profile census above, run as a temporary test; candidate::platform::enables::tests 21 of 21;
clippy. New lane runtime_lane::alpha_in_red::a8_storage_reads_without_the_feature_go_by_the_format_s_bit
(a device made without shaderStorageImageReadWithoutFormat, as ANV is, reads its own A8_UNORM by
the format's bit under the extension: Metal's (0, 0, 0, 0.6) and 178).
2026-10-19 00:16:00 +03:00
Anees Iqbal 1ef457d88b Refuse an unordered framebuffer fetch and drop interlocked draws' barrier where the driver orders them
Three changes to framebuffer fetch and the pixel interlock.

1. An unordered framebuffer fetch is refused; FramebufferFetchPolicy is deleted. Metal orders a
   fragment function's read of its color attachment after every earlier fragment of the pixel,
   within a draw and across draws. Where a device offers neither ordered form
   (rasterization-order attachment access, or the pixel interlock's storage form where the
   pipeline's state lets it be exact), the opt-in FramebufferFetchPolicy::AcceptUnordered
   compiled the read as an unordered input attachment with a precision note. An unordered read
   can return the attachment before an earlier overlapping fragment's write: a different value
   in memory, not a rounding, which the owner's rule allows neither as a default nor as a
   switch. No exact form exists on such a device, so the fetch is refused there, as the default
   already did. The runtime never ran the unordered form, so no runtime behaviour changes.
   - Removed: DevicePolicy::framebuffer_fetch, the enum FramebufferFetchPolicy and its
     re-export (and its api_surface row), ProfileFields::framebuffer_fetch,
     PrecisionNote::UnorderedFramebufferFetch, and the runtime's note kind of that name, whose
     code metal2vulkan-degrade-unordered-framebuffer-fetch is retired; the runtime's
     framebuffer_fetch::ordered check; validation's --accept-unordered-fetch on corpus-vulkan,
     corpus-moltenvk and corpus-pipeline, and the device worker's framebuffer_fetch field.
   - lower::fragment::color refuses a read no ordered form serves (Unsupported{FramebufferFetch},
     naming both forms); lower::fragment::fetch refuses a blocked storage form with its blocker.
   - The profile's fields change, so every profile fingerprint does.

2. No barrier between interlocked draws' colors on a driver measured to order them. Between two
   draws of a render pass instance where the later one reaches a color in the fetch's
   interlocked storage form (or an extended-range color's half shadow) that the earlier one
   wrote, the runtime recorded a fragment-to-fragment storage barrier on every device. Vulkan
   orders such draws by the interlock alone (ordered interlock modes follow rasterization
   order, which follows primitive order through a subpass, and the interlocked storage image is
   decorated Coherent). A new answer fact, DriverFact::InterlockOrdersDraws, measured on ANV on
   the Iris Xe of Raptor Lake-P, drops that barrier there for these colors alone. The fragment
   imageblock's storage and the depth stand-in keep their barrier everywhere, as does every
   unmeasured driver. RADV on the Radeon 780M still needs the barrier: without it one blend
   table case leaves 19 of 495 band results wrong over 5 runs. New lanes:
   runtime_lane::interlocked_draw_order (every device, with its owned fixture ido_draw_order) and
   the ignored release bench runtime_lane::tile_path_costs (a window server's composite on
   Metal's tile path, fixture tgp_composite), with their engine inventory rows. A FAST-PATHS
   bullet records the barrier and the fact.

3. A left-out interlock color's framebuffer slot holds a placeholder image. A color attachment
   the draws read and write as a storage image in the interlock is left out of their subpass,
   but its framebuffer slot held a view of the very image the draws write, which the validation
   layer reads as VUID-vkCmdDraw-None-06537 for a draw recorded inline. The slot now holds a view
   of a placeholder that nothing reads or writes (DONT_CARE load and store, GENERAL layouts): the
   device keeps one for each format and sample count, plus one for each further color of that
   shape in the same framebuffer, grown to cover a larger framebuffer and freed once no
   framebuffer holds it; none is made per frame. A color whose draws use sample planes, and the
   planes' anchor, keep their own image's view. New WorkCounts fields
   storage_placeholders_made and storage_placeholder_attachments.

Verified, as the commits state:
- The translator's fetch tests (pipeline::compile ordering, engine_fragment, engine_moved_writers,
  device profile fingerprints and serde, fast_paths) keep the refusals; the raster-order-group
  read on a device with neither ordered form expects the fetch's own refusal naming both forms.
  Validation checks every public fetch case is refused on lunarg-desktop-baseline-2023 and
  vk12-floor, and that the command-line flag is gone.
- Iris Xe (ANV) with the fact in place: interlocked_draw_order 3 runs with every texel right,
  extended_range_blend_table 17 passed (0 of 495 bands wrong), framebuffer_fetch 49 passed. A
  1080p pass of 27 interlocked draws took about 1.08 million GPU cycles with the fact against
  1.46 million with the barrier forced (about 9 to 20 us a draw).
- The placeholder lane test (two RGBA32Uint colors over four passes and sizes): placeholders and
  slots (2, 2), (2, 4), (4, 6), (4, 8) through the interlock on the RX 7900 XTX (RADV) and the
  UHD 770 (ANV), none through input attachments, no validation message. On lavapipe 122 lane
  tests and 47 runtime render unit tests passed; on the RX 7900 XTX 94 lane tests passed.
- The engine inventory and llvm_as parts pass for the new fixtures; clippy in every
  configuration and Rustdoc -D warnings.
2026-10-19 00:16:00 +03:00
Anees Iqbal e35bf78bd5 Shadow every padded texture over a buffer and every texture over host pages, keeping CPU writes
A texture over a buffer could be an image bound to the buffer's bytes: a padded texture that only
read (PaddedReadsPolicy::Alias, the default), and any 2D texture over a no-copy buffer's host
pages (a linear image, a DRM_FORMAT_MOD_LINEAR image at Metal's row pitch, or on MoltenVK a Metal
texture over the import's MTLBuffer). An image bound to imported memory starts UNDEFINED, and a
layout transition "may perform read and write accesses on all memory bound to the image
subresource range", so such an image kept Metal's bytes across its first move only through a
host keep (read the bytes, submit the move alone, wait, write back what changed), which undid a
CPU write made inside that window. Metal keeps every CPU write to bytes a command buffer does not
write: on the M3 Max, a kernel reading half a padded no-copy texture while the CPU rewrote the
bytes between its rows and its other rows kept every CPU byte in 10 of 10 rounds. Changing bytes
in memory is not a precision note, so under the owner's rules it may be neither a default nor a
switch; exact is the default, and cost chooses only among exact forms.

Now a padded texture over a buffer, and every 2D texture (or array) over a no-copy buffer's host
pages, imported by pointer or as dma-bufs, is a shadow on every device, whatever its usage: an
optimal image of the runtime's memory, copied in from the bytes before a use and merged back
after a write. Texture::vk_image answers None for such a texture.

Removed:
- DevicePolicy::padded_reads and the enum PaddedReadsPolicy (Alias, Shadow); its FAST-PATHS row,
  its tests::fast_paths choice and its api_surface row.
- The images over host pages: the linear image for host allocations, the DRM_FORMAT_MOD_LINEAR
  image over host allocations with its refusal memo, the modifier image over a buffer texture's
  own dma-buf, the Metal texture over the import's MTLBuffer on MoltenVK (VK_EXT_metal_objects is
  no longer enabled for it), and the one image shared by textures of one plan over one import.
- The first move's host keep, and its notice unrestored-first-move-bytes (Degradation
  UnrestoredFirstMoveBytes), retired.
- WorkCounts fields first_move_keeps, first_move_kept_bytes, first_move_restored_bytes,
  pitched_host_images, pitched_host_image_refusals, pitched_host_image_refusals_recalled,
  shared_alias_images and shared_alias_moves_waited.

Kept: the buffer's dma-buf import as the last resort where the pointer is refused, on any device;
the images of heap textures over host pages, including over dma-bufs (a heap resource's contents
are undefined until written, in Metal too); a linear image over a buffer of the runtime's own
memory (PREINITIALIZED), whose first move FAST-PATHS records as a one-line known gap.
ShadowedTexture (shadowed-texture) now also covers read-only padded textures.

Also: a staged shadow's copy back merges rows that lie one after another into one region (a
packed 1080p surface takes one region, not 1080), and two new counters size what a shadow kept
across a command buffer's passes could save: WorkCounts::shadow_attachment_passes and
shadow_attachment_textures.

Docs: docs/FAST-PATHS.md (the shadow bullet with its costs, the known gaps), docs/API.md
(section 1's texture paragraph, the shadowed-texture and dont-care-stand-in entries, the retired
code), docs/HOWTO.md section 6, the runtime README, linear_attachment.rs's module doc.

Cost, as measured: on the Iris Xe a frame sampling four BGRA8Unorm tiles over no-copy pages took
3.2-5.3 ms as shadows against 3.0-6.1 ms as images (textures made once) and 3.4-7.1 against
4.6-8.6 ms (made each frame). On the UHD 770 (ANV, release, alternated), one Load/Store pass into
the guest's 1080p surface took 1.89-1.97 ms as a shadow against 2.56-3.09 ms as the linear alias,
whose draws ran slowly in host memory; 12 passes 20.9-21.1 ms against 27.4-27.8 ms, at about 40 us
more CPU a pass.

Verified, as the commits state:
- runtime_lane::first_use_writes (new: another thread writes bytes of a texture over host pages
  that its first use does not read, from 2 ms before to 2 ms after the commit; every write stays)
  passes on the RTX 3090, the Radeon 780M and the UHD 770.
- runtime_lane::pitched_surfaces asserts a shadow for every surface (counted, vk_image None),
  including the CPU write beside a padded texture during its first use and the new counters;
  no_copy_textures asserts a shadow and no modifier queries; the keep, pitch-refusal and
  shared-image tests go with what they tested.
- The lanes restated for the shadows pass whole: dma_buf_imports 13, resource_ids 38,
  rotated_textures 7 and linear_attachments 20 on the RX 7900 XTX and the 780M (RADV), the UHD
  770 (ANV, with row_copies 2) and the RTX 3090.
- linear_attachments renders over a Shared buffer of the runtime's memory, so the linear
  attachment paths stay covered, each test asserting the way its passes took; 21 pass on the RTX
  3090, the 780M, the RX 7900 XTX and the UHD 770.
- Runtime and validation nextest without a device, 2306 passed; the translator's fast_paths,
  api_surface, published_crates, refusal and driver_facts tests, 34 passed; clippy in every
  configuration and Rustdoc -D warnings.
2026-10-19 00:16:00 +03:00
Anees Iqbal 1df750bbd4 Resolve multisampled color by the device's average by default, Metal's rule on ResolvePolicy::Exact
A pass that resolves a color attachment whose format has Metal's resolve rule at its sample count
drew the runtime's exact resolve after the pass on every device whose AVERAGE is not measured to
be Metal's (everything but MoltenVK): one more render pass instance per resolved attachment,
between full barriers, reading the stored samples as an input attachment. That form is exact
and costly in GPU time. By the owner's rule (fast by default, exact on request, both kept), the
device's resolve becomes the default, announced, and the exact resolve a switch.

- DevicePolicy gains resolve: ResolvePolicy { Device (default), Exact }, a runtime choice alone
  (no emitted code changes, no profile carries it). exact_answers() selects Exact.
- Under Device the attachment resolves in its pass by Vulkan's AVERAGE, announced as
  device-rounded-resolve (precision), whose reason names ResolvePolicy::Exact: no extra pass, and
  a render target needs no input attachment usage for the resolve. Under Exact everything is as
  before.
- Unchanged under both: a driver with DriverFact::ColorResolveAverageIsMetals (MoltenVK on
  Apple's GPUs) resolves in the pass with no notice, and an attachment a fetching pass's sample
  planes hold as it ends resolves from them by Metal's rule.
- device-rounded-resolve's docs and cost state the measured bound: one code for a unorm, snorm or
  packed 16-bit unorm channel, two for an sRGB channel; a float channel's last bits are counted,
  not bounded.
- Docs: a new docs/FAST-PATHS.md row for the switch; docs/API.md's policy bullet and the
  device-rounded-resolve and shader-resolve catalogue entries; color_resolve.rs, policy.rs and
  driver_facts.rs state both values. The api_surface table lists ResolvePolicy.

Why: the exact form's extra pass costs GPU time on every device but MoltenVK (a resolved pass's
command buffer 73-77 us against 51 us on the Iris Xe, 63-75 us against 45-48 us on the 780M), and
no driver measured matches Metal's rule, so none gains ColorResolveAverageIsMetals.

Measured, as the commit states (release builds, 1920x1080 frames of 97 command buffers, every
fourth pass resolving an RGBA8Unorm x4 attachment, the exact form against the device's,
alternated): GPU busy a frame on the Iris Xe (ANV) 2.52 and 2.41 ms -> 1.92 ms (the guest's
shape 3.04, 2.77 -> 2.44, 2.43 ms); on the Radeon 780M (RADV) 2.33 to 2.78 -> 2.00 to 2.13 ms; on
the RX 7900 XTX 1.38 -> 1.36 ms.

The device's average against Metal's rule: on RADV (780M and RX 7900 XTX), ANV (Iris Xe),
lavapipe and NVIDIA (RTX 5080 Laptop), unorm and snorm channels land one code below Metal's at a
tie (16-bit channels exact on NVIDIA), sRGB within one code both ways (up to two at 4 samples on
NVIDIA), packed formats within one, float channels differ in value.

Verified, as the commit states:
- The new lane runtime_lane::resolve_rounding::the_device_resolve_rounds_as_announced (default
  policy) passes on lavapipe, the RTX 5080, the 780M, the RX 7900 XTX and the Iris Xe: every
  closed format at 2 and 4 samples resolved by the device, device-rounded-resolve exactly where
  the fact is absent, and every difference against Metal's rule within the notice's bound.
- The exact form keeps its lanes: the validated options take exact_answers(), so
  resolve_rounding's other tests, degrade_notices, nan_resolves and framebuffer_fetch run under
  ResolvePolicy::Exact as before.
- tests::fast_paths (the switch, and that the choice keys no profile), the driver_facts tests,
  api_surface, the runtime's degradation and driver_defects tests; fmt, clippy in the three
  configurations, rustdoc.
2026-10-19 00:16:00 +03:00
Anees Iqbal bb4f53d209 Read a surface's own pixels through a snapshot at any area, where its image takes feedback loop usage
A draw that reads the texture its pass renders, at its own pixels after a barrier, takes a
snapshot drawn in its subpass, or splits the pass instance and reads a copy; both are exact. The
snapshot was open only to a texture of its own image, so a texture over a buffer's bytes always
split, and each split copies the bytes into the shadow before every instance after a barrier.
The consumer's guest renders its 1080p framebuffer, an IOSurface over host pages, this way.

Now:
- Device::storage_over_buffer tries the linear image that aliases a buffer's bytes with
  ATTACHMENT_FEEDBACK_LOOP_EXT usage first (it costs a linear image nothing; its memory is the
  buffer's), then makes it without where the driver refuses, and counts each image made with the
  usage in the new WorkCounts::feedback_loop_alias_images.
- Texture::snapshot_color reads such an aliasing image through a snapshot, as an image of its
  own, and a reader of a texture over bytes takes the snapshot at any area. The area rule for a
  texture of its own image is unchanged.
- Where the image lacks the usage (NVIDIA's drivers make it without), the surface's readers
  split, exactly as before.
- A pass with a depth or stencil attachment keeps every attachment reader on the split: the
  binder makes no snapshot variant for it, and a snapshot draw would write depth or stencil before
  the drawing draw. render/snapshot.rs's docs say so, and a lane case holds the behaviour.
- The attachment-read row of docs/FAST-PATHS.md states the crossover and the feedback loop
  condition.

Why: in the guest's frames the split's copies dominated (66 splits, 68.2 own-pixel reads and
16.6M texels of bounded copies a frame), while the readers' fragments touch about 1.5% of the
texels a split copies.

Verified, as the commits state:
- On the Iris Xe (release, the new ignored lane attachment_read_costs::snapshot_crossover, a 1080p
  surface over host pages, snapshot and split forced and alternated): the snapshot's GPU time per
  pass is 0.56x to 1.2x the split's; its worst case is a small scissor covered half or more,
  about 10 us a reader, and it is cheapest for sparse readers in big scissors, where the guest's
  readers sit.
- runtime_lane::snapshot_reads: readers over a surface take the snapshot where the image took
  the usage and the split elsewhere, with Metal's bytes either way. RTX 3090 and RTX 5080
  (aliased, no feedback usage) split and pass; the Iris Xe (aliased, feedback usage) takes the
  snapshot and passes; the other snapshot_reads tests pass on all three.
- The depth/stencil case (Less depth with and without writes, a stencil test that blends each
  pixel once): every reader splits and leaves Metal's texels on the Iris Xe, the RTX 3090 and
  the RTX 5080; all 7 snapshot_reads tests pass on the RTX 5080.
- clippy plain, m2v_gpu and m2v_cpu_icd.
2026-10-19 00:16:00 +03:00
Anees Iqbal 7db879f242 Release idle pointer imports on RADV 26.2.4, and say which RADV host stack loses GPU writes
On the Radeon 780M with RADV (Mesa 26.2.4), idle pointer imports are released where they follow
their address, as on the other measured drivers; docs/HOWTO.md says which RADV host stack loses GPU
writes under memory churn.

Folds in:
- Release idle pointer imports on RADV 26.2.4 on the Radeon 780M, where they follow their address
- Say which RADV host stack loses GPU writes under memory churn

Verified by each folded change's own checks; the tree this series ends on is the one verified
at the tip on six GPUs, the CPU suites and lint (see the tables commit).
2026-10-19 00:16:00 +03:00
Anees Iqbal a97f7c2757 Keep Metal's contract for host imports and shadows: no posted deallocator, no copy back over CPU bytes
Two fast paths that broke Metal's contract are gone: the posted deallocator of a released host
import and the shadow copy back over bytes the CPU may write. A released import is freed in the
call, as Metal frees it, and a shadow merges back only the bytes the GPU changed. The notice codes
of the two retired kinds are retired too, and the runtime holds the list of every notice code ever
issued so a retired code is never reused. The keep-alive lanes wait for the keep-alive that goes
with an import's free.

Folds in:
- Free a released host import on a handler thread by default (later removed)
- Copy a shadow back over bytes the CPU may write by default (later removed)
- Remove the shadow copy back over CPU-written bytes and the posted deallocator, which broke Metal's
  contract
- Wait for a keep-alive that goes with its import's posted free in the keep-alive lanes
- Retire the codes of the two removed notice kinds, and hold every code ever issued

Verified by each folded change's own checks; the tree this series ends on is the one verified
at the tip on six GPUs, the CPU suites and lint (see the tables commit).
2026-10-19 00:16:00 +03:00
Anees Iqbal f8af954378 Emulate Metal's anisotropic filter as one routine per shape, its offset the taps' Offset operand
Metal's anisotropic filter is emulated as one routine per shape, with its calls kept where the
driver keeps them (the RTX 5080), and an anisotropic sample's texel offset reaches the routine as
the taps' Offset operand.

Folds in:
- Emulate Metal's anisotropic filter as one routine per shape, its calls kept on the RTX 5080
- Pass an anisotropic sample's texel offset to its routine as the taps' Offset operand

Verified by each folded change's own checks; the tree this series ends on is the one verified
at the tip on six GPUs, the CPU suites and lint (see the tables commit).
2026-10-19 00:16:00 +03:00
Anees Iqbal c9b0d74912 Record Vulkan commands off the encoding thread through deferred command buffers the recorder replays
Encoders log their commands into deferred command buffers, and the device's recorder thread replays
them into Vulkan once the command buffer is committed, so the encoding thread no longer calls the
driver for each command. Every recorded command goes through a slot of its device's; the recorder's
queue and the scheduler's inbox are sized for a frame's commits and grow ahead of them on the
recorder's thread; a commit's end allocates nothing; a render pass instance's secondary that nothing
executes is never replayed. The replays' commands are counted by kind, and the recorder's modules
are listed among those that may keep the device's functions.

Folds in:
- Route every command the runtime records through a slot of its device's
- List recorder/mod.rs among the modules that keep the device's functions
- List recorder/thunks.rs among the modules that keep the device's functions
- Record Vulkan commands off the encoding thread: encoders log into deferred command buffers, the
  device's recorder thread replays them once committed
- Grow the recorder's queue ahead of the commits, on the recorder's thread
- Give the scheduler's inbox and the recorder's queue room for a frame's commits from their making
- Count the commands the recorder's replays call, by kind
- Give a commit's tail log its fold's room when its encoder ends
- Never replay a render pass instance's secondary that nothing will execute
- Give new replays room to end each deferred command buffer as it is made, so a commit's end
  allocates nothing

Verified by each folded change's own checks; the tree this series ends on is the one verified
at the tip on six GPUs, the CPU suites and lint (see the tables commit).
2026-10-19 00:16:00 +03:00
Anees Iqbal f29872bd92 Sample extended-range textures as Metal does across mip levels, array layers and 3D
Extended-range textures sample as Metal does at every mip level and array layer and in 3D under no
mip filter or a nearest one. The emulated sample is one routine per shape, its constant texel offset
passed as an argument; a linear sample takes its exact sum from each tap's codes, undecoded, and its
value on the grid by a multiplication by 1/255 with an exact correction. Draws whose variant takes a
two-plane extended-range texture slot are counted.

Folds in:
- Sample extended-range textures' mip levels and array layers as Metal does
- Sample extended-range 3D textures as Metal does under no mip filter or a nearest one
- Emulate an extended-range sample as one routine per shape where the driver keeps calls, its
  constant texel offset the call's argument
- Hand a linear extended-range sample's exact sum each tap's grid steps from its codes, undecoded
- Take a linear extended-range sample's value on its grid by a multiplication by 1/255 and an exact
  correction
- Count draws whose variant takes a two-plane extended-range texture slot

Verified by each folded change's own checks; the tree this series ends on is the one verified
at the tip on six GPUs, the CPU suites and lint (see the tables commit).
2026-10-19 00:16:00 +03:00
Anees Iqbal 3bb4722d9f Release idle pointer imports where they follow their address, keep deallocator timing Metal's across rebinds and detaches, and cut host-import work
No-copy buffers and host imports now cost the kernel and the encoding thread less, and their
deallocators run in the call Metal runs them in, including when a detach races a commit.

What changes:
- Idle pointer imports. A no-copy buffer's own pointer import is releasable, as its dma-buf
  import was: while only blits read it and no pending command buffer holds it, the residency
  thread releases it after its idle window (2 s, doubling at each import again up to 64 s), and the
  next blit imports it again at the same pointer. Only where the new measured fact
  DriverFact::PointerImportsFollowTheirAddress holds (ANV 26.2.4 on the Iris Xe; lavapipe 26.0.8
  to 26.2.4): there a pointer import reads the pages mapped at its address at each submission, so
  an import again reads what the kept one would. A refused re-import fails the blit's call, typed.
- Deallocator timing. A released import hands its keep-alive and deallocators to the objects a
  command buffer still holds, so they run as that memory is freed (or parked and announced, as a
  kept import's). A committed but unsubmitted command buffer holds a blit's import objects weakly,
  so a rebind or detach before its first submission runs the deallocator in its call, as Metal
  does. A detach racing a commit on another thread runs the deallocator in one of the two calls:
  a let-go mark on the pages and the commit's hold count, both sequentially consistent, make each
  side see the other, and a commit that sees the mark replays its own command buffer at once. The
  live list re-reads a buffer's pages where a detach moved them meanwhile. HostDeallocatorDelayed
  is no longer announced for these races.
- Fewer kernel queries. A no-copy buffer asks the kernel about its mappings (PROCMAP_QUERY) only
  where it makes its own import; a rebind onto a live buffer's bytes lies in that buffer's import
  and asks nothing; /proc/self/maps stays open for the queries (reopened in a forked process).
  Three blit paths that read the caller's buffer as a read apart now read it as blits, so their
  imports stay releasable.
- Fewer rewrites and lookups. A rebind or detach rewrites only the heap slots of textures over the
  bytes it moved; host-page alias lookups visit only the length classes that hold ranges and keep
  each range's overlapping ranges; a binding and a descriptor each read where a no-copy buffer lies
  once.
- Counters (WorkCounts): host_imports_used and host_imports_read_apart (with its six reasons),
  host_imports_kept_for_fds and kept imports by cause (of_heap, rebound, pointer, no_stand_in),
  heap_slots_rewritten, host_mappings_queried (Linux; 0 elsewhere), host_range_lookups,
  host_remaps_reported, host_remaps_over_imports, host_imports_remapped, host_pointer_imports_made
  and _bytes_made, no_copy_lies_read, host_imports_rebound_unlisted, host_rebind_imports_made and
  _covered.
- Docs: docs/HOWTO.md on both kinds of release, the RLIMIT_NOFILE soft limit a program raises
  itself and the new gauges; a FAST-PATHS known gap that a buffer made before a remap reads the new
  pages on drivers whose pointer imports follow their address, where Metal keeps the old ones
  (HostMemory::new's contract forbids such a remap); the rustdoc of host_range_remapped.

Why: ANV over i915 lists every VkDeviceMemory in every execbuffer, and a pointer import costs about
0.19 us an execbuffer; the consumer's guest keeps hundreds of no-copy buffers live and uses few in
a frame. Its swap thread spent 1.54 ms of kernel time a frame querying mappings of a buffer that
joined a live import. And a released import's deallocator unmapped pages under a live userptr,
losing the device.

Verified:
- Iris Xe, a guest-shaped lane of 520 pointer imports and 43 command buffers a frame, the idle
  ones released: objects per execbuffer 536 -> 51, ioctl 4.24-4.31 -> 0.85-1.09 ms a frame,
  scheduler CPU 4.96-5.05 -> 1.33-1.74 ms a frame, frame p50 5.27-5.43 -> 2.70-3.11 ms.
- The fact, probed outside the runtime on the Iris Xe and through tests::pointer_residency on it
  and lavapipe: a kept import read the pages a remap put at its address.
- The detach race on the Iris Xe and RTX 5080 under the validation layer: without the fix 3 of 3
  runs failed (deallocators late or on another thread); with it 12 of 12 runs, 15,360 races, each
  deallocator in the detach or the commit, never late.
- A second no-copy buffer over 2040 scattered mappings: 415-418 us -> 0.3-0.6 us. A rebind with
  1024 other live textures: 4766 -> 49 us. Alias lookups: a draw -5.3% instructions on host-page
  frames (RX 7900 XTX).
- Device and unit tests: freed_memory, pointer_residency, host_residency, blit_holds,
  encoder_holds, host_import_counts, host_aliases (up to 45 passed per run); lanes rebinds,
  rebind_reach, detach, detach_textures, host_memory, no_copy_heaps, dma_buf_imports, draw_work
  (74 passed on lavapipe, 30 on the Iris Xe for the deallocator fixes). clippy -D warnings (plain,
  m2v_gpu, m2v_cpu_icd) and rustdoc.
2026-10-19 00:16:00 +03:00
Anees Iqbal f514cb9a7d Cut shadowed textures' copies to what their commands touch, merge back every buffer another writer may write, and count copies by cause
A texture over a buffer's bytes or another image whose own image is a shadow now copies in, keeps,
merges and copies back only the texels its commands reach, with fewer barriers, descriptor pools
and scratch fills, and merges its writes back wherever another writer may write the bytes during
the run.

What changes:
- Which shadows merge. A shadow merges back (kept before the first command that writes through
  it, only the words its commands changed reaching the bytes) over every buffer's bytes but a
  tracked Private or Memoryless buffer the runtime made: Shared buffers and host pages as before,
  and now Managed buffers (on unified memory the CPU writes the GPU's memory, and without it a
  later upload may run on another queue) and untracked buffers another queue may write. A tracked
  Private buffer's shadow, a command replacing every texel, an image's shadow, and turned and
  two-plane textures still copy back. A merge goes in place wherever the texture's first and last
  words lie in the buffer and the bytes lie in pages; only a first byte inside a word, a staging
  buffer or a last word past the buffer still merges through a copy, a new FAST-PATHS known gap
  since that round trip can undo another writer's write between its copies.
- Correct merges. A command that replaces every texel followed by one that writes part of it is
  copied back before the keep, so the merge carries the later writes. A merge of a part leaves a
  twin stale there alone. A detached buffer's shadow binds no stand-in (the null handle while
  detached), so no merge binds a range past a 256-byte stand-in.
- Cut copies. A read inside a rectangle keeps the rest of the changed rectangle for the next read;
  an image's one-level, one-slice shadow cuts its copies in as a buffer texture's do; a keep and
  merge are cut to the rectangle the encoder's commands write in, in bands within the device's
  limits; a loaded shadowed colour's copies are cut to its draws' scissors also in passes that
  clear another attachment or take a reach clear (Vulkan's scissor test leaves coverage outside
  at 0).
- Cheaper copies. On ANV (DriverFact::ShadowCopyBackDispatchFaster, now every ANV device measured)
  a merge's keep and changed copy are the copy back's dispatch, and a cut merge reads the changed
  texels straight from the shadow's integer view (bind::shadow_merge_image_module), with no copy
  after the commands. On the UHD 770 (new DriverFact::ShadowCopyInDispatchFaster) a merged
  shadow's copy in and its keep are one dispatch (bind::shadow_copy_in_module), its 4-byte view
  R8G8B8A8_UINT because ANV drops a storage image's compression for an R32 view. The shadow
  kernels take a bind::ShadowTexelView. A cut merge's scratch is kept for the next merges and not
  zeroed. The shadow kernels and a linear attachment's merge push their descriptors where the
  device pushes set 0, so a shadowed pass makes no descriptor pool. A run of shadow copies in an
  unordered encoder shares one barrier before and one after, keeping a barrier only between copies
  that touch the same memory and one writes.
- Counters (WorkCounts): every copy in by why it is made and by what holds the texture's truth,
  first copies apart (shadow_texels_first_copied_in_*, shadow_texels_recopied_*,
  shadow_texels_copied_in_images, shadow_texels_bounded_copied_in), shadow_texels_kept,
  shadow_merge_copies_dispatched, shadow_merges_fetched, shadow_copies_in_dispatched,
  shadow_merge_scratches_reused and _zeroed, owned_descriptor_pools, how passes take shadowed
  colours (shadow_attachment_loads_*, _clears, _clears_in_part), shadows_sharing_truth, and the
  tiles a loaded colour's scissors cover against their bounds.
- Docs: shadow.rs and shadow_merge.rs module rules, API.md's shadow entries, FAST-PATHS' costs of
  matching Metal and known gaps; the snapshot rule's figure is now an upper bound.

Why: Metal writes only the texels a command writes, and another writer may write bytes no command
touches during a run. On an M3 Max under macOS 27.0.1, a fill of an untracked Private buffer from
a second queue ran inside a first queue's kernel or render pass 5 times of 6 and both texels kept
their writes, as did a CPU write to a Managed buffer; a tracked Private buffer's fill always ran
after. And in the consumer's Finder drag on the Iris Xe, whole 1080p shadow copies were most of
the composite command buffers' GPU time.

Verified:
- Iris Xe, four shadowed textures a frame over anonymous pages, commit to completion: merged passes
  that draw 11.7-11.8 ms -> 5.0-5.4 ms and scissored ones 11.3-11.4 -> 3.6-3.9 ms across the
  dispatched copies, cut keeps and fetched merges; a 1080p Load pass's GPU time 4572 -> 3484 us
  with the fetched merge.
- UHD 770: a 1080p Load/Store pass 2390 -> 1683 us GPU with the fetched merge; a 1080p Load pass
  1.64-1.67 -> 1.43 ms with the fused copy in; the kept scratch took a 1080p Load pass 4205-4755 ->
  2626-3595 us commit to completion (RX 7900 XTX 4112-4392 -> 1628-1697 us). Shared barriers saved
  about 0.65 us of GPU time per barrier removed on the Iris Xe (680 -> 120 barriers a frame).
- runtime_lane::pitched_surfaces 28 of 28 on the UHD 770, Iris Xe, Radeon 780M, RX 7900 XTX and
  lavapipe, with merges under changing scissors, split instances and two textures over one buffer
  matching a private texture's bytes; under synchronization validation with no message. The shadow
  lanes 123 to 132 of 123 to 132 on the M3 Max, lavapipe, Iris Xe and RADV; extended_range_blends,
  linear_attachments and padded_loads on the RTX 5080 with no validation message.
- Unit tests: tests::shadow (24), clear_reach, owned_pushes, shadow kernels through all four views
  on the CPU interpreter, driver_facts. clippy -D warnings (plain, m2v_gpu, m2v_cpu_icd), rustdoc.
2026-10-19 00:16:00 +03:00
Anees Iqbal ca8340b4ee Group ready batches into one kernel submission on Mesa's drivers, and order a queue's batches by their ends
On ANV over i915 every kernel submission lists every VkDeviceMemory of the device, at a cost per
object; the consumer's guest drag on the Iris Xe had 302 entries per execbuffer (260 of them host
imports) at 112 to 128 execbuffers a frame. The runtime now makes fewer kernel submissions and
fewer command buffers per frame, under two new runtime policies.

What changes:
- DevicePolicy::completion, CompletionPolicy { Grouped (default), Exact }; exact_answers()
  selects Exact. Under Grouped, on a driver whose queue merges consecutive submits (Mesa's common
  queue: ANV, RADV, lavapipe, NVK and the rest), the scheduler holds ready batches of one VkQueue
  and submits up to four in one vkQueueSubmit, only the last signalling, so Mesa merges them into
  one kernel submission:
  - a batch whose only signals are events' joins, the group's end signalling each event to the
    highest index held; a batch waiting for a signal the group holds sends the group first;
  - only a group's first member may wait for anything not yet seen complete, since Mesa gathers
    every member's waits before the first member's commands; a later waiter goes alone after the
    group in the same call. Metal never holds one command buffer back for another's wait;
  - batches that cannot join (first work, binary semaphores, fences, sparse updates, wrapped
    images, storage-form switches) submit the held group first;
  - a pass that finds nothing ready keeps the group held while two or more earlier submissions of
    its queue are not seen complete, gated on the second-to-last, so commits arriving meanwhile
    join. It goes once full, when a head waits for the GPU, or when a thread waits for one of its
    command buffers;
  - a held batch that ends its command buffer turns Scheduled, takes its kernel end time and runs
    its submission handlers as it is held, so waitUntilScheduled returns at once, as Metal
    schedules a command buffer committed behind running work within 0.2 ms;
  - submission checks run ahead for up to three batches behind a line's head, so checked command
    buffers are found ready together; a failed group restores its waits, signals its last value
    and fails each member once; the group's submission allocates nothing.
  New degradation kind grouped-completion (Precision), announced once per device: a group's
  members but the last are seen complete late, by at most three later batches' GPU time plus one
  completion turn, and intermediate event values are seen late, never wrong.
- An event-signalling batch's end goes into its work's last command buffer, as every other batch's,
  unless its signal must wait for another queue's earlier signal.
- DevicePolicy::batch_order, BatchOrderPolicy { Ends (default), Exact }; exact_answers() selects
  Exact. On ANV, RADV and NVIDIA's driver, measured to run a queue's submissions one after another,
  each batch ends with a barrier to every later command of its queue, the tracker takes an earlier
  batch of that queue as ordered (no barrier per dependency), and a batch's start timestamp with
  nothing planned before it is written at the bottom of the pipe. Other drivers and Exact keep the
  barriers per dependency.
- WorkCounts: grouped_submissions, batches_grouped, group_ends_full / _wait / _apart /
  _first_work / _drained / _checks / _held, event_waits_met, batches_with_none_pending and kin by
  pending depth, groups_kept_pending and groups_sent_for_waits; frame_costs prints them, with
  kernel submissions and ioctl time where the i915 execbuffer script is loaded, and gains guest-
  shaped legs over 260 and 520 host imports.
- Docs: FAST-PATHS rows for both policies (the grouping row with the guest's frame rates), API.md
  entries, add_submission_handler's doc, the runtime README and the scheduler modules' docs.

Why: each fewer kernel submission saves the scheduler thread an ioctl of about 80 to 130 us there,
and each barrier per dependency buys nothing on drivers that run a queue's submissions in order.
The bound of four was kept: eight measured about three fewer submissions a frame for twice the
completion lateness and no frame-time change.

Verified:
- Iris Xe, guest shape over 520 host imports, Grouped against Exact: 26.2-26.7 execbuffers a frame
  against 67.0, ioctl 2.77-2.81 against 6.89-6.96 ms, scheduler 52-53 against 122-123 us per
  command buffer, through completion 5.98 against 8.70 ms a frame.
- UHD 770, the held group at a 1 ms commit pace: 25.0 kernel submissions a frame against 58.1,
  scheduler 67-82 against 113-124 us per command buffer, the same frame time and GPU idle;
  completion seen 1.82-1.86 ms after GPU end against 0.43-0.46 ms.
- In the guest on the Iris Xe, Grouped made 24.4-27.5 kernel submissions a frame against Exact's
  42.4-43.8 and saved 0.4-1.7 ms of scheduler CPU a frame; the frame rate was alike within
  boot-to-boot noise (15.7-17.3 against 16.4-17.6 fps).
- runtime_lane::grouped_submissions (held signals on one and two queues, waiters leading, groups
  held behind running work with and without submission handlers and checks, both policies, the
  validation layer silent): 19 of 19 on ANV and lavapipe; the held-handler case fails without its
  change. commit_work, gpu_times, grouped_submissions, queue_order, events and first-use lanes 77 of
  77 on the Radeon 780M, RX 7900 XTX and RTX 5080; under synchronization validation 34 of 34 on
  the UHD 770. The runtime's device tests 1066 of 1066 on ANV; the unit suites 4534 of 4534.
- clippy -D warnings (plain, m2v_gpu, m2v_cpu_icd) and rustdoc.
2026-10-19 00:16:00 +03:00
Anees Iqbal 2b97fc1cf0 Render packed 16-bit, 8-bit sRGB and RGB9E5 attachments the device cannot render through integer views of their words
The RTX 5080 samples A1BGR5Unorm, ABGR4Unorm (and every other 16-bit packed order), R8Unorm_sRGB,
RG8Unorm_sRGB and RGB9E5Float but renders none of them, and lavapipe renders neither 8-bit sRGB
format. A render target, clear or draw of such a texture was refused as the device lacking the
format, which ends the guest of any app that renders to one. They now render through an R8_UINT,
R16_UINT or R32_UINT view of the same bits, the fragment function writing Metal's word.

What changes:
- metal::format::WordAttachment (public, with WordField): a format's fields in its word (packed
  16-bit layouts named from the least significant bit, Srgb8, Rgb9e5). WordAttachment::of holds
  where the device samples the format (or its UNORM twin), does not render it, and renders the
  word's integer format: derived from format features alone, on every driver.
- Translator: LoweringInputs::word_colors names such attachments. The fragment output to one is
  declared as a uint and each return stores Metal's word: a packed channel h(x) to nearest even,
  NaN 0, clamped to [0, 1], times the maximum code, rounded to even; an sRGB channel through
  Metal's twelve-bit table; RGB9E5 by the truncating kernel-write rule (shared with the storage
  write, lower::texture::rgb9e5_word). The cache codec carries the new fields.
- Partial write masks and blends:
  - in the pixel interlock (where the device orders fetch through it alone), a packed 16-bit or
    8-bit sRGB word's partial mask merges the kept fields from the word read first;
  - a packed 16-bit word's blend other than One/Zero decodes each code as Metal's blend reads
    it, h(c / m), blends in half as the 8-bit unorm blend does and encodes Metal's word. Metal's
    tile holds a pass's earlier result finer than the codes, so this is a near-equivalent within
    one code, recorded as PrecisionNote::DeviceColorConversion and announced; the exact form (the
    extended-range half shadow taken by word attachments) is a FAST-PATHS "not built yet" row;
  - where fetch reads rasterization-order input attachments (lavapipe), an 8-bit sRGB word's
    partial mask merges over its input attachment (new RuntimeFact::WordInputMerge), per sample in
    a multisampled pipeline.
- Runtime: the texture's image keeps its own format, sampled and blitted natively, made mutable
  with extended usage and the word view listed; the pass's attachment is the view; a pass clear
  writes the word of Metal's clear.
- New degradation kind shared-exponent-kept (Precision): Metal's tile store normalizes a loaded
  RGB9E5 word whose largest mantissa is below 256 in each tile a draw reaches, which a Vulkan pass
  keeps; announced at each such draw, with a FAST-PATHS row.
- DeviceColorConversion's rustdoc states that Metal blends a packed 16-bit attachment against its
  tile's finer values within a pass.
- Still refused, recorded as FAST-PATHS known gaps: colour inputs and resolves of word
  attachments, blended or fetched sRGB words, an output of fewer than four lanes for a blended
  packed word, RGB9E5 half outputs, blends, masks, inputs and resolves.
- New owned fixture engine/wm_samples and runtime_lane::word_samples for the multisampled merge.

Why: these formats are Metal render targets the guest uses, and the device holds and samples them;
only rendering them directly is missing.

Metal's rules, measured with plain Metal on the M3 Max under macOS 27.0.1: 65,536 float4 and half4
outputs and 4,096 clear colours per packed format, 0 texels off the rule; a One/Zero blend stores
the same bytes; the blend sweep (2,891 states, 8,192 random pixels, four packed formats, half and
float, fast and safe maths) gave Metal's code in every channel without fast maths and within one
code under it; within a pass Metal's tile holds a packed attachment finer than its codes (blends
in one pass follow the unrounded value, across two passes the stored codes); RGB9E5 draws and
clears 65,536 of each, 0 off.

Verified:
- Translator and runtime unit filters on gem10: 162 of 162 and 258 of 258 (word attachments),
  394 (partial masks in the interlock), 370 and 422 (blends, including 864 words the M3 stored
  checked on the interpreter), 538 (sRGB and RGB9E5 words), 38 and 108 (input-attachment merge).
- On lavapipe: runtime_lane::color_writes 5 passed, RG8UnormSRGB under the red mask 0 of 107,814
  channels off where it was refused before; word_samples, 64 texels of 4 samples merged, the edge
  texels keeping both greens; public_fixtures_engine with the new rows.
- clippy -D warnings (plain, m2v_gpu, m2v_cpu_icd) and rustdoc.
2026-10-19 00:15:59 +03:00
Anees Iqbal 697c55d514 Announce a loaded snorm or RGB9E5 attachment's kept codes, and store them as Metal's tile store does under TileStorePolicy::Exact
Metal's pass, once it draws, writes each 32x32 tile a draw reaches back through its texels'
values: a signed normalized channel's minimum code (-128, -32768) reads as -1.0 and is stored as
the code above it, and an RGB9E5Float word whose largest mantissa is below 256 under an exponent
above 0 is stored normalized. A Vulkan pass's load and store keep those bytes.

What changes:
- New degradation kind snorm-minimum-kept (Precision), announced at every draw and indirect
  execution in a pass that loads a single-sampled R8, RG8, RGBA8, R16, RG16 or RGBA16 Snorm colour
  attachment and keeps it, naming each such attachment. It joins shared-exponent-kept for RGB9E5.
- New DevicePolicy::tile_store, TileStorePolicy { Device (default), Exact }; exact_answers()
  selects Exact. It is the runtime's choice alone and keys no profile. Under Exact the load pass
  that already rewrites extended-range, padded and bfloat attachments also takes a single-sampled
  snorm or RGB9E5Float attachment in the tiles the pass's draws reach, with two new
  bind::unused_bits_module rules (SnormMinimum, SharedExponent; the module is keyed by
  PixelFormat), and nothing is announced. An attachment the load pass cannot take keeps the
  device's load and store, announced.
- New answer fact DriverFact::TileStoreIsMetals for MoltenVK 1.4.1 on Apple's GPUs: its render
  pass is a Metal render pass, so its tile store is Metal's for both kinds. There neither value
  adds a load pass or a notice.
- Docs: one FAST-PATHS row for the switch, its cost the load pass's measured GPU time; a known gap
  for lavapipe, which states no blend for any snorm format, so a blending snorm pipeline is
  refused there; API.md's policy bullet and catalogue entries; the unreached-tiles-rewritten text.

Why: a code no Metal write leaves, but uploaded or copied bytes may hold, reads back differently
after a drawing pass. The exact form costs a copy of the render area through a dispatch before
every such pass, so the device's store stays the default, announced, and Metal's store is a
switch away.

Verified:
- Metal's behaviour probed on an M3 Max under macOS 27.0.1 (70x40 targets of five snorm formats):
  a pass that draws nothing moves no code; a tiny triangle moves every minimum code of its first
  32x32 tile and none elsewhere; a blended full-target draw moves all of them; a blit there and
  back moves none. The guest's sweep showed the same on R8Snorm and RG8Snorm.
- Unit tests: unused_bits (both rules against CPU models over every code, the M3's example
  RGB9E5 word, the masked-tile rewrite), fast_paths (the row, no profile key), driver_facts,
  api_surface, owned_divisions: 38 passed on gem10.
- runtime_lane::snorm_tile_store under Device and Exact for both kinds, asserting load-pass
  counts, bytes and notices: on lavapipe with padded_loads, extended_range_blends and the notice
  site check, 15 passed (Exact took the load pass, Device announced); on the M3 Max under
  MoltenVK 1.4.1, 4 passed through the fact (no load pass, no notice) and 11 more beside them.
- The load pass's cost (FAST-PATHS): on the Radeon 780M, a 1080p pass per frame of BGRA10_XR
  1958.8 us against RGBA16Float's 135.3 us; the snorm and RGB9E5 cases take the same pass, not
  timed alone.
- clippy -D warnings (plain, m2v_gpu, m2v_cpu_icd) and rustdoc.
2026-10-19 00:15:59 +03:00
Anees Iqbal 25e4162cf6 Write, sample and resolve 8-bit sRGB and RGB9E5 textures through UNORM or integer views with Metal's codes
Where a device cannot store, sample or render an 8-bit sRGB or shared-exponent format directly,
the texture now goes through a view of a format the device does handle, and the shader applies
Metal's own encode or decode. Before, these textures were refused or read wrong values with no
notice.

What changes:
- Storage. An R8Unorm_sRGB or RG8Unorm_sRGB storage texture on a device without sRGB storage (the
  RTX 5080) writes through its R8_UNORM or R8G8_UNORM view with Metal's sRGB encode, and a
  read_write read decodes through Metal's table, as RGBA8Unorm_sRGB already did. The sRGB format
  stays the image's own wherever the device holds it, so the texture keeps its render-target
  usage; the UNORM twin is the image's format only where the device holds no sRGB image at all.
  A BGRA8Unorm_sRGB storage texture whose twin needs storage access without a format (ARL,
  Pascal, ANV on the Iris Xe for read_write) falls back to an Rgba8 view that encodes, then swaps
  red and blue (StorageImageClass::SrgbEncodeBgra).
- Shared exponent. An RGB9E5Float storage slot takes a new class, SharedExponentBits, on every
  device: an R32_UINT view whose word the shader computes in integer arithmetic with Metal's
  truncating encode, since Vulkan's conversion rounds each mantissa up where Metal truncates.
- Sampling. A device that samples an sRGB format's UNORM twin but not the format (the RTX 5080
  with RG8Unorm_sRGB) samples the twin, and the function decodes with Metal's table (a new
  srgb_twins variant set), announced SrgbTexelDecode. A swizzle that moves alpha into a colour
  channel, or a colour into alpha, decodes before swizzling. A float gather decodes by Metal's
  table on every device without Metal's own sampler unit. Under SamplingPolicy::Exact a runtime
  sampler's one-texel sample reads the slot's raw view and decodes its code through Metal's table.
  Device::pixel_format_capabilities answers Filter for such a texture by the twin's filter.
- Resolves. The exact shader resolve of an 8-bit sRGB attachment reads its samples and writes its
  result through views in the UNORM twin, so codes move as an 8-bit unorm channel's do, with no
  midpoint or linear-value table. The stored codes are unchanged.
- Docs: the FAST-PATHS native sRGB row covers the twin's filtered sample (exact for one texel and
  adjacent codes, up to 0.286 off between codes 0 and 255); known gaps scope a runtime sampler's
  nearest sample under native sampling.

Why: the consumer's guest on the RTX 5080 refused kernel writes to these formats and pipelines
sampling them, and an in-guest comparison under exact sampling showed BC sRGB cells off.

Metal's rules, probed on the M3 Max under macOS 27.0.1: an sRGB write clamps to [0, 1], scales by
4095 to nearest even and stores the largest code whose table step is at most that index, alpha
x255 to nearest even; a read is step / 4095. An RGB9E5 write clamps each channel to [0, 65408],
takes the exponent of the largest and truncates each mantissa; 0 of 65,536 float and 65,536 half
texels off, and every read exact.

Verified:
- New lane runtime_lane::shared_exponent_storage, and srgb_storage widened to R8 and RG8 and to a
  device without storage access without a format (lavapipe), against Metal's bytes.
- On the Iris Xe (ANV): runtime_lane::resolve_rounding 5 passed, 0 channels off Metal's rule for
  every closed format at 2 and 4 samples, sRGB included; the runtime's own BGRA8UnormSRGB 4x
  resolve at 1080p went from about 2.2x an RGBA8Unorm resolve's GPU time to about the same
  (2138 -> 1635 us for the write side alone, edge-dense 4193 -> 2638 us).
- Translator unit filters on gem10: 42 of 42 (shared exponent, image plans, storage choices), 58
  of 58 (sRGB raw, fast paths, the sRGB filter), 251 (sRGB, linear and sampler, the raw one-texel
  sample tests among them, which fail without the change), bind::color_resolve 25 passed; runtime
  image_plan 31 of 31.
- clippy -D warnings (plain, m2v_gpu, m2v_cpu_icd) and rustdoc.
2026-10-19 00:15:59 +03:00