Allow the word lane's read note wherever its reads are the device's
The multisampled word lane reads every sample's value through its `float` kernel (`wsm_read_f`). Off Apple's GPUs the translation records `PrecisionNote::DeviceTexelConversion` for every such read, whatever format the texture holds, and the lane bounds a packed field's read by that note however the texture is held. It allowed the notice only where a packed format was held in its word's format, which is every packed format on the RTX 5080 but none on lavapipe, which renders `A1BGR5Unorm` and `ABGR4Unorm` itself: there the first leg announced `device-texel-conversion` past the allowed kinds. The blend's failure (the commit before) hid it. The lane now allows the notice on every leg where the device's texture unit is not Metal's (`VkProperty::MetalSampler`), and no longer only for a packed word. Verified on msi-laptop, lavapipe (Mesa 26.2.4), `--cfg m2v_cpu_icd`, at 5a4a8ca8fc: the test fails at degrade_notices.rs:409, "announced past [...]: [DeviceTexelConversion]", its answers all within their bounds. (cherry picked from commit 7943cf6e21e7e119d2dd203f43207c032ba1d9d3)
This commit is contained in:
1 parent
be34c40f1d
commit
45eadf2935
1 file changed
+6
-8
@@ -955,6 +955,12 @@ fn multisampled_word_formats_store_read_resolve_and_blend_as_metal() {
|
||||
drawn += 1;
|
||||
words += usize::from(word);
|
||||
allowed.extend(made);
|
||||
// The reads of each sample's value (`wsm_read_f`), the device's conversion where its
|
||||
// texture unit is not Metal's: recorded for every such read, whatever the format and
|
||||
// however it is held (a packed format's own as much as its word's).
|
||||
if !lane.metal_sampler() {
|
||||
allowed.insert(Degradation::DeviceTexelConversion);
|
||||
}
|
||||
match word {
|
||||
true => {
|
||||
kinds.insert(Degradation::ShaderResolve);
|
||||
@@ -976,14 +982,6 @@ fn multisampled_word_formats_store_read_resolve_and_blend_as_metal() {
|
||||
if srgb && !lane.metal_sampler() {
|
||||
allowed.insert(Degradation::SrgbTexelDecode);
|
||||
}
|
||||
// A packed word's reads, the device's widening where it is not Metal's.
|
||||
let packed = matches!(
|
||||
WordAttachment::layout(pf),
|
||||
Some(WordAttachment::Packed16 { .. })
|
||||
);
|
||||
if packed && !lane.metal_sampler() {
|
||||
allowed.insert(Degradation::DeviceTexelConversion);
|
||||
}
|
||||
}
|
||||
false => allowed.extend(resolve_kind(&lane.device, samples)),
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user