From 73eaffdaaa73e2efcfbf358c67997c047a6caf16 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Thu, 3 Dec 2026 09:08:11 -0800 Subject: [PATCH] Runtime test: the multisample byte-copy test grants its texture indices What. The test made its textures at indices 4096 onward without granting them, so on lavapipe it stopped at "Texture index 4096 is not granted" before reaching the copy it is red on (job m3-max-84432). It now grants ROWS.len() texture indices from 4096 on each device, as the other device tests that name an index do. Verified: the red run named in the hand-off stops at the copy in. --- .../metal2vulkan-runtime/src/tests/multisample_bytes.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/tests/multisample_bytes.rs b/crates/metal2vulkan-runtime/src/tests/multisample_bytes.rs index 7b10a914b..51e1649cc 100644 --- a/crates/metal2vulkan-runtime/src/tests/multisample_bytes.rs +++ b/crates/metal2vulkan-runtime/src/tests/multisample_bytes.rs @@ -24,9 +24,9 @@ use crate::tests::command::on_device::each_device; use crate::tests::draw::on_device::{run, Buffers}; use crate::{ BlitOption, Buffer, BufferLayout, ComputePipelineDescriptor, ComputePipelineState, Device, - DispatchType, FunctionDescriptor, Library, LoadAction, PixelFormat, RenderPassDescriptor, - StageSource, StorageMode, StoreAction, TextureDescriptor, TexturePlace, TextureType, - TextureUsage, + DispatchType, FunctionDescriptor, IndexClass, Library, LoadAction, PixelFormat, + RenderPassDescriptor, StageSource, StorageMode, StoreAction, TextureDescriptor, TexturePlace, + TextureType, TextureUsage, }; use metal2vulkan_devtools::{engine_dir, llvm_assemble, AssembleError}; @@ -293,6 +293,8 @@ fn every_device_copies_bytes_into_and_out_of_each_sample_of_a_depth_or_stencil_t return; }; each_device("multisample_bytes", |name, _, device| { + let _textures = (device.grant_indices(IndexClass::Texture, 4096, ROWS.len() as u32)) + .unwrap_or_else(|error| panic!("{name}: {error}")); let mut ran = Vec::new(); for (at, row) in ROWS.iter().enumerate() { if !device.supports_texture_sample_count(row.samples) {