rt tests: the layouts test's plain texture takes its own index

The test of a texture over a buffer in place made its plain texture, the other side of its texture
to texture copies, with shader-read usage and no index. rt refuses that ("a texture shaders read or
write takes an index, and none was given"), so on every device the test panicked before it
recorded any command: lavapipe under the layer (job 48345), and the iris, 3090 (both), RX 550,
780M, 2080, XTX and KosmicKrisp legs (48347 to 48359, 48346). The test of the same in-place
texture's sentinels passed on each of them.

It now grants two texture indices and gives the plain texture the second.
This commit is contained in:
Anees Iqbal committed 2026-11-18 15:09:43 -08:00
1 parent 06b940f810
commit b7c5a59920
1 file changed
+2 -2
+2 -2
View File
@@ -472,7 +472,7 @@ mod on_device {
let buffer = (device.new_buffer(block.id, AT, LEN, Some(0)))
.unwrap_or_else(|error| panic!("{name}: {error}"));
let first = IndexClass::Texture.range().start;
(device.grant_indices(IndexClass::Texture, first, 1)).expect("a grant");
(device.grant_indices(IndexClass::Texture, first, 2)).expect("a grant");
let mut d =
TextureDescriptor::new(TextureType::Type2D, PixelFormat::RGBA8Unorm, WIDTH, HEIGHT);
forget();
@@ -496,7 +496,7 @@ mod on_device {
let mut plain_d = d;
plain_d.usage = TextureUsage::SHADER_READ;
plain_d.storage_mode = StorageMode::Shared;
let plain = (device.new_texture(&plain_d, None))
let plain = (device.new_texture(&plain_d, Some(first + 1)))
.unwrap_or_else(|error| panic!("{name}: {error}"));
let other = (device.new_buffer(block.id, 0, ROW * u64::from(HEIGHT), None))
.unwrap_or_else(|error| panic!("{name}: {error}"));