fix(dx12): discard cmd. enc. buf. on drop

This commit is contained in:
Erich Gubler committed 2024-02-15 10:45:32 -05:00
1 parent d4fe193528
commit 2b487724f2
4 files changed
+12 -33

No files matched your search

+1 -8
View File
@@ -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