diff --git a/crates/metal2vulkan-conformance/known-gaps.tsv b/crates/metal2vulkan-conformance/known-gaps.tsv index 74c0d613d..ac4e5bae8 100644 --- a/crates/metal2vulkan-conformance/known-gaps.tsv +++ b/crates/metal2vulkan-conformance/known-gaps.tsv @@ -841,3 +841,32 @@ vertex-format-instance-step llvmpipe divergent case/MTLVertexFormatUChar3Normali vertex-format-instance-step llvmpipe divergent case/MTLVertexFormatUChar4Normalized_BGRA/rows 24 elements differ (F32), the largest difference 0.00000005960464477539063 Metal converts a normalized vertex field as `c / (2^b - 1)`, correctly rounded, and this device's fixed-function vertex input is one ULP high: at the first differing element Metal answers 0x3EFEFEFF, the nearest `float` to 127/255, and we answer 0x3EFEFF00, the next `float` up, and the site's bound is that one ULP (5.96e-8, or 2.98e-8 where the differing lanes are smaller). The translator already holds the exact form and says so in its own words: `normalized` in crates/metal2vulkan/src/lower/stage_io/fetch.rs computes the quotient through `exact_division::div_exact`'s integer sequence precisely because a device division 'may be an ULP off', so the shader's pulled fetch of these formats is correctly rounded. These rows are fetched by Vulkan's fixed-function vertex input instead (the UNORM format from crates/metal2vulkan/src/metal/vertex.rs), whose normalization is the driver's, and nothing in the compile key says the attribute was a normalized integer, so no correction is emitted after the `Input` load. The fix is the handle the narrow-float NaN rows need as well: carry the attribute's Metal format in `VertexFetch::FixedFunction` so the stage-IO plan can re-normalize exactly after the load, or pull the fetch for a normalized format on a device whose conversion is not exact. Measured on this venue; the same formats are exact on the Apple venue and on RADV, so the one-ULP conversion is this driver's and the missing correction is ours. Open: translator work, on the orchestrator's todo list. vertex-format-instance-step llvmpipe divergent case/MTLVertexFormatUChar4Normalized/rows 24 elements differ (F32), the largest difference 0.00000005960464477539063 Metal converts a normalized vertex field as `c / (2^b - 1)`, correctly rounded, and this device's fixed-function vertex input is one ULP high: at the first differing element Metal answers 0x3EFEFEFF, the nearest `float` to 127/255, and we answer 0x3EFEFF00, the next `float` up, and the site's bound is that one ULP (5.96e-8, or 2.98e-8 where the differing lanes are smaller). The translator already holds the exact form and says so in its own words: `normalized` in crates/metal2vulkan/src/lower/stage_io/fetch.rs computes the quotient through `exact_division::div_exact`'s integer sequence precisely because a device division 'may be an ULP off', so the shader's pulled fetch of these formats is correctly rounded. These rows are fetched by Vulkan's fixed-function vertex input instead (the UNORM format from crates/metal2vulkan/src/metal/vertex.rs), whose normalization is the driver's, and nothing in the compile key says the attribute was a normalized integer, so no correction is emitted after the `Input` load. The fix is the handle the narrow-float NaN rows need as well: carry the attribute's Metal format in `VertexFetch::FixedFunction` so the stage-IO plan can re-normalize exactly after the load, or pull the fetch for a normalized format on a device whose conversion is not exact. Measured on this venue; the same formats are exact on the Apple venue and on RADV, so the one-ULP conversion is this driver's and the missing correction is ours. Open: translator work, on the orchestrator's todo list. vertex-format-instance-step NVIDIA GeForce RTX 5080 Laptop GPU divergent case/MTLVertexFormatHalf4/rows 12 elements differ (F32), the largest difference NaN Metal's fixed-function vertex fetch of a narrow float canonicalizes a NaN: a `half` code and a `FloatRG11B10` field whose 5-bit exponent is all ones both reach a `float` attribute as the positive quiet NaN 0x7FC00000, payload and sign dropped (verified: this case's own recording of plain Metal on an M3 Max, macOS 27.0.1). Ours is this device's own widening, which carries the field's bits up into the payload -- 0x7FC02000 for the `half` codes and 0x7FFE0000 for the all-ones `FloatRG11B10` field, the first differing element of each of these sites. These rows are fetched by Vulkan's fixed-function vertex input, whose widening is the device's and which the module cannot reach: nothing in the compile key says the attribute's Metal format is a narrow float, so no canonicalizing select is emitted after the `Input` load. Every finite, zero, subnormal and infinite code of the same rows is bit-exact, so it is the non-finite codes alone. The fix is to carry the narrow-float encoding in `VertexFetch::FixedFunction` (a public type of the translator) so the stage-IO plan can canonicalize after the load. This venue answers the same codes RADV does, whose rows this file already carries; the row names this venue because that is where this run measured it. Open: translator work, on the orchestrator's todo list. +compute-threadgroup-simd-scratch llvmpipe divergent case/static-threadgroup-memory-length/Ok Metal 24576 (0x6000), ours 32768 (0x8000) Metal's compute pipeline state answers `staticThreadgroupMemoryLength` 24576 -- the fixture's own 24 KiB `threadgroup` array -- and we answer 32768 on this venue. This getter is the one the case compares precisely because it is the SHADER's own number and so the same wherever the shader is compiled, which this case's module docs state outright, so unlike the threadgroup-size facts beside it this is not a device limit: it is a number of ours that is not Metal's. The cause is deliberate and is in one place: on a device that emulates simdgroups the reported length is `fixed + ceil(max/32) * per_simdgroup` (crates/metal2vulkan/src/pipeline/compile/api.rs, the `static_bytes` match), which folds the emulated simdgroup scratch into the public getter so that, as the comment there says, any `[[threadgroup(n)]]` lengths that fit beside the reported length fit every threadgroup up to the maximum. The fix is to unfold the two uses: answer the kernel's own `static_threadgroup_bytes` from the getter and keep the scratch in the planner's budget, which already carries it as `RuntimeFact::SimdgroupEmulation{bytes_per_simdgroup, arena}` and already refuses a kernel whose arena and one simdgroup's scratch exceed `maxComputeSharedMemorySize` (crates/metal2vulkan/src/lower/simd/workgroup.rs's `check`). What that costs is that a dispatch whose dynamic lengths fit beside Metal's 24576 but not beside the real 32768 must be refused or re-planned rather than silently prevented by an inflated getter, and whether every such dispatch is reachable through the planner's existing check is NOT established here. Open: translator work, on the orchestrator's todo list. +host-page-writes-kernel-store-read-only llvmpipe divergent case/bytes-in-a-later-command-buffer-bytes 256 elements differ (U8), the largest difference 171 Metal DROPS what a shader or the blit engine writes into memory whose backing is read-only, silently and with no error, and we land the write. Metal's rule is measured, not assumed: `probes/readonly_gpu_writes.m` ran eleven shapes on an Apple M3 Max under macOS 27.0.1, one shape a process, eight runs a shape, each against a writable twin of the same program, and a kernel's stores and a pass's visibility result both complete with no error while neither a later command buffer nor the CPU sees any of it -- the writable twin landing its write in all three places is what makes 'dropped' a measurement. The two read-only states agree: bit 24 of `MTLResourceOptions` (what this case states, `ResourceOptions::PRIVATE_BIT`) and the production SPI pair `detachBacking` plus `replaceBackingWithRanges:readOnly:YES` answer alike on all ten shapes measurable under both. The owner's standing rule is that where Metal drops such a write we drop it too, on EVERY driver, with no refusal. We do it on macOS alone: crates/metal2vulkan-runtime/src/read_only_view.rs imports the pages through a read-only view of them (`mach_vm_remap` then `mprotect`), and `VIEWS_DROP_WRITES` is `cfg!(target_os = "macos")`, so on a Linux driver the import is of the caller's own pages, the GPU's writes reach them, and the difference is announced as `Degradation::PrivateResourceOption`. The announcement is not a justification here: the case declares nothing of it and the bytes differ. What the exact form is on a Linux driver is NOT established -- the module's own measurement is that those drivers pin imported pages for writing and refuse or fault on read-only ones (`host_memory.rs`), so the read-only-view trick does not carry over -- and finding one is the work this row waits on. The read taken in the SAME command buffer is exact here, which is the module's recorded reading that a dropped write may be read back from the GPU's caches and is not a contract; the two sites that move are the later command buffer's read and the CPU's. Open: runtime work, on the orchestrator's todo list. +host-page-writes-kernel-store-read-only llvmpipe divergent case/bytes-the-cpu-reads-bytes 256 elements differ (U8), the largest difference 171 Metal DROPS what a shader or the blit engine writes into memory whose backing is read-only, silently and with no error, and we land the write. Metal's rule is measured, not assumed: `probes/readonly_gpu_writes.m` ran eleven shapes on an Apple M3 Max under macOS 27.0.1, one shape a process, eight runs a shape, each against a writable twin of the same program, and a kernel's stores and a pass's visibility result both complete with no error while neither a later command buffer nor the CPU sees any of it -- the writable twin landing its write in all three places is what makes 'dropped' a measurement. The two read-only states agree: bit 24 of `MTLResourceOptions` (what this case states, `ResourceOptions::PRIVATE_BIT`) and the production SPI pair `detachBacking` plus `replaceBackingWithRanges:readOnly:YES` answer alike on all ten shapes measurable under both. The owner's standing rule is that where Metal drops such a write we drop it too, on EVERY driver, with no refusal. We do it on macOS alone: crates/metal2vulkan-runtime/src/read_only_view.rs imports the pages through a read-only view of them (`mach_vm_remap` then `mprotect`), and `VIEWS_DROP_WRITES` is `cfg!(target_os = "macos")`, so on a Linux driver the import is of the caller's own pages, the GPU's writes reach them, and the difference is announced as `Degradation::PrivateResourceOption`. The announcement is not a justification here: the case declares nothing of it and the bytes differ. What the exact form is on a Linux driver is NOT established -- the module's own measurement is that those drivers pin imported pages for writing and refuse or fault on read-only ones (`host_memory.rs`), so the read-only-view trick does not carry over -- and finding one is the work this row waits on. The read taken in the SAME command buffer is exact here, which is the module's recorded reading that a dropped write may be read back from the GPU's caches and is not a contract; the two sites that move are the later command buffer's read and the CPU's. Open: runtime work, on the orchestrator's todo list. +host-page-writes-kernel-store-read-only NVIDIA GeForce RTX 5080 Laptop GPU divergent case/bytes-in-a-later-command-buffer-bytes 256 elements differ (U8), the largest difference 171 Metal DROPS what a shader or the blit engine writes into memory whose backing is read-only, silently and with no error, and we land the write. Metal's rule is measured, not assumed: `probes/readonly_gpu_writes.m` ran eleven shapes on an Apple M3 Max under macOS 27.0.1, one shape a process, eight runs a shape, each against a writable twin of the same program, and a kernel's stores and a pass's visibility result both complete with no error while neither a later command buffer nor the CPU sees any of it -- the writable twin landing its write in all three places is what makes 'dropped' a measurement. The two read-only states agree: bit 24 of `MTLResourceOptions` (what this case states, `ResourceOptions::PRIVATE_BIT`) and the production SPI pair `detachBacking` plus `replaceBackingWithRanges:readOnly:YES` answer alike on all ten shapes measurable under both. The owner's standing rule is that where Metal drops such a write we drop it too, on EVERY driver, with no refusal. We do it on macOS alone: crates/metal2vulkan-runtime/src/read_only_view.rs imports the pages through a read-only view of them (`mach_vm_remap` then `mprotect`), and `VIEWS_DROP_WRITES` is `cfg!(target_os = "macos")`, so on a Linux driver the import is of the caller's own pages, the GPU's writes reach them, and the difference is announced as `Degradation::PrivateResourceOption`. The announcement is not a justification here: the case declares nothing of it and the bytes differ. What the exact form is on a Linux driver is NOT established -- the module's own measurement is that those drivers pin imported pages for writing and refuse or fault on read-only ones (`host_memory.rs`), so the read-only-view trick does not carry over -- and finding one is the work this row waits on. The read taken in the SAME command buffer is exact here, which is the module's recorded reading that a dropped write may be read back from the GPU's caches and is not a contract; the two sites that move are the later command buffer's read and the CPU's. Open: runtime work, on the orchestrator's todo list. +host-page-writes-kernel-store-read-only NVIDIA GeForce RTX 5080 Laptop GPU divergent case/bytes-the-cpu-reads-bytes 256 elements differ (U8), the largest difference 171 Metal DROPS what a shader or the blit engine writes into memory whose backing is read-only, silently and with no error, and we land the write. Metal's rule is measured, not assumed: `probes/readonly_gpu_writes.m` ran eleven shapes on an Apple M3 Max under macOS 27.0.1, one shape a process, eight runs a shape, each against a writable twin of the same program, and a kernel's stores and a pass's visibility result both complete with no error while neither a later command buffer nor the CPU sees any of it -- the writable twin landing its write in all three places is what makes 'dropped' a measurement. The two read-only states agree: bit 24 of `MTLResourceOptions` (what this case states, `ResourceOptions::PRIVATE_BIT`) and the production SPI pair `detachBacking` plus `replaceBackingWithRanges:readOnly:YES` answer alike on all ten shapes measurable under both. The owner's standing rule is that where Metal drops such a write we drop it too, on EVERY driver, with no refusal. We do it on macOS alone: crates/metal2vulkan-runtime/src/read_only_view.rs imports the pages through a read-only view of them (`mach_vm_remap` then `mprotect`), and `VIEWS_DROP_WRITES` is `cfg!(target_os = "macos")`, so on a Linux driver the import is of the caller's own pages, the GPU's writes reach them, and the difference is announced as `Degradation::PrivateResourceOption`. The announcement is not a justification here: the case declares nothing of it and the bytes differ. What the exact form is on a Linux driver is NOT established -- the module's own measurement is that those drivers pin imported pages for writing and refuse or fault on read-only ones (`host_memory.rs`), so the read-only-view trick does not carry over -- and finding one is the work this row waits on. The read taken in the SAME command buffer is exact here, which is the module's recorded reading that a dropped write may be read back from the GPU's caches and is not a contract; the two sites that move are the later command buffer's read and the CPU's. Open: runtime work, on the orchestrator's todo list. +host-page-writes-visibility-read-only llvmpipe divergent case/bytes-in-a-later-command-buffer-bytes 8 elements differ (U8), the largest difference 171 Metal DROPS what a shader or the blit engine writes into memory whose backing is read-only, silently and with no error, and we land the write. Metal's rule is measured, not assumed: `probes/readonly_gpu_writes.m` ran eleven shapes on an Apple M3 Max under macOS 27.0.1, one shape a process, eight runs a shape, each against a writable twin of the same program, and a kernel's stores and a pass's visibility result both complete with no error while neither a later command buffer nor the CPU sees any of it -- the writable twin landing its write in all three places is what makes 'dropped' a measurement. The two read-only states agree: bit 24 of `MTLResourceOptions` (what this case states, `ResourceOptions::PRIVATE_BIT`) and the production SPI pair `detachBacking` plus `replaceBackingWithRanges:readOnly:YES` answer alike on all ten shapes measurable under both. The owner's standing rule is that where Metal drops such a write we drop it too, on EVERY driver, with no refusal. We do it on macOS alone: crates/metal2vulkan-runtime/src/read_only_view.rs imports the pages through a read-only view of them (`mach_vm_remap` then `mprotect`), and `VIEWS_DROP_WRITES` is `cfg!(target_os = "macos")`, so on a Linux driver the import is of the caller's own pages, the GPU's writes reach them, and the difference is announced as `Degradation::PrivateResourceOption`. The announcement is not a justification here: the case declares nothing of it and the bytes differ. What the exact form is on a Linux driver is NOT established -- the module's own measurement is that those drivers pin imported pages for writing and refuse or fault on read-only ones (`host_memory.rs`), so the read-only-view trick does not carry over -- and finding one is the work this row waits on. The read taken in the SAME command buffer is exact here, which is the module's recorded reading that a dropped write may be read back from the GPU's caches and is not a contract; the two sites that move are the later command buffer's read and the CPU's. Open: runtime work, on the orchestrator's todo list. +host-page-writes-visibility-read-only llvmpipe divergent case/bytes-the-cpu-reads-bytes 8 elements differ (U8), the largest difference 171 Metal DROPS what a shader or the blit engine writes into memory whose backing is read-only, silently and with no error, and we land the write. Metal's rule is measured, not assumed: `probes/readonly_gpu_writes.m` ran eleven shapes on an Apple M3 Max under macOS 27.0.1, one shape a process, eight runs a shape, each against a writable twin of the same program, and a kernel's stores and a pass's visibility result both complete with no error while neither a later command buffer nor the CPU sees any of it -- the writable twin landing its write in all three places is what makes 'dropped' a measurement. The two read-only states agree: bit 24 of `MTLResourceOptions` (what this case states, `ResourceOptions::PRIVATE_BIT`) and the production SPI pair `detachBacking` plus `replaceBackingWithRanges:readOnly:YES` answer alike on all ten shapes measurable under both. The owner's standing rule is that where Metal drops such a write we drop it too, on EVERY driver, with no refusal. We do it on macOS alone: crates/metal2vulkan-runtime/src/read_only_view.rs imports the pages through a read-only view of them (`mach_vm_remap` then `mprotect`), and `VIEWS_DROP_WRITES` is `cfg!(target_os = "macos")`, so on a Linux driver the import is of the caller's own pages, the GPU's writes reach them, and the difference is announced as `Degradation::PrivateResourceOption`. The announcement is not a justification here: the case declares nothing of it and the bytes differ. What the exact form is on a Linux driver is NOT established -- the module's own measurement is that those drivers pin imported pages for writing and refuse or fault on read-only ones (`host_memory.rs`), so the read-only-view trick does not carry over -- and finding one is the work this row waits on. The read taken in the SAME command buffer is exact here, which is the module's recorded reading that a dropped write may be read back from the GPU's caches and is not a contract; the two sites that move are the later command buffer's read and the CPU's. Open: runtime work, on the orchestrator's todo list. +host-page-writes-visibility-read-only NVIDIA GeForce RTX 5080 Laptop GPU divergent case/bytes-in-a-later-command-buffer-bytes 8 elements differ (U8), the largest difference 171 Metal DROPS what a shader or the blit engine writes into memory whose backing is read-only, silently and with no error, and we land the write. Metal's rule is measured, not assumed: `probes/readonly_gpu_writes.m` ran eleven shapes on an Apple M3 Max under macOS 27.0.1, one shape a process, eight runs a shape, each against a writable twin of the same program, and a kernel's stores and a pass's visibility result both complete with no error while neither a later command buffer nor the CPU sees any of it -- the writable twin landing its write in all three places is what makes 'dropped' a measurement. The two read-only states agree: bit 24 of `MTLResourceOptions` (what this case states, `ResourceOptions::PRIVATE_BIT`) and the production SPI pair `detachBacking` plus `replaceBackingWithRanges:readOnly:YES` answer alike on all ten shapes measurable under both. The owner's standing rule is that where Metal drops such a write we drop it too, on EVERY driver, with no refusal. We do it on macOS alone: crates/metal2vulkan-runtime/src/read_only_view.rs imports the pages through a read-only view of them (`mach_vm_remap` then `mprotect`), and `VIEWS_DROP_WRITES` is `cfg!(target_os = "macos")`, so on a Linux driver the import is of the caller's own pages, the GPU's writes reach them, and the difference is announced as `Degradation::PrivateResourceOption`. The announcement is not a justification here: the case declares nothing of it and the bytes differ. What the exact form is on a Linux driver is NOT established -- the module's own measurement is that those drivers pin imported pages for writing and refuse or fault on read-only ones (`host_memory.rs`), so the read-only-view trick does not carry over -- and finding one is the work this row waits on. The read taken in the SAME command buffer is exact here, which is the module's recorded reading that a dropped write may be read back from the GPU's caches and is not a contract; the two sites that move are the later command buffer's read and the CPU's. Open: runtime work, on the orchestrator's todo list. +host-page-writes-visibility-read-only NVIDIA GeForce RTX 5080 Laptop GPU divergent case/bytes-the-cpu-reads-bytes 8 elements differ (U8), the largest difference 171 Metal DROPS what a shader or the blit engine writes into memory whose backing is read-only, silently and with no error, and we land the write. Metal's rule is measured, not assumed: `probes/readonly_gpu_writes.m` ran eleven shapes on an Apple M3 Max under macOS 27.0.1, one shape a process, eight runs a shape, each against a writable twin of the same program, and a kernel's stores and a pass's visibility result both complete with no error while neither a later command buffer nor the CPU sees any of it -- the writable twin landing its write in all three places is what makes 'dropped' a measurement. The two read-only states agree: bit 24 of `MTLResourceOptions` (what this case states, `ResourceOptions::PRIVATE_BIT`) and the production SPI pair `detachBacking` plus `replaceBackingWithRanges:readOnly:YES` answer alike on all ten shapes measurable under both. The owner's standing rule is that where Metal drops such a write we drop it too, on EVERY driver, with no refusal. We do it on macOS alone: crates/metal2vulkan-runtime/src/read_only_view.rs imports the pages through a read-only view of them (`mach_vm_remap` then `mprotect`), and `VIEWS_DROP_WRITES` is `cfg!(target_os = "macos")`, so on a Linux driver the import is of the caller's own pages, the GPU's writes reach them, and the difference is announced as `Degradation::PrivateResourceOption`. The announcement is not a justification here: the case declares nothing of it and the bytes differ. What the exact form is on a Linux driver is NOT established -- the module's own measurement is that those drivers pin imported pages for writing and refuse or fault on read-only ones (`host_memory.rs`), so the read-only-view trick does not carry over -- and finding one is the work this row waits on. The read taken in the SAME command buffer is exact here, which is the module's recorded reading that a dropped write may be read back from the GPU's caches and is not a contract; the two sites that move are the later command buffer's read and the CPU's. Open: runtime work, on the orchestrator's todo list. +norm-storage-fields-bgr10a2unorm llvmpipe refused case/hsw_held/dispatch Err(Error::Bind("the bind state was refused: Unsupported(Unsupported { feature: ArgumentBufferTextures, needs: NotImplemented, location: None, symbol: None })")) Metal dispatches a kernel that writes a `BGR10A2Unorm` storage texture reached through its resource ID inside an argument buffer, and we refuse the bind state `Unsupported(ArgumentBufferTextures, NotImplemented)`. The refusal is ours by construction and before any device call: a texture handle loaded from an argument buffer resolves through the module's handle table into the set-1 heap arrays (crates/metal2vulkan/src/memory/handles.rs), and a member the heap domain has no exact form for is `not_implemented(Feature::ArgumentBufferTextures)` there and at crates/metal2vulkan/src/pipeline/link.rs's own arms. The shape of the failure says which form is missing rather than that the route is: this family's other formats run the same `hsw_held` route of the same fixture on this venue, and this format's other three routes -- `access::write`, `access::read_write` and a `texture_buffer` -- run too, so what has no heap form is a packed, channel-reordered 10:10:10:2 storage WRITE reached as a handle. Why the Apple venue takes it and this one does not is NOT established by this run; a storage form that needs a swizzled or aliased view on this driver and a heap handle that cannot carry one is the shape to check first, and the counters are in `pipeline/link.rs`. The fix belongs in those two files: give the heap handle domain the storage form this format's write needs, or name it in the plan so the slot path's exact answer is reached. Open: translator work, on the orchestrator's todo list. +norm-storage-fields-bgr10a2unorm NVIDIA GeForce RTX 5080 Laptop GPU refused case/hsw_held/dispatch Err(Error::Bind("the bind state was refused: Unsupported(Unsupported { feature: ArgumentBufferTextures, needs: NotImplemented, location: None, symbol: None })")) Metal dispatches a kernel that writes a `BGR10A2Unorm` storage texture reached through its resource ID inside an argument buffer, and we refuse the bind state `Unsupported(ArgumentBufferTextures, NotImplemented)`. The refusal is ours by construction and before any device call: a texture handle loaded from an argument buffer resolves through the module's handle table into the set-1 heap arrays (crates/metal2vulkan/src/memory/handles.rs), and a member the heap domain has no exact form for is `not_implemented(Feature::ArgumentBufferTextures)` there and at crates/metal2vulkan/src/pipeline/link.rs's own arms. The shape of the failure says which form is missing rather than that the route is: this family's other formats run the same `hsw_held` route of the same fixture on this venue, and this format's other three routes -- `access::write`, `access::read_write` and a `texture_buffer` -- run too, so what has no heap form is a packed, channel-reordered 10:10:10:2 storage WRITE reached as a handle. Why the Apple venue takes it and this one does not is NOT established by this run; a storage form that needs a swizzled or aliased view on this driver and a heap handle that cannot carry one is the shape to check first, and the counters are in `pipeline/link.rs`. The fix belongs in those two files: give the heap handle domain the storage form this format's write needs, or name it in the plan so the slot path's exact answer is reached. Open: translator work, on the orchestrator's todo list. +pass-sequence-color-actions llvmpipe divergent case/planes/MTLLoadActionClear+MTLStoreActionDontCare/MTLLoadActionClear/area-32x32 576 elements differ (F32), the largest difference 0.68701171875 Metal's `MTLStoreActionDontCare` leaves the attachment holding the texels it held BEFORE the pass, and we leave what the pass rendered. Metal's answer is this case's own committed recording on an Apple M3 Max under macOS 27.0.1 and it is sharper than a guess would be: under `DontCare` then `MTLLoadActionLoad` pass A's clear AND its draw are both gone and the host's per-texel write survives in pass A's own region. The four cells of this case that diverge here are exactly the `MTLStoreActionDontCare` ones, and the eight that do not are untouched, so the sequence, the render-area bounds and both load actions are right -- it is the store alone. The cause is deliberate and documented: crates/metal2vulkan-runtime/src/render_target.rs hands Vulkan `DONT_CARE` only on a driver measured to keep one of Metal's two answers (`DriverFact::DontCareStoreIsMetals` or `DontCareStoreIsOneOfMetals`, MoltenVK on the M4 and the M3 Max) and stores the attachment (`STORE`) on every other, because Vulkan leaves a `DONT_CARE` attachment's contents undefined and a driver may answer a third thing neither of Metal's -- the module records NVIDIA's leaving a pass's clear under its draw. `STORE` is Metal's OTHER answer, the one its tiler gives on overflow, so it is a recorded near-equivalent and the runtime announces `dont-care-store` for it; but it is not the answer this case's Metal recording holds, and a program that reads such an attachment after the pass sees pass A's result here where Metal gives it the prior texels. The exact form is to restore those texels rather than pick one of Metal's answers: keep them and put them back around the pass, the shape `kept_bytes.rs` already uses for a texture over a buffer, which costs a copy per `DontCare` attachment -- so by the owner's fast-default rule it belongs behind a `DevicePolicy` switch with its docs/FAST-PATHS.md row and `STORE` stays the default. Open: runtime work, on the orchestrator's todo list. +pass-sequence-color-actions llvmpipe divergent case/planes/MTLLoadActionClear+MTLStoreActionDontCare/MTLLoadActionLoad/area-32x32 1088 elements differ (F32), the largest difference 0.68701171875 Metal's `MTLStoreActionDontCare` leaves the attachment holding the texels it held BEFORE the pass, and we leave what the pass rendered. Metal's answer is this case's own committed recording on an Apple M3 Max under macOS 27.0.1 and it is sharper than a guess would be: under `DontCare` then `MTLLoadActionLoad` pass A's clear AND its draw are both gone and the host's per-texel write survives in pass A's own region. The four cells of this case that diverge here are exactly the `MTLStoreActionDontCare` ones, and the eight that do not are untouched, so the sequence, the render-area bounds and both load actions are right -- it is the store alone. The cause is deliberate and documented: crates/metal2vulkan-runtime/src/render_target.rs hands Vulkan `DONT_CARE` only on a driver measured to keep one of Metal's two answers (`DriverFact::DontCareStoreIsMetals` or `DontCareStoreIsOneOfMetals`, MoltenVK on the M4 and the M3 Max) and stores the attachment (`STORE`) on every other, because Vulkan leaves a `DONT_CARE` attachment's contents undefined and a driver may answer a third thing neither of Metal's -- the module records NVIDIA's leaving a pass's clear under its draw. `STORE` is Metal's OTHER answer, the one its tiler gives on overflow, so it is a recorded near-equivalent and the runtime announces `dont-care-store` for it; but it is not the answer this case's Metal recording holds, and a program that reads such an attachment after the pass sees pass A's result here where Metal gives it the prior texels. The exact form is to restore those texels rather than pick one of Metal's answers: keep them and put them back around the pass, the shape `kept_bytes.rs` already uses for a texture over a buffer, which costs a copy per `DontCare` attachment -- so by the owner's fast-default rule it belongs behind a `DevicePolicy` switch with its docs/FAST-PATHS.md row and `STORE` stays the default. Open: runtime work, on the orchestrator's todo list. +pass-sequence-color-actions llvmpipe divergent case/planes/MTLLoadActionClear+MTLStoreActionDontCare/MTLLoadActionLoad/whole-area 1088 elements differ (F32), the largest difference 0.68701171875 Metal's `MTLStoreActionDontCare` leaves the attachment holding the texels it held BEFORE the pass, and we leave what the pass rendered. Metal's answer is this case's own committed recording on an Apple M3 Max under macOS 27.0.1 and it is sharper than a guess would be: under `DontCare` then `MTLLoadActionLoad` pass A's clear AND its draw are both gone and the host's per-texel write survives in pass A's own region. The four cells of this case that diverge here are exactly the `MTLStoreActionDontCare` ones, and the eight that do not are untouched, so the sequence, the render-area bounds and both load actions are right -- it is the store alone. The cause is deliberate and documented: crates/metal2vulkan-runtime/src/render_target.rs hands Vulkan `DONT_CARE` only on a driver measured to keep one of Metal's two answers (`DriverFact::DontCareStoreIsMetals` or `DontCareStoreIsOneOfMetals`, MoltenVK on the M4 and the M3 Max) and stores the attachment (`STORE`) on every other, because Vulkan leaves a `DONT_CARE` attachment's contents undefined and a driver may answer a third thing neither of Metal's -- the module records NVIDIA's leaving a pass's clear under its draw. `STORE` is Metal's OTHER answer, the one its tiler gives on overflow, so it is a recorded near-equivalent and the runtime announces `dont-care-store` for it; but it is not the answer this case's Metal recording holds, and a program that reads such an attachment after the pass sees pass A's result here where Metal gives it the prior texels. The exact form is to restore those texels rather than pick one of Metal's answers: keep them and put them back around the pass, the shape `kept_bytes.rs` already uses for a texture over a buffer, which costs a copy per `DontCare` attachment -- so by the owner's fast-default rule it belongs behind a `DevicePolicy` switch with its docs/FAST-PATHS.md row and `STORE` stays the default. Open: runtime work, on the orchestrator's todo list. +pass-sequence-color-actions llvmpipe divergent case/planes/MTLLoadActionLoad+MTLStoreActionDontCare/MTLLoadActionLoad/whole-area 256 elements differ (F32), the largest difference 0.1875 Metal's `MTLStoreActionDontCare` leaves the attachment holding the texels it held BEFORE the pass, and we leave what the pass rendered. Metal's answer is this case's own committed recording on an Apple M3 Max under macOS 27.0.1 and it is sharper than a guess would be: under `DontCare` then `MTLLoadActionLoad` pass A's clear AND its draw are both gone and the host's per-texel write survives in pass A's own region. The four cells of this case that diverge here are exactly the `MTLStoreActionDontCare` ones, and the eight that do not are untouched, so the sequence, the render-area bounds and both load actions are right -- it is the store alone. The cause is deliberate and documented: crates/metal2vulkan-runtime/src/render_target.rs hands Vulkan `DONT_CARE` only on a driver measured to keep one of Metal's two answers (`DriverFact::DontCareStoreIsMetals` or `DontCareStoreIsOneOfMetals`, MoltenVK on the M4 and the M3 Max) and stores the attachment (`STORE`) on every other, because Vulkan leaves a `DONT_CARE` attachment's contents undefined and a driver may answer a third thing neither of Metal's -- the module records NVIDIA's leaving a pass's clear under its draw. `STORE` is Metal's OTHER answer, the one its tiler gives on overflow, so it is a recorded near-equivalent and the runtime announces `dont-care-store` for it; but it is not the answer this case's Metal recording holds, and a program that reads such an attachment after the pass sees pass A's result here where Metal gives it the prior texels. The exact form is to restore those texels rather than pick one of Metal's answers: keep them and put them back around the pass, the shape `kept_bytes.rs` already uses for a texture over a buffer, which costs a copy per `DontCare` attachment -- so by the owner's fast-default rule it belongs behind a `DevicePolicy` switch with its docs/FAST-PATHS.md row and `STORE` stays the default. Open: runtime work, on the orchestrator's todo list. +pass-sequence-color-actions NVIDIA GeForce RTX 5080 Laptop GPU divergent case/planes/MTLLoadActionClear+MTLStoreActionDontCare/MTLLoadActionClear/area-32x32 576 elements differ (F32), the largest difference 0.68701171875 Metal's `MTLStoreActionDontCare` leaves the attachment holding the texels it held BEFORE the pass, and we leave what the pass rendered. Metal's answer is this case's own committed recording on an Apple M3 Max under macOS 27.0.1 and it is sharper than a guess would be: under `DontCare` then `MTLLoadActionLoad` pass A's clear AND its draw are both gone and the host's per-texel write survives in pass A's own region. The four cells of this case that diverge here are exactly the `MTLStoreActionDontCare` ones, and the eight that do not are untouched, so the sequence, the render-area bounds and both load actions are right -- it is the store alone. The cause is deliberate and documented: crates/metal2vulkan-runtime/src/render_target.rs hands Vulkan `DONT_CARE` only on a driver measured to keep one of Metal's two answers (`DriverFact::DontCareStoreIsMetals` or `DontCareStoreIsOneOfMetals`, MoltenVK on the M4 and the M3 Max) and stores the attachment (`STORE`) on every other, because Vulkan leaves a `DONT_CARE` attachment's contents undefined and a driver may answer a third thing neither of Metal's -- the module records NVIDIA's leaving a pass's clear under its draw. `STORE` is Metal's OTHER answer, the one its tiler gives on overflow, so it is a recorded near-equivalent and the runtime announces `dont-care-store` for it; but it is not the answer this case's Metal recording holds, and a program that reads such an attachment after the pass sees pass A's result here where Metal gives it the prior texels. The exact form is to restore those texels rather than pick one of Metal's answers: keep them and put them back around the pass, the shape `kept_bytes.rs` already uses for a texture over a buffer, which costs a copy per `DontCare` attachment -- so by the owner's fast-default rule it belongs behind a `DevicePolicy` switch with its docs/FAST-PATHS.md row and `STORE` stays the default. Open: runtime work, on the orchestrator's todo list. +pass-sequence-color-actions NVIDIA GeForce RTX 5080 Laptop GPU divergent case/planes/MTLLoadActionClear+MTLStoreActionDontCare/MTLLoadActionLoad/area-32x32 1088 elements differ (F32), the largest difference 0.68701171875 Metal's `MTLStoreActionDontCare` leaves the attachment holding the texels it held BEFORE the pass, and we leave what the pass rendered. Metal's answer is this case's own committed recording on an Apple M3 Max under macOS 27.0.1 and it is sharper than a guess would be: under `DontCare` then `MTLLoadActionLoad` pass A's clear AND its draw are both gone and the host's per-texel write survives in pass A's own region. The four cells of this case that diverge here are exactly the `MTLStoreActionDontCare` ones, and the eight that do not are untouched, so the sequence, the render-area bounds and both load actions are right -- it is the store alone. The cause is deliberate and documented: crates/metal2vulkan-runtime/src/render_target.rs hands Vulkan `DONT_CARE` only on a driver measured to keep one of Metal's two answers (`DriverFact::DontCareStoreIsMetals` or `DontCareStoreIsOneOfMetals`, MoltenVK on the M4 and the M3 Max) and stores the attachment (`STORE`) on every other, because Vulkan leaves a `DONT_CARE` attachment's contents undefined and a driver may answer a third thing neither of Metal's -- the module records NVIDIA's leaving a pass's clear under its draw. `STORE` is Metal's OTHER answer, the one its tiler gives on overflow, so it is a recorded near-equivalent and the runtime announces `dont-care-store` for it; but it is not the answer this case's Metal recording holds, and a program that reads such an attachment after the pass sees pass A's result here where Metal gives it the prior texels. The exact form is to restore those texels rather than pick one of Metal's answers: keep them and put them back around the pass, the shape `kept_bytes.rs` already uses for a texture over a buffer, which costs a copy per `DontCare` attachment -- so by the owner's fast-default rule it belongs behind a `DevicePolicy` switch with its docs/FAST-PATHS.md row and `STORE` stays the default. Open: runtime work, on the orchestrator's todo list. +pass-sequence-color-actions NVIDIA GeForce RTX 5080 Laptop GPU divergent case/planes/MTLLoadActionClear+MTLStoreActionDontCare/MTLLoadActionLoad/whole-area 1088 elements differ (F32), the largest difference 0.68701171875 Metal's `MTLStoreActionDontCare` leaves the attachment holding the texels it held BEFORE the pass, and we leave what the pass rendered. Metal's answer is this case's own committed recording on an Apple M3 Max under macOS 27.0.1 and it is sharper than a guess would be: under `DontCare` then `MTLLoadActionLoad` pass A's clear AND its draw are both gone and the host's per-texel write survives in pass A's own region. The four cells of this case that diverge here are exactly the `MTLStoreActionDontCare` ones, and the eight that do not are untouched, so the sequence, the render-area bounds and both load actions are right -- it is the store alone. The cause is deliberate and documented: crates/metal2vulkan-runtime/src/render_target.rs hands Vulkan `DONT_CARE` only on a driver measured to keep one of Metal's two answers (`DriverFact::DontCareStoreIsMetals` or `DontCareStoreIsOneOfMetals`, MoltenVK on the M4 and the M3 Max) and stores the attachment (`STORE`) on every other, because Vulkan leaves a `DONT_CARE` attachment's contents undefined and a driver may answer a third thing neither of Metal's -- the module records NVIDIA's leaving a pass's clear under its draw. `STORE` is Metal's OTHER answer, the one its tiler gives on overflow, so it is a recorded near-equivalent and the runtime announces `dont-care-store` for it; but it is not the answer this case's Metal recording holds, and a program that reads such an attachment after the pass sees pass A's result here where Metal gives it the prior texels. The exact form is to restore those texels rather than pick one of Metal's answers: keep them and put them back around the pass, the shape `kept_bytes.rs` already uses for a texture over a buffer, which costs a copy per `DontCare` attachment -- so by the owner's fast-default rule it belongs behind a `DevicePolicy` switch with its docs/FAST-PATHS.md row and `STORE` stays the default. Open: runtime work, on the orchestrator's todo list. +pass-sequence-color-actions NVIDIA GeForce RTX 5080 Laptop GPU divergent case/planes/MTLLoadActionLoad+MTLStoreActionDontCare/MTLLoadActionLoad/whole-area 256 elements differ (F32), the largest difference 0.1875 Metal's `MTLStoreActionDontCare` leaves the attachment holding the texels it held BEFORE the pass, and we leave what the pass rendered. Metal's answer is this case's own committed recording on an Apple M3 Max under macOS 27.0.1 and it is sharper than a guess would be: under `DontCare` then `MTLLoadActionLoad` pass A's clear AND its draw are both gone and the host's per-texel write survives in pass A's own region. The four cells of this case that diverge here are exactly the `MTLStoreActionDontCare` ones, and the eight that do not are untouched, so the sequence, the render-area bounds and both load actions are right -- it is the store alone. The cause is deliberate and documented: crates/metal2vulkan-runtime/src/render_target.rs hands Vulkan `DONT_CARE` only on a driver measured to keep one of Metal's two answers (`DriverFact::DontCareStoreIsMetals` or `DontCareStoreIsOneOfMetals`, MoltenVK on the M4 and the M3 Max) and stores the attachment (`STORE`) on every other, because Vulkan leaves a `DONT_CARE` attachment's contents undefined and a driver may answer a third thing neither of Metal's -- the module records NVIDIA's leaving a pass's clear under its draw. `STORE` is Metal's OTHER answer, the one its tiler gives on overflow, so it is a recorded near-equivalent and the runtime announces `dont-care-store` for it; but it is not the answer this case's Metal recording holds, and a program that reads such an attachment after the pass sees pass A's result here where Metal gives it the prior texels. The exact form is to restore those texels rather than pick one of Metal's answers: keep them and put them back around the pass, the shape `kept_bytes.rs` already uses for a texture over a buffer, which costs a copy per `DontCare` attachment -- so by the owner's fast-default rule it belongs behind a `DevicePolicy` switch with its docs/FAST-PATHS.md row and `STORE` stays the default. Open: runtime work, on the orchestrator's todo list. +pixel-samplers-rgba16f-nearest-border NVIDIA GeForce RTX 5080 Laptop GPU divergent case/output/norm the digest is 3288187d8ade9557ef4b727bf31750abd8136d15c98b6d29b17ccf6423c0d497 on Metal and 18ed16e2998cc7c3d87dee548216bd6f3bdff85329f9a3ce3025330f3bcd0c0f here Metal's 800 sampled results of this case's `norm` source digest to one value and ours to another; the row holds both. `norm` is the case's own CONTROL: a NORMALIZED sampler state of the same filter and address mode inside an argument buffer, sampled at the coordinate divided by the texture's size, which the runtime hands to the device's own sampler. What moves is the nearest-texel selection and not the filtering: the three `nearest` cases of each format diverge at this site and the `linear` ones do not, and the case loosens `norm` naming `argument-pixel-sampler-scaling` and `float-sample-filter`, neither of which fires for a nearest filter, so nothing announced justifies it. The texture is 5 by 3 -- a power of two on neither axis -- so a coordinate divided by the size lands within an ULP of a texel boundary at many of the 800 coordinates, and this device's rounding of it parts from Metal's at some of them. WHICH coordinates differ is NOT established by this run: the site is compared as a digest, so the report names no cell, and reading the two transcripts' 800 values side by side is the first step of the fix. One reading this run does establish: the `zero` and `border` address modes answer the same digest as each other on both sides, so the difference is not in the out-of-bounds answer. The fix sits where the emulation already draws its line -- a slot's and a constexpr sampler's pixel coordinates are reached exactly and an argument buffer's sampler is handed to the device's own -- so the exact form is to reach an argument buffer's sampler the way the slot path does on a device without Metal's own sampler (`VkProperty::MetalSampler`). Open: runtime work, on the orchestrator's todo list. +pixel-samplers-rgba16f-nearest-edge NVIDIA GeForce RTX 5080 Laptop GPU divergent case/output/norm the digest is e28b6390ff83ff95e1c5d00dae0fcf2f7b51ad9c20c68e88223e25cfc18700bd on Metal and 05a10e769736e671ff2e1d30f120e417523306fc2281aa0c2be5aa2cea44f3fb here Metal's 800 sampled results of this case's `norm` source digest to one value and ours to another; the row holds both. `norm` is the case's own CONTROL: a NORMALIZED sampler state of the same filter and address mode inside an argument buffer, sampled at the coordinate divided by the texture's size, which the runtime hands to the device's own sampler. What moves is the nearest-texel selection and not the filtering: the three `nearest` cases of each format diverge at this site and the `linear` ones do not, and the case loosens `norm` naming `argument-pixel-sampler-scaling` and `float-sample-filter`, neither of which fires for a nearest filter, so nothing announced justifies it. The texture is 5 by 3 -- a power of two on neither axis -- so a coordinate divided by the size lands within an ULP of a texel boundary at many of the 800 coordinates, and this device's rounding of it parts from Metal's at some of them. WHICH coordinates differ is NOT established by this run: the site is compared as a digest, so the report names no cell, and reading the two transcripts' 800 values side by side is the first step of the fix. One reading this run does establish: the `zero` and `border` address modes answer the same digest as each other on both sides, so the difference is not in the out-of-bounds answer. The fix sits where the emulation already draws its line -- a slot's and a constexpr sampler's pixel coordinates are reached exactly and an argument buffer's sampler is handed to the device's own -- so the exact form is to reach an argument buffer's sampler the way the slot path does on a device without Metal's own sampler (`VkProperty::MetalSampler`). Open: runtime work, on the orchestrator's todo list. +pixel-samplers-rgba16f-nearest-zero NVIDIA GeForce RTX 5080 Laptop GPU divergent case/output/norm the digest is 3288187d8ade9557ef4b727bf31750abd8136d15c98b6d29b17ccf6423c0d497 on Metal and 18ed16e2998cc7c3d87dee548216bd6f3bdff85329f9a3ce3025330f3bcd0c0f here Metal's 800 sampled results of this case's `norm` source digest to one value and ours to another; the row holds both. `norm` is the case's own CONTROL: a NORMALIZED sampler state of the same filter and address mode inside an argument buffer, sampled at the coordinate divided by the texture's size, which the runtime hands to the device's own sampler. What moves is the nearest-texel selection and not the filtering: the three `nearest` cases of each format diverge at this site and the `linear` ones do not, and the case loosens `norm` naming `argument-pixel-sampler-scaling` and `float-sample-filter`, neither of which fires for a nearest filter, so nothing announced justifies it. The texture is 5 by 3 -- a power of two on neither axis -- so a coordinate divided by the size lands within an ULP of a texel boundary at many of the 800 coordinates, and this device's rounding of it parts from Metal's at some of them. WHICH coordinates differ is NOT established by this run: the site is compared as a digest, so the report names no cell, and reading the two transcripts' 800 values side by side is the first step of the fix. One reading this run does establish: the `zero` and `border` address modes answer the same digest as each other on both sides, so the difference is not in the out-of-bounds answer. The fix sits where the emulation already draws its line -- a slot's and a constexpr sampler's pixel coordinates are reached exactly and an argument buffer's sampler is handed to the device's own -- so the exact form is to reach an argument buffer's sampler the way the slot path does on a device without Metal's own sampler (`VkProperty::MetalSampler`). Open: runtime work, on the orchestrator's todo list. +pixel-samplers-rgba8-nearest-border NVIDIA GeForce RTX 5080 Laptop GPU divergent case/output/norm the digest is a0a4cd79e2609250f0131240bdb85e230771e5052b8ae7ed2f9af30c4a901a72 on Metal and 0bb6048885147595223412eb6b3369c9ae2cdd83510b150fb734948e2884d338 here Metal's 800 sampled results of this case's `norm` source digest to one value and ours to another; the row holds both. `norm` is the case's own CONTROL: a NORMALIZED sampler state of the same filter and address mode inside an argument buffer, sampled at the coordinate divided by the texture's size, which the runtime hands to the device's own sampler. What moves is the nearest-texel selection and not the filtering: the three `nearest` cases of each format diverge at this site and the `linear` ones do not, and the case loosens `norm` naming `argument-pixel-sampler-scaling` and `float-sample-filter`, neither of which fires for a nearest filter, so nothing announced justifies it. The texture is 5 by 3 -- a power of two on neither axis -- so a coordinate divided by the size lands within an ULP of a texel boundary at many of the 800 coordinates, and this device's rounding of it parts from Metal's at some of them. WHICH coordinates differ is NOT established by this run: the site is compared as a digest, so the report names no cell, and reading the two transcripts' 800 values side by side is the first step of the fix. One reading this run does establish: the `zero` and `border` address modes answer the same digest as each other on both sides, so the difference is not in the out-of-bounds answer. The fix sits where the emulation already draws its line -- a slot's and a constexpr sampler's pixel coordinates are reached exactly and an argument buffer's sampler is handed to the device's own -- so the exact form is to reach an argument buffer's sampler the way the slot path does on a device without Metal's own sampler (`VkProperty::MetalSampler`). Open: runtime work, on the orchestrator's todo list. +pixel-samplers-rgba8-nearest-edge NVIDIA GeForce RTX 5080 Laptop GPU divergent case/output/norm the digest is 250024876cde0c2f67dccea354f400d28c94b6cd9634aae0b38c6354f35070b7 on Metal and 16b3b152937584db1b758a9d91f52b38e45226e1ff49847051a506836f4b4963 here Metal's 800 sampled results of this case's `norm` source digest to one value and ours to another; the row holds both. `norm` is the case's own CONTROL: a NORMALIZED sampler state of the same filter and address mode inside an argument buffer, sampled at the coordinate divided by the texture's size, which the runtime hands to the device's own sampler. What moves is the nearest-texel selection and not the filtering: the three `nearest` cases of each format diverge at this site and the `linear` ones do not, and the case loosens `norm` naming `argument-pixel-sampler-scaling` and `float-sample-filter`, neither of which fires for a nearest filter, so nothing announced justifies it. The texture is 5 by 3 -- a power of two on neither axis -- so a coordinate divided by the size lands within an ULP of a texel boundary at many of the 800 coordinates, and this device's rounding of it parts from Metal's at some of them. WHICH coordinates differ is NOT established by this run: the site is compared as a digest, so the report names no cell, and reading the two transcripts' 800 values side by side is the first step of the fix. One reading this run does establish: the `zero` and `border` address modes answer the same digest as each other on both sides, so the difference is not in the out-of-bounds answer. The fix sits where the emulation already draws its line -- a slot's and a constexpr sampler's pixel coordinates are reached exactly and an argument buffer's sampler is handed to the device's own -- so the exact form is to reach an argument buffer's sampler the way the slot path does on a device without Metal's own sampler (`VkProperty::MetalSampler`). Open: runtime work, on the orchestrator's todo list. +pixel-samplers-rgba8-nearest-zero NVIDIA GeForce RTX 5080 Laptop GPU divergent case/output/norm the digest is a0a4cd79e2609250f0131240bdb85e230771e5052b8ae7ed2f9af30c4a901a72 on Metal and 0bb6048885147595223412eb6b3369c9ae2cdd83510b150fb734948e2884d338 here Metal's 800 sampled results of this case's `norm` source digest to one value and ours to another; the row holds both. `norm` is the case's own CONTROL: a NORMALIZED sampler state of the same filter and address mode inside an argument buffer, sampled at the coordinate divided by the texture's size, which the runtime hands to the device's own sampler. What moves is the nearest-texel selection and not the filtering: the three `nearest` cases of each format diverge at this site and the `linear` ones do not, and the case loosens `norm` naming `argument-pixel-sampler-scaling` and `float-sample-filter`, neither of which fires for a nearest filter, so nothing announced justifies it. The texture is 5 by 3 -- a power of two on neither axis -- so a coordinate divided by the size lands within an ULP of a texel boundary at many of the 800 coordinates, and this device's rounding of it parts from Metal's at some of them. WHICH coordinates differ is NOT established by this run: the site is compared as a digest, so the report names no cell, and reading the two transcripts' 800 values side by side is the first step of the fix. One reading this run does establish: the `zero` and `border` address modes answer the same digest as each other on both sides, so the difference is not in the out-of-bounds answer. The fix sits where the emulation already draws its line -- a slot's and a constexpr sampler's pixel coordinates are reached exactly and an argument buffer's sampler is handed to the device's own -- so the exact form is to reach an argument buffer's sampler the way the slot path does on a device without Metal's own sampler (`VkProperty::MetalSampler`). Open: runtime work, on the orchestrator's todo list. +resolve-stencil-under-depth-filters llvmpipe refused case/pieces/pass:MTLMultisampleStencilResolveFilterSample0/MTLMultisampleDepthResolveFilterMax Err(Error::NotImplemented("not implemented in the runtime yet: DepthStencilResolve")) Metal resolves a multisampled depth/stencil attachment with the stencil filter `MTLMultisampleStencilResolveFilterSample0` under the depth filter `Min` or `Max`, and we refuse it `NotImplemented(DepthStencilResolve)`. Ours is not a device refusal dressed up: crates/metal2vulkan-runtime/src/resolve.rs states in its own words that a filter the device's resolve modes lack -- `supportedDepthResolveModes`, `supportedStencilResolveModes`, or the other aspect's modes where a subpass resolving one aspect must name the same mode for both, read off the compile device's description as `VkProperty::{DepthResolveMode, StencilResolveMode, IndependentResolveNone, IndependentResolve}` -- is 'not built', and names the exact path in the same sentence: a resolve DRAW, which the module already uses for other unresolvable pairs and which needs no resolve mode from the device at all. So the gap is work not done rather than a capability missing, which is what makes it ours under the owner's rule that what Metal allows we must allow. This venue is a device with no independent resolve of the two aspects, so the `Sample0` stencil filter cannot be named beside a `Min` or `Max` depth one; the case's other filter pairs run here, so it is these two cells. The fix belongs in resolve.rs: reach the resolve draw for a filter pair the device's modes cannot state, as the module does where `DepthResolvedSample` follows `Min` or `Max` on a sampled attachment. Open: runtime work, on the orchestrator's todo list. +resolve-stencil-under-depth-filters llvmpipe refused case/pieces/pass:MTLMultisampleStencilResolveFilterSample0/MTLMultisampleDepthResolveFilterMin Err(Error::NotImplemented("not implemented in the runtime yet: DepthStencilResolve")) Metal resolves a multisampled depth/stencil attachment with the stencil filter `MTLMultisampleStencilResolveFilterSample0` under the depth filter `Min` or `Max`, and we refuse it `NotImplemented(DepthStencilResolve)`. Ours is not a device refusal dressed up: crates/metal2vulkan-runtime/src/resolve.rs states in its own words that a filter the device's resolve modes lack -- `supportedDepthResolveModes`, `supportedStencilResolveModes`, or the other aspect's modes where a subpass resolving one aspect must name the same mode for both, read off the compile device's description as `VkProperty::{DepthResolveMode, StencilResolveMode, IndependentResolveNone, IndependentResolve}` -- is 'not built', and names the exact path in the same sentence: a resolve DRAW, which the module already uses for other unresolvable pairs and which needs no resolve mode from the device at all. So the gap is work not done rather than a capability missing, which is what makes it ours under the owner's rule that what Metal allows we must allow. This venue is a device with no independent resolve of the two aspects, so the `Sample0` stencil filter cannot be named beside a `Min` or `Max` depth one; the case's other filter pairs run here, so it is these two cells. The fix belongs in resolve.rs: reach the resolve draw for a filter pair the device's modes cannot state, as the module does where `DepthResolvedSample` follows `Min` or `Max` on a sampled attachment. Open: runtime work, on the orchestrator's todo list. +tile-simd-blur-columns llvmpipe divergent case/state-facts/max_total_threads_per_threadgroup Metal 1024 (0x400), ours 960 (0x3c0) Metal's tile render pipeline state answers `maxTotalThreadsPerThreadgroup` 1024 and ours answers 960 on this venue. The 960 is this device's own compiled limit and the runtime reports it deliberately: crates/metal2vulkan-runtime/src/pipeline/tile.rs documents the answer as 'Metal's 1024, or the descriptor's limit, where the device runs a threadgroup of 1024 threads, else the device's lower limit', and lavapipe's emulated 32-lane simdgroups take 960 threads of this pipeline. So the number is honest about the device and a dispatch past it is refused typed -- which this family's own test `a_dispatch_the_device_cannot_take_is_the_devices_gap` rules is the DEVICE's gap and verdicts `LacksFeature`. The open work is that the same ruling has not reached the FACT: the state's reported limit is compared against Metal's number as if it were an answer of ours, so a venue whose threadgroup is smaller reads as a divergence at the getter while the matching dispatch reads as the venue's honest gap. That inconsistency is the suite's, which is ours, and the fix is in crates/metal2vulkan-conformance: let a state fact that reports a device limit follow the device-gap ruling its dispatch already gets, or state Metal's number beside the device's so the comparison asks the right question. Until it does the row records it, and the row must not be read as a claim that the runtime should report 1024 on a device that cannot run it: that would be a lie a consumer sizes a dispatch from. Open: suite work, on the orchestrator's todo list. +tile-simd-blur-rows llvmpipe divergent case/state-facts/max_total_threads_per_threadgroup Metal 1024 (0x400), ours 960 (0x3c0) Metal's tile render pipeline state answers `maxTotalThreadsPerThreadgroup` 1024 and ours answers 960 on this venue. The 960 is this device's own compiled limit and the runtime reports it deliberately: crates/metal2vulkan-runtime/src/pipeline/tile.rs documents the answer as 'Metal's 1024, or the descriptor's limit, where the device runs a threadgroup of 1024 threads, else the device's lower limit', and lavapipe's emulated 32-lane simdgroups take 960 threads of this pipeline. So the number is honest about the device and a dispatch past it is refused typed -- which this family's own test `a_dispatch_the_device_cannot_take_is_the_devices_gap` rules is the DEVICE's gap and verdicts `LacksFeature`. The open work is that the same ruling has not reached the FACT: the state's reported limit is compared against Metal's number as if it were an answer of ours, so a venue whose threadgroup is smaller reads as a divergence at the getter while the matching dispatch reads as the venue's honest gap. That inconsistency is the suite's, which is ours, and the fix is in crates/metal2vulkan-conformance: let a state fact that reports a device limit follow the device-gap ruling its dispatch already gets, or state Metal's number beside the device's so the comparison asks the right question. Until it does the row records it, and the row must not be read as a claim that the runtime should report 1024 on a device that cannot run it: that would be a lie a consumer sizes a dispatch from. Open: suite work, on the orchestrator's todo list. diff --git a/docs/CONFORMANCE-COVERAGE.md b/docs/CONFORMANCE-COVERAGE.md index 6adc38c24..81999e406 100644 --- a/docs/CONFORMANCE-COVERAGE.md +++ b/docs/CONFORMANCE-COVERAGE.md @@ -43,7 +43,7 @@ Its limits, measured rather than asserted: | committed recordings | 1099 | | distinct SDK items the Metal leg reaches, of any status | 797 | | of those, reached only where this cannot name the family | 7 | -| ledger rows (a case whose gap is recorded) | 774 | +| ledger rows (a case whose gap is recorded) | 803 | | declared crossings of the option space (pairs put to Metal at once) | 24 | | declared crossings that are no pair of it (a boolean or numeric field, or one type in two slots) | 30 | @@ -2975,4 +2975,33 @@ A case whose difference from Metal is recorded rather than compared away. The le | `vertex-format-instance-step` | Metal converts a normalized vertex field as `c / (2^b - 1)`, correctly rounded, and this device's fixed-function vertex input is one ULP high: at the first diff… | | `vertex-format-instance-step` | Metal converts a normalized vertex field as `c / (2^b - 1)`, correctly rounded, and this device's fixed-function vertex input is one ULP high: at the first diff… | | `vertex-format-instance-step` | Metal's fixed-function vertex fetch of a narrow float canonicalizes a NaN: a `half` code and a `FloatRG11B10` field whose 5-bit exponent is all ones both reach … | +| `compute-threadgroup-simd-scratch` | Metal's compute pipeline state answers `staticThreadgroupMemoryLength` 24576 -- the fixture's own 24 KiB `threadgroup` array -- and we answer 32768 on this venu… | +| `host-page-writes-kernel-store-read-only` | Metal DROPS what a shader or the blit engine writes into memory whose backing is read-only, silently and with no error, and we land the write. Metal's rule is m… | +| `host-page-writes-kernel-store-read-only` | Metal DROPS what a shader or the blit engine writes into memory whose backing is read-only, silently and with no error, and we land the write. Metal's rule is m… | +| `host-page-writes-kernel-store-read-only` | Metal DROPS what a shader or the blit engine writes into memory whose backing is read-only, silently and with no error, and we land the write. Metal's rule is m… | +| `host-page-writes-kernel-store-read-only` | Metal DROPS what a shader or the blit engine writes into memory whose backing is read-only, silently and with no error, and we land the write. Metal's rule is m… | +| `host-page-writes-visibility-read-only` | Metal DROPS what a shader or the blit engine writes into memory whose backing is read-only, silently and with no error, and we land the write. Metal's rule is m… | +| `host-page-writes-visibility-read-only` | Metal DROPS what a shader or the blit engine writes into memory whose backing is read-only, silently and with no error, and we land the write. Metal's rule is m… | +| `host-page-writes-visibility-read-only` | Metal DROPS what a shader or the blit engine writes into memory whose backing is read-only, silently and with no error, and we land the write. Metal's rule is m… | +| `host-page-writes-visibility-read-only` | Metal DROPS what a shader or the blit engine writes into memory whose backing is read-only, silently and with no error, and we land the write. Metal's rule is m… | +| `norm-storage-fields-bgr10a2unorm` | Metal dispatches a kernel that writes a `BGR10A2Unorm` storage texture reached through its resource ID inside an argument buffer, and we refuse the bind state `… | +| `norm-storage-fields-bgr10a2unorm` | Metal dispatches a kernel that writes a `BGR10A2Unorm` storage texture reached through its resource ID inside an argument buffer, and we refuse the bind state `… | +| `pass-sequence-color-actions` | Metal's `MTLStoreActionDontCare` leaves the attachment holding the texels it held BEFORE the pass, and we leave what the pass rendered. Metal's answer is this c… | +| `pass-sequence-color-actions` | Metal's `MTLStoreActionDontCare` leaves the attachment holding the texels it held BEFORE the pass, and we leave what the pass rendered. Metal's answer is this c… | +| `pass-sequence-color-actions` | Metal's `MTLStoreActionDontCare` leaves the attachment holding the texels it held BEFORE the pass, and we leave what the pass rendered. Metal's answer is this c… | +| `pass-sequence-color-actions` | Metal's `MTLStoreActionDontCare` leaves the attachment holding the texels it held BEFORE the pass, and we leave what the pass rendered. Metal's answer is this c… | +| `pass-sequence-color-actions` | Metal's `MTLStoreActionDontCare` leaves the attachment holding the texels it held BEFORE the pass, and we leave what the pass rendered. Metal's answer is this c… | +| `pass-sequence-color-actions` | Metal's `MTLStoreActionDontCare` leaves the attachment holding the texels it held BEFORE the pass, and we leave what the pass rendered. Metal's answer is this c… | +| `pass-sequence-color-actions` | Metal's `MTLStoreActionDontCare` leaves the attachment holding the texels it held BEFORE the pass, and we leave what the pass rendered. Metal's answer is this c… | +| `pass-sequence-color-actions` | Metal's `MTLStoreActionDontCare` leaves the attachment holding the texels it held BEFORE the pass, and we leave what the pass rendered. Metal's answer is this c… | +| `pixel-samplers-rgba16f-nearest-border` | Metal's 800 sampled results of this case's `norm` source digest to one value and ours to another; the row holds both. `norm` is the case's own CONTROL: a NORMAL… | +| `pixel-samplers-rgba16f-nearest-edge` | Metal's 800 sampled results of this case's `norm` source digest to one value and ours to another; the row holds both. `norm` is the case's own CONTROL: a NORMAL… | +| `pixel-samplers-rgba16f-nearest-zero` | Metal's 800 sampled results of this case's `norm` source digest to one value and ours to another; the row holds both. `norm` is the case's own CONTROL: a NORMAL… | +| `pixel-samplers-rgba8-nearest-border` | Metal's 800 sampled results of this case's `norm` source digest to one value and ours to another; the row holds both. `norm` is the case's own CONTROL: a NORMAL… | +| `pixel-samplers-rgba8-nearest-edge` | Metal's 800 sampled results of this case's `norm` source digest to one value and ours to another; the row holds both. `norm` is the case's own CONTROL: a NORMAL… | +| `pixel-samplers-rgba8-nearest-zero` | Metal's 800 sampled results of this case's `norm` source digest to one value and ours to another; the row holds both. `norm` is the case's own CONTROL: a NORMAL… | +| `resolve-stencil-under-depth-filters` | Metal resolves a multisampled depth/stencil attachment with the stencil filter `MTLMultisampleStencilResolveFilterSample0` under the depth filter `Min` or `Max`… | +| `resolve-stencil-under-depth-filters` | Metal resolves a multisampled depth/stencil attachment with the stencil filter `MTLMultisampleStencilResolveFilterSample0` under the depth filter `Min` or `Max`… | +| `tile-simd-blur-columns` | Metal's tile render pipeline state answers `maxTotalThreadsPerThreadgroup` 1024 and ours answers 960 on this venue. The 960 is this device's own compiled limit … | +| `tile-simd-blur-rows` | Metal's tile render pipeline state answers `maxTotalThreadsPerThreadgroup` 1024 and ours answers 960 on this venue. The 960 is this device's own compiled limit … |