Tests: the coherence test's texture takes no index

What: tests::coherence makes its 4x4 texture with Device::new_texture_for_views, which takes no
index, in place of new_texture with no index.

Why: on lavapipe (job m3-max-73732, ef7f03df3f) new_texture refused a texture that shaders read
with no index (Refusal::TextureIndex), before the test reached its copies. The other assertions
of the test ran no further, so they are still unverified.

Verified: not yet run (cargo fmt only).
This commit is contained in:
Anees Iqbal committed 2026-11-25 14:24:28 -08:00
1 parent 28080d9ecc
commit 1a57dc490e
1 file changed
+3 -2
@@ -91,8 +91,9 @@ mod on_device {
let into_private = calls(&before, &counters.metrics());
let d = TextureDescriptor::new(TextureType::Type2D, PixelFormat::RGBA8Unorm, 4, 4);
let texture =
(device.new_texture(&d, None)).unwrap_or_else(|error| panic!("{name}: {error}"));
// A texture with no index: only its copies reach it.
let texture = (device.new_texture_for_views(&d))
.unwrap_or_else(|error| panic!("{name}: {error}"));
let whole = Region {
origin: [0; 3],
size: [4, 4, 1],