Key the compressed shape's clear route in the extended-range and bfloat clear checks
A clear takes Metal's straight route only where nan_clear::keeps_nan_sign holds (render.rs),
which the fresh-texture key now makes false on a device that presents a Mac keeping no texture
compressed: there a 16 x 16 plain target is not compressed, so it clears through half, as
Metal's uncompressed targets do (expected, not measured on such a Mac). Three checks still
expected the straight route there and failed on the RTX 5080 Laptop at fd34a10316:
- conformance xr-clear-routes-{bgra10xr,bgra10xr-srgb,bgr10xr,bgr10xr-srgb}: divergent at
case/plain-16/texels/0..3 alone (15 sites), unlisted, in the replay of job m3-max-120; the
baseline replay at 0b556ddfd6 (job m3-max-141) held none of them (its other 908 unlisted gap
sites are the same in both runs). ClearRoutes now declares
replay::without_compression("plain-16").
- validation runtime_lane::extended_range_targets::clears_take_metal_s_route (15 clears
differ, all the 16 x 16 draws-false shape) and runtime_lane::bfloat_targets::
bfloat_clears_take_metal_s_route (11, all that shape), suite job m3-max-124: each now expects
ClearRoute::Straight for that shape only where DeviceProperties::lossless_compression holds,
else ThroughHalf.
docs/API.md's accepted difference says the clear route too, and keeps_nan_sign's doc says it
decides the route.
Verified on the M3 Max, no device: nextest metal2vulkan-conformance 1011/1011; cargo clippy -D
warnings on validation and conformance with --cfg m2v_gpu (all targets, all features);
docs/CONFORMANCE-COVERAGE.md re-derives unchanged. UNVERIFIED: none of the three has run with
this commit on the 5080 or the M3.
(cherry picked from commit 1c042263e5fee942b79fbd30042c2dc9f222b61b)
This commit is contained in:
1 parent
2b8df8a36b
commit
9fe1b0175f
5 files changed
+34
-9
No files matched your search
+3
-2
@@ -4056,8 +4056,9 @@ each item named states the rule in full.
|
||||
both; a `Depth32Float` one never read the released clear.
|
||||
- a GPU blit or fill through any texture keeps its bytes, with no `extended-range-bits-kept`,
|
||||
`device-nan-encoding` or `shared-exponent-kept` note for it and no rewrite under
|
||||
`ExtendedRangeBlitPolicy::Canonical`, and a `half` NaN clear keeps no sign. Expected, not
|
||||
measured on such a Mac.
|
||||
`ExtendedRangeBlitPolicy::Canonical`, and a clear of any texture takes the route of Metal's
|
||||
uncompressed one, through `half`, so a `half` NaN clear keeps no sign and an extended-range
|
||||
or bfloat clear rounds as through `half`. Expected, not measured on such a Mac.
|
||||
|
||||
Metal leaves a new texture's contents undefined, and zero and a released texture's texels are
|
||||
both what such a Mac reads, so this trades no accuracy and no `DevicePolicy` switch fills the
|
||||
|
||||
Reference in new issue
Block a user