From 093acad0f11b2cb9a74b035fd91c9121d52a54c4 Mon Sep 17 00:00:00 2001 From: Vecvec Date: Sat, 21 Sep 2024 11:19:29 +1200 Subject: [PATCH] fix tests --- tests/tests/ray_tracing/mod.rs | 2 +- tests/tests/ray_tracing_use_after_free/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tests/ray_tracing/mod.rs b/tests/tests/ray_tracing/mod.rs index f8d958634e..dcc79b3514 100644 --- a/tests/tests/ray_tracing/mod.rs +++ b/tests/tests/ray_tracing/mod.rs @@ -64,7 +64,7 @@ fn execute(ctx: TestingContext) { max_instances, }); - let mut tlas_package = rt::TlasPackage::new(tlas, max_instances); + let mut tlas_package = rt::TlasPackage::new(tlas); for i in 0..2500 { eprintln!("Setting TlasInstances in loop {}", i); diff --git a/tests/tests/ray_tracing_use_after_free/mod.rs b/tests/tests/ray_tracing_use_after_free/mod.rs index 56bc6cc239..f19f7a5ed4 100644 --- a/tests/tests/ray_tracing_use_after_free/mod.rs +++ b/tests/tests/ray_tracing_use_after_free/mod.rs @@ -49,7 +49,7 @@ fn execute(ctx: TestingContext) { contents: &[0; mem::size_of::<[[f32; 3]; 3]>()], usage: BufferUsages::BLAS_INPUT, }); - let mut tlas_package = TlasPackage::new(tlas, 1); + let mut tlas_package = TlasPackage::new(tlas); *tlas_package.get_mut_single(0).unwrap() = Some(TlasInstance::new( &blas, [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0],