rt: the declared-write test's parent texture takes an index

The device test made its RGBA8Unorm parent of shader-read and shader-write usage with no index,
which the runtime refuses (a texture shaders read or write takes an index): legs 51836 (3090) and
51837 (lavapipe) panicked there, before any case ran. It takes the grant's next index.
This commit is contained in:
Anees Iqbal committed 2026-11-19 05:09:37 -08:00
1 parent 71d767c904
commit 7f0f14435a
1 file changed
+1 -1
@@ -247,7 +247,7 @@ declare { <4 x float>, i8 } @air.read_texture_2d.v4f32(ptr addrspace(1), ptr add
.unwrap_or_else(|error| panic!("{name}: {format:?}: {error}"));
cases.push((format!("{format:?}"), texture));
}
let parent = (device.new_texture(&descriptor(PixelFormat::RGBA8Unorm), None))
let parent = (device.new_texture(&descriptor(PixelFormat::RGBA8Unorm), Some(next())))
.unwrap_or_else(|error| panic!("{name}: RGBA8Unorm: {error}"));
let view = (parent.new_texture_view(
PixelFormat::RGBA8UnormSRGB,