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.
This commit is contained in:
1 parent
8f67854ca0
commit
73eaffdaaa
1 file changed
+5
-3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user