old-runtime regression fix: a half color output is 16-bit again under Device::new
6f5bd20321removed the 16-bit `half` color output form on every device. That moved Device::new's output, which the old runtime builds on: 111 golden cells on each RADV, ANV and MoltenVK profile (5c47b9c867->bfe63b5097). The form comes back for Device::new alone, as a profile fact: ProfileFacts::half_outputs is HalfOutputs::Sixteen in Device::new's facts (ROWS) and HalfOutputs::Widened in Device::from_queries' (EVERY). Under Sixteen a `half` color output is declared with 16-bit `float` lanes where the profile enables storageInputOutput16 and shaderFloat16, as before6f5bd20321. storageInputOutput16 is not one of the queries rule 2 lets choose a second form, so the new runtime keeps one 32-bit form for every stage output. The fact renders into no ROWS fingerprint, so Device::new's profile keys do not move. - lower::stage_io: plan::half_variable (now reading the fact and the enabled feature), IoObject::User::half, the 16-bit store and io_elem's width are back. StageIo::half_outputs and the link contract's 16-bit lanes are back. - The HalfOutputPrecision and HalfOutputFastMathBlend note texts, docs/API.md's degrade catalogue, docs/FAST-PATHS.md and the half-output-blends case say what they said for the old path, each scoped to Device::new, with Device::from_queries handing every device the `float`. - known-gaps.tsv: the 52 MoltenVK rows for the M3 Max's half-output-blends-r16f, -rg16f and -rgba16f go, as before6f5bd20321: with the 16-bit output MoltenVK stored Metal's codes there. docs/CONFORMANCE-COVERAGE.md is regenerated (3,783 -> 3,731 ledger rows). - The Iris Xe's 62 half-output rows (6769c2eaaf) were measured with the 32-bit form on ANV, which gets the 16-bit form again under Device:🆕 they are owed a re-run with it. - SEMANTICS_VERSION 2157 (the 111 cells per profile change under unchanged keys) and ARTIFACT_FORMAT_VERSION 530 (the artifact codec has StageIo::half_outputs again). - The engine_stage_io test is back. It also checks that the profile from Device::from_queries is HalfOutputs::Widened and keeps the output 32-bit on MoltenVK, RADV and lavapipe, with no StorageInputOutput16. Verified at 8e0e199a12 on00ca405504, whose tree is this commit's but for SEMANTICS_VERSION (2156 there; development took it meanwhile) and development's later commits (03a3741772and the harness's), which touch none of this commit's files: - msi 41897: golden_hashes_match_the_table with every difference listed, compared with the tables at5c47b9c867andbfe63b5097. All 504 stage-io cells on the .ll rows that Linux compares (56 on each of the 4 RADV, 4 ANV and MoltenVK profiles) are back at their5c47b9c867values, none elsewhere. On ANV and MoltenVK those are the only cells that moved (280, under unchanged keys). The RADV and NVIDIA columns are stale under profile fingerprints that development'se0f567a8bcmoved back before this commit (12,705 cells, the table not yet blessed for it); in them only the stage-io cells above and 185 cells on each of nvidia-rtx50-linux and nvidia-rtx5080-laptop (e0f567a8bc's NVIDIA restore) moved. No ROWS fingerprint moved with this commit. The 55 stage-io cells per profile on .air.ll rows need metal-as and wait for the M3 bless. - msi 41813: clippy -p metal2vulkan --all-targets --all-features -D warnings, rustdoc -D warnings, nextest -p metal2vulkan -p metal2vulkan-conformance in full: 4,719 of 4,722 pass. The failures: golden_hashes_match_the_table, for the bless above; the_public_signatures_are_the_committed_table, development's degradations! row, fixed since by 489bc24c4e; the_authored_4096_step_kernel_compiles_inside_the_budget, which passed alone on the same build (41862) and is not in this commit's scope. - msi 41814: clippy under --cfg m2v_gpu and --cfg m2v_cpu_icd.
This commit is contained in:
1 parent
914a9c7ada
commit
8ec8cbbc20
15 files changed
+227
-154
No files matched your search
+5
-2
@@ -5160,8 +5160,11 @@ bound.
|
||||
and records nothing; so does the blend of a fetched 8-bit unorm attachment it computes there
|
||||
(every factor, operation, write mask and blend color it builds), which Metal reads the output
|
||||
into clamped, folding none of it (the storage image's store of its result is the device's
|
||||
conversion, `DeviceColorConversion`). The output reaches every device widened to a 32-bit
|
||||
`float`, which holds every `half` exactly.
|
||||
conversion, `DeviceColorConversion`). On a device that enables `storageInputOutput16` the output
|
||||
reaches the device as a 16-bit `half` under `Device::new` (`StageIo::half_outputs`; under
|
||||
`Device::from_queries` every device receives it widened to `float`); MoltenVK 1.4.2 on an Apple M3
|
||||
Max then stores Metal's codes for a loaded `half4` under every blend measured (21, into 16- and
|
||||
32-bit float formats).
|
||||
- `metal2vulkan-degrade-device-sampling` (precision). `PrecisionNote::DeviceSampling`: Native device
|
||||
sampling: the module hands a sample, gather, comparison or level query to the device's own
|
||||
sampler on a device whose sampler is not Metal's (the module requires
|
||||
|
||||
Reference in new issue
Block a user