Format the two files the depth packet's landing left unformatted

Content: the tree of `development` at f08d51cd71, unchanged.
This commit is contained in:
Anees Iqbal committed 2026-10-26 13:19:11 +02:00
1 parent 69001211c6
commit d6ae7e4e19
3 files changed
+23 -21

No files matched your search

+18 -19
View File
@@ -417,26 +417,25 @@ impl Device {
// every variant, not a `matches!` that falls through to false: a new bits draw left out
// of a fallthrough list builds a depth render pass over its colour image, which is how
// `Depth16Bits` first shipped broken.
let colour = match copy {
DepthStencilCopy::DepthBits
| DepthStencilCopy::StencilBits
| DepthStencilCopy::MagnitudeBits
| DepthStencilCopy::Depth16Bits => true,
DepthStencilCopy::Depth
| DepthStencilCopy::DepthMagnitude
| DepthStencilCopy::Depth16Code
| DepthStencilCopy::StencilPlane { .. }
| DepthStencilCopy::StencilExport { .. }
| DepthStencilCopy::DepthFromStandIn { .. } => false,
// `DepthStencilCopy` is `#[non_exhaustive]`, so a variant added in the translator
// crate reaches here. A bits draw must say so above; defaulting to a depth pass is
// the failure this match exists to stop, so refuse rather than guess.
_ => {
return Err(internal(
let colour =
match copy {
DepthStencilCopy::DepthBits
| DepthStencilCopy::StencilBits
| DepthStencilCopy::MagnitudeBits
| DepthStencilCopy::Depth16Bits => true,
DepthStencilCopy::Depth
| DepthStencilCopy::DepthMagnitude
| DepthStencilCopy::Depth16Code
| DepthStencilCopy::StencilPlane { .. }
| DepthStencilCopy::StencilExport { .. }
| DepthStencilCopy::DepthFromStandIn { .. } => false,
// `DepthStencilCopy` is `#[non_exhaustive]`, so a variant added in the translator
// crate reaches here. A bits draw must say so above; defaulting to a depth pass is
// the failure this match exists to stop, so refuse rather than guess.
_ => return Err(internal(
"a depth/stencil copy draw whose attachment kind this runtime does not state",
))
}
};
)),
};
let result = (|| {
made.render_pass = match colour {
true => bits_pass(raw, format, samples)?,
@@ -1 +1 @@
56e9ea17dec3cb3b876b10bacbaec532592a4c0ed7411a87bb3782c65b842839
1875b16fdaf9510528e04e803244d3b054835ce74e0fd424694dfca42d270eee
@@ -239,5 +239,8 @@ fn every_16_bit_code_survives_the_depth_pair_in_both_directions() {
worst = worst.max((scaled - f64::from(code)).abs());
}
// The half-step budget is 0.5; the docs quote this margin, so it is held to it.
assert!(worst < 2.0e-3, "the largest |depth * 65535 - code| is {worst}");
assert!(
worst < 2.0e-3,
"the largest |depth * 65535 - code| is {worst}"
);
}