mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-25 08:51:05 +01:00
[tests] mark timestamps_passes as flaky on GL llvmpipe
This commit is contained in:
1 parent
cb278900ea
commit
59a252f247
1 file changed
+11
-2
@@ -430,7 +430,8 @@ pub fn main() {
|
||||
|
||||
#[cfg(test)]
|
||||
pub mod tests {
|
||||
use wgpu_test::{gpu_test, GpuTestConfiguration};
|
||||
use wgpu::Backends;
|
||||
use wgpu_test::{gpu_test, FailureCase, GpuTestConfiguration};
|
||||
|
||||
use super::{submit_render_and_compute_pass_with_queries, QueryResults};
|
||||
|
||||
@@ -464,6 +465,11 @@ pub mod tests {
|
||||
wgpu::Features::TIMESTAMP_QUERY
|
||||
| wgpu::Features::TIMESTAMP_QUERY_INSIDE_ENCODERS
|
||||
| wgpu::Features::TIMESTAMP_QUERY_INSIDE_PASSES,
|
||||
)
|
||||
.expect_fail(
|
||||
FailureCase::backend_adapter(Backends::GL, "llvmpipe")
|
||||
.panic("unexpected: inner timestamp before compute pass start timestamp")
|
||||
.flaky(),
|
||||
),
|
||||
)
|
||||
.run_sync(|ctx| test_timestamps(ctx, true, true));
|
||||
@@ -504,7 +510,10 @@ pub mod tests {
|
||||
assert!(render_inside_timestamp <= render_start_end_timestamps[1]);
|
||||
}
|
||||
if let Some(compute_inside_timestamp) = compute_inside_timestamp {
|
||||
assert!(compute_inside_timestamp >= compute_start_end_timestamps[0]);
|
||||
assert!(
|
||||
compute_inside_timestamp >= compute_start_end_timestamps[0],
|
||||
"unexpected: inner timestamp before compute pass start timestamp"
|
||||
);
|
||||
assert!(compute_inside_timestamp <= compute_start_end_timestamps[1]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user