mirror of
https://github.com/storytold/wgpu.git
synced 2026-12-01 10:34:57 +01:00
fix(dx12): discard cmd. enc. buf. on drop
This commit is contained in:
1 parent
d4fe193528
commit
2b487724f2
4 files changed
+12
-33
No files matched your search
@@ -21,16 +21,9 @@ static DROP_QUEUE_BEFORE_CREATING_COMMAND_ENCODER: GpuTestConfiguration =
|
||||
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
|
||||
// command list is currently being recorded with the allocator. [ EXECUTION ERROR
|
||||
// #543: COMMAND_ALLOCATOR_CANNOT_RESET]
|
||||
//
|
||||
// For now, we mark the test as failing on DX12.
|
||||
#[gpu_test]
|
||||
static DROP_ENCODER_AFTER_ERROR: GpuTestConfiguration = GpuTestConfiguration::new()
|
||||
.parameters(TestParameters::default().expect_fail(FailureCase::backend(wgpu::Backends::DX12)))
|
||||
.parameters(TestParameters::default())
|
||||
.run_sync(|ctx| {
|
||||
let mut encoder = ctx
|
||||
.device
|
||||
|
||||
Reference in new issue
Block a user