Expect the served blit out of a plane whose GPU rows share bytes
One work packet, landed as 8 commits (8f359821ba..742b94ac06 on archive/development-linear-2026-10-28), in order: * Expect the served blit out of a plane whose GPU rows share bytesb31e26710bserves copyFromTexture:toBuffer: out of an IOSurface plane whose GPU rows share bytes (a read settles no row order; Metal's own copy reads each row at its GPU pitch, probes/overlapping_plane_row_reads.m), and keeps the copy into such a plane refused. Its commit and docs/REFUSALS.md dropped the read's OverlappingSurfaceRows site, but the announcement lane an_iosurface_plane_whose_gpu_rows_share_bytes_is_announced still expected the read to be refused, so it failed on every device since. The lane now holds the served read (each buffer row at its own GPU row, the bytes a_blit_out_of_a_plane_whose_gpu_rows_share_bytes_reads_each_row_at_its_own_pitch holds over more shapes), that it announces nothing of its own, and that the copy into the plane stays refused OverlappingSurfaceRows. Verified: the test passes on MoltenVK 1.4.2 (Apple M3 Max, --cfg m2v_gpu, under maclock and memcap); clippy -D warnings clean, plain and --cfg m2v_gpu. * Count the packed 10-bit pair among the heap footprints answered with no image8016e80f42moved R10Unorm_PACKED and RG10Unorm_PACKED from Metal's nil to this crate's own NotImplemented(Format) gap for a placement heap's new_texture_at_offset (plain Metal's placement heap makes a texture of either), and their 0 bytes at 16 joined the "no image" arm of shared_heap_textures_are_made_or_refused_for_linear_tiling. The arm pushes every format it takes, but the closing count still left the NoTexture shape out, so the lane counted 128 answers against 120 on every device: a stale count, not a product regression. The count now takes every format whose footprint the product's table decides, the NoTexture pair included. Verified: the test passes on MoltenVK 1.4.2 (Apple M3 Max, --cfg m2v_gpu, under maclock and memcap; 128 answered a footprint with no image); clippy -D warnings clean, plain and --cfg m2v_gpu. * Hand a refused self-check's driver errors to the sink as one informational line The device's self-check of a set-0 buffer binding of several variables as a dynamic descriptor (20b73503c0, takes_multi_variable_dynamic) creates one pipeline the driver may refuse: that refusal is the answer the runtime asked for. MoltenVK 1.4.2 refuses it and reports two errors through the debug messenger inside the creation (the Metal SPIRV-Cross wrote that does not compile, and the failed pipeline), and those reached the device's message sink as errors of the program's work. Every validation lane whose kernel has such a binding then failed its layer claim on MoltenVK: kept_variants::the_least_recently_released_variants_go_first failed on them after spse_write_barrier (a-thread-reads-its-own-write-after-a-texture- barrier-without-sparseness) made the device ask. Now the self-check holds what the driver reports inside its creation (device::compiles::holding, nestable, and keeping what a relay thread held for a holding asking thread). A creation that succeeds hands those messages on as before; one that fails hands the sink one Info line, metal2vulkan-self-check-refused, with the driver's result and each message's id name and text, in place of them. A creation that reported nothing says nothing. RUNTIME_VERSION 1668 (what a device's sink hears changed); the runtime sources re-pinned. docs/API.md names the line. The lane now also prints why it skipped each selected case (KEPT skipped): it skipped them silently, so a run without llvm-as or with any other mapping failure read "0 against 64" with no cause. Verified on MoltenVK 1.4.2 (Apple M3 Max, --cfg m2v_gpu, under maclock and memcap): before, the lane failed on the two mvk-error messages; after, it passes, and the new runtime test tests::dynamic_multi_variable::a_refused_self_check_reaches_the_sink_as_one_informational_line passes with its DYNMULTI line showing the device answered no and its sink heard one metal2vulkan-self-check-refused line carrying 2 messages and no error; the other four dynamic_multi_variable tests pass. clippy -D warnings clean, plain and --cfg m2v_gpu; rustdoc -D warnings clean for the runtime; the runtime pin guard passes. * Hold the ASTC heap lanes to the size query that answers Metal's modelf7d857ec55made a heap texture the device holds in an ASTC carrier with a decoded twin answer heapTextureSizeAndAlignWithDescriptor: with Metal's model of its blocks while its making stays refused NotImplemented(DecodedHeapTexture) (the twin would decode what the heap's bytes held). Three lanes still expected the query refused too, and failed on every device without ASTC (lavapipe) since: - astc_textures_the_runtime_does_not_hold_are_refused asserted the query's refusal, where its own doc already said the device answers the size; it now holds the answer to Metal's model (metal_heap_texture_size_and_align) and the making's refusal; - a_host_heap_s_block_compressed_texture_lies_as_metal_lays_it_out took the refusal at the query only; it now takes it from the making, the query having answered; - shared_heap_textures_are_made_or_refused_for_linear_tiling panicked on a query that answers and a making refused; it now takes that pair for a format the device holds decoded (astc_textures::decodes_astc), holds the answer to Metal's model, and prints a HEAPTEX shared decoded line for each. Verified on lavapipe (Mesa 26.0.8, the gate container, --cfg m2v_cpu_icd): the three pass, the lines naming each refused ASTC texture; on MoltenVK 1.4.2 (Apple M3 Max, --cfg m2v_gpu, maclock and memcap), where the device holds ASTC, the three pass. clippy -D warnings clean under --cfg m2v_gpu. * Say where a directory's mode bits do not bind the cache refusal lane an_entry_that_cannot_be_written_is_announced_and_ends_nothing makes the shader cache's build directory unwritable with mode 0o500 and expects the entries refused. The Linux gate's container runs as root, which the mode bits do not bind, so every entry was written and the lane failed there on every run (writes 2, write_failures 0). The lane now writes a file of its own into the directory first; where that goes through it prints CACHE-UNWRITABLE and holds nothing, instead of failing on an environment where nothing can be refused, and elsewhere it runs as before. Verified: on lavapipe in the container it prints CACHE-UNWRITABLE and passes; on MoltenVK 1.4.2 (Apple M3 Max, not root) it runs the whole check and passes. clippy -D warnings clean under --cfg m2v_gpu. * Expect a heap texture's tiled shadow where the device makes one Two resource_ids lanes expected heap-texture-untiled-layout for a Private heap's texture on any driver without ColorImagesLieAsMetalHeapTextures. On lavapipe the runtime makes that texture a shadow of its elements in Metal's tiles in the heap's bytes (AliasRoute::Tiled, texture/heap.rs): it lies as Metal lays it out, announces shadowed-texture (and unnamed-shadowed-texture where a command reaches it through its ID alone) and no untiled layout. So a_texture_made_in_a_used_heap_after_a_dispatch_is_reached and a_heap_s_token_drops_at_its_release_whatever_keeps_its_textures_images failed there (not announced: HeapTextureUntiledLayout). heap_texture_kinds now takes whether the making moved WorkCounts::heap_textures_tiled; where it did it expects that shadow (and the larger-than-Metal kind as before), else the route and layout kinds as before. Verified on lavapipe (the gate container, --cfg m2v_cpu_icd) and on MoltenVK 1.4.2 (Apple M3 Max, --cfg m2v_gpu, maclock and memcap): both pass. clippy -D warnings clean under --cfg m2v_gpu. * Bump RUNTIME_VERSION past the mipmap change's 1668 The refused self-check's sink line (3c840cbc3a) changes the runtime, and the mipmap change took 1668 on development first; both branches set 1668, which merged silently. * 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.
This commit is contained in:
1 parent
a3c550ca33
commit
3501e41448
14 files changed
+275
-61
No files matched your search
+6
-1
@@ -1194,7 +1194,12 @@ Whatever the variables, a placement heap's `newTextureWithDescriptor:offset:` th
|
||||
`metal2vulkan-heap-texture-refused`, `Info` severity): the descriptor, the offset, the heap's size,
|
||||
options and memory, the size and alignment the size query answers the descriptor, what the making
|
||||
planned (the size and alignment it places the texture by, its image's route, tiling and memory
|
||||
requirements) and the refusal. That text is for people, not a contract.
|
||||
requirements) and the refusal. A device's self-check that the driver does not make (the one
|
||||
pipeline it creates to ask whether a set-0 buffer binding of several variables may be a dynamic
|
||||
descriptor, `FAST-PATHS.md`) hands the sink one line saying so, with the driver's result and the
|
||||
messages it reported inside that creation (id name `metal2vulkan-self-check-refused`, `Info`
|
||||
severity), in place of those messages: they answer the runtime's own question and name none of the
|
||||
program's work (MoltenVK 1.4.2 reports two errors there). That text is for people, not a contract.
|
||||
|
||||
Each entry below gives the code, its category, the `Degradation` kind (or the `PrecisionNote`) and
|
||||
what triggers it; a runtime kind's cost follows. The kind's rustdoc states the trigger, cost and
|
||||
|
||||
Reference in new issue
Block a user