mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 08:21:25 +01:00
add test that verifies that we can drop the queue before using the device to create a command encoder (#5211)
This commit is contained in:
1 parent
f21087ddaf
commit
245d2da2fd
2 files changed
+14
No files matched your search
@@ -122,6 +122,7 @@ Bottom level categories:
|
||||
|
||||
- Fix intermittent crashes on Linux in the `multithreaded_compute` test. By @jimblandy in [#5129](https://github.com/gfx-rs/wgpu/pull/5129).
|
||||
- Refactor tests to read feature flags by name instead of a hardcoded hexadecimal u64. By @rodolphito in [#5155](https://github.com/gfx-rs/wgpu/pull/5155).
|
||||
- Add test that verifies that we can drop the queue before using the device to create a command encoder. By @Davidster in [#5211](https://github.com/gfx-rs/wgpu/pull/5211)
|
||||
|
||||
## v0.19.0 (2024-01-17)
|
||||
|
||||
|
||||
@@ -8,6 +8,19 @@ static DROP_ENCODER: GpuTestConfiguration = GpuTestConfiguration::new().run_sync
|
||||
drop(encoder);
|
||||
});
|
||||
|
||||
#[gpu_test]
|
||||
static DROP_QUEUE_BEFORE_CREATING_COMMAND_ENCODER: GpuTestConfiguration =
|
||||
GpuTestConfiguration::new()
|
||||
.parameters(TestParameters::default().expect_fail(FailureCase::always()))
|
||||
.run_sync(|ctx| {
|
||||
// Use the device after the queue is dropped. Currently this panics
|
||||
// but it probably shouldn't
|
||||
let device = ctx.device.clone();
|
||||
drop(ctx);
|
||||
let _encoder =
|
||||
device.create_command_encoder(&wgpu::CommandEncoderDescriptor::default());
|
||||
});
|
||||
|
||||
// This test crashes on DX12 with the exception:
|
||||
//
|
||||
// ID3D12CommandAllocator::Reset: The command allocator cannot be reset because a
|
||||
|
||||
Reference in new issue
Block a user